mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 23:25:44 +01:00
psa: driver wrappers: Add generate key unit test with no fallback
Add a test in test_suite_psa_crypto_driver_wrappers that when accelerators do not support the generation of a key and there is no software fallback, the key generation fails with the PSA_ERROR_NOT_SUPPORTED error code. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
bbe5cbb0c8
commit
f619c68be9
@ -38,6 +38,10 @@ generate_key through transparent driver: fallback
|
|||||||
depends_on:MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR
|
depends_on:MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR
|
||||||
generate_key:PSA_ERROR_NOT_SUPPORTED:"":PSA_SUCCESS
|
generate_key:PSA_ERROR_NOT_SUPPORTED:"":PSA_SUCCESS
|
||||||
|
|
||||||
|
generate_key through transparent driver: fallback not available
|
||||||
|
depends_on:!MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR
|
||||||
|
generate_key:PSA_ERROR_NOT_SUPPORTED:"":PSA_ERROR_NOT_SUPPORTED
|
||||||
|
|
||||||
generate_key through transparent driver: error
|
generate_key through transparent driver: error
|
||||||
generate_key:PSA_ERROR_GENERIC_ERROR:"":PSA_ERROR_GENERIC_ERROR
|
generate_key:PSA_ERROR_GENERIC_ERROR:"":PSA_ERROR_GENERIC_ERROR
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user