mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-09 21:44:28 +00:00
Add iop export public-key generated test wrappers
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
parent
bdb6385945
commit
fad77f1ff4
@ -348,6 +348,25 @@ psa_status_t mbedtls_test_wrap_psa_export_public_key(
|
|||||||
#define psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
|
#define psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length) \
|
||||||
mbedtls_test_wrap_psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
|
mbedtls_test_wrap_psa_export_public_key(arg0_key, arg1_data, arg2_data_size, arg3_data_length)
|
||||||
|
|
||||||
|
psa_status_t mbedtls_test_wrap_psa_export_public_key_iop_abort(
|
||||||
|
psa_export_public_key_iop_t *arg0_operation);
|
||||||
|
#define psa_export_public_key_iop_abort(arg0_operation) \
|
||||||
|
mbedtls_test_wrap_psa_export_public_key_iop_abort(arg0_operation)
|
||||||
|
|
||||||
|
psa_status_t mbedtls_test_wrap_psa_export_public_key_iop_complete(
|
||||||
|
psa_export_public_key_iop_t *arg0_operation,
|
||||||
|
uint8_t *arg1_data,
|
||||||
|
size_t arg2_data_size,
|
||||||
|
size_t *arg3_data_length);
|
||||||
|
#define psa_export_public_key_iop_complete(arg0_operation, arg1_data, arg2_data_size, arg3_data_length) \
|
||||||
|
mbedtls_test_wrap_psa_export_public_key_iop_complete(arg0_operation, arg1_data, arg2_data_size, arg3_data_length)
|
||||||
|
|
||||||
|
psa_status_t mbedtls_test_wrap_psa_export_public_key_iop_setup(
|
||||||
|
psa_export_public_key_iop_t *arg0_operation,
|
||||||
|
psa_key_id_t arg1_key);
|
||||||
|
#define psa_export_public_key_iop_setup(arg0_operation, arg1_key) \
|
||||||
|
mbedtls_test_wrap_psa_export_public_key_iop_setup(arg0_operation, arg1_key)
|
||||||
|
|
||||||
psa_status_t mbedtls_test_wrap_psa_generate_key(
|
psa_status_t mbedtls_test_wrap_psa_generate_key(
|
||||||
const psa_key_attributes_t *arg0_attributes,
|
const psa_key_attributes_t *arg0_attributes,
|
||||||
mbedtls_svc_key_id_t *arg1_key);
|
mbedtls_svc_key_id_t *arg1_key);
|
||||||
|
@ -595,6 +595,40 @@ psa_status_t mbedtls_test_wrap_psa_export_public_key(
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Wrapper for psa_export_public_key_iop_abort */
|
||||||
|
psa_status_t mbedtls_test_wrap_psa_export_public_key_iop_abort(
|
||||||
|
psa_export_public_key_iop_t *arg0_operation)
|
||||||
|
{
|
||||||
|
psa_status_t status = (psa_export_public_key_iop_abort)(arg0_operation);
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Wrapper for psa_export_public_key_iop_complete */
|
||||||
|
psa_status_t mbedtls_test_wrap_psa_export_public_key_iop_complete(
|
||||||
|
psa_export_public_key_iop_t *arg0_operation,
|
||||||
|
uint8_t *arg1_data,
|
||||||
|
size_t arg2_data_size,
|
||||||
|
size_t *arg3_data_length)
|
||||||
|
{
|
||||||
|
#if !defined(MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS)
|
||||||
|
MBEDTLS_TEST_MEMORY_POISON(arg1_data, arg2_data_size);
|
||||||
|
#endif /* !defined(MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS) */
|
||||||
|
psa_status_t status = (psa_export_public_key_iop_complete)(arg0_operation, arg1_data, arg2_data_size, arg3_data_length);
|
||||||
|
#if !defined(MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS)
|
||||||
|
MBEDTLS_TEST_MEMORY_UNPOISON(arg1_data, arg2_data_size);
|
||||||
|
#endif /* !defined(MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS) */
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Wrapper for psa_export_public_key_iop_setup */
|
||||||
|
psa_status_t mbedtls_test_wrap_psa_export_public_key_iop_setup(
|
||||||
|
psa_export_public_key_iop_t *arg0_operation,
|
||||||
|
psa_key_id_t arg1_key)
|
||||||
|
{
|
||||||
|
psa_status_t status = (psa_export_public_key_iop_setup)(arg0_operation, arg1_key);
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
/* Wrapper for psa_generate_key */
|
/* Wrapper for psa_generate_key */
|
||||||
psa_status_t mbedtls_test_wrap_psa_generate_key(
|
psa_status_t mbedtls_test_wrap_psa_generate_key(
|
||||||
const psa_key_attributes_t *arg0_attributes,
|
const psa_key_attributes_t *arg0_attributes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user