mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-30 02:46:01 +08:00
Correctly use asymmetric encrypt/decrypt driver
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
e705f572f9
commit
f1cacad870
@ -46,8 +46,7 @@ psa_status_t mbedtls_test_transparent_asymmetric_encrypt(
|
|||||||
return mbedtls_test_driver_asymmetric_encryption_hooks.forced_status;
|
return mbedtls_test_driver_asymmetric_encryption_hooks.forced_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_TEST_LIBTESTDRIVER1) && \
|
#if defined(MBEDTLS_TEST_LIBTESTDRIVER1)
|
||||||
defined(LIBTESTDRIVER1_MBEDTLS_PSA_BUILTIN_CIPHER)
|
|
||||||
return libtestdriver1_mbedtls_psa_asymmetric_encrypt(
|
return libtestdriver1_mbedtls_psa_asymmetric_encrypt(
|
||||||
(const libtestdriver1_psa_key_attributes_t *) attributes,
|
(const libtestdriver1_psa_key_attributes_t *) attributes,
|
||||||
key_buffer, key_buffer_size,
|
key_buffer, key_buffer_size,
|
||||||
@ -88,8 +87,7 @@ psa_status_t mbedtls_test_transparent_asymmetric_decrypt(
|
|||||||
return mbedtls_test_driver_asymmetric_encryption_hooks.forced_status;
|
return mbedtls_test_driver_asymmetric_encryption_hooks.forced_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_TEST_LIBTESTDRIVER1) && \
|
#if defined(MBEDTLS_TEST_LIBTESTDRIVER1)
|
||||||
defined(LIBTESTDRIVER1_MBEDTLS_PSA_BUILTIN_CIPHER)
|
|
||||||
return libtestdriver1_mbedtls_psa_asymmetric_decrypt(
|
return libtestdriver1_mbedtls_psa_asymmetric_decrypt(
|
||||||
(const libtestdriver1_psa_key_attributes_t *) attributes,
|
(const libtestdriver1_psa_key_attributes_t *) attributes,
|
||||||
key_buffer, key_buffer_size,
|
key_buffer, key_buffer_size,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user