diff options
author | Przemek Stekiel <przemyslaw.stekiel@mobica.com> | 2022-10-19 12:17:19 +0200 |
---|---|---|
committer | Przemek Stekiel <przemyslaw.stekiel@mobica.com> | 2022-10-19 13:20:20 +0200 |
commit | 8258ea7b7ddfe3de5fd6fd15d1c8764e9ef13b92 (patch) | |
tree | 6c111666744df83e8055dd405b7fc87460a6d9f9 /tests/src | |
parent | 98b1af4e344d0f87d6f559459d1606b58ef1411b (diff) | |
download | mbedtls-8258ea7b7ddfe3de5fd6fd15d1c8764e9ef13b92.zip mbedtls-8258ea7b7ddfe3de5fd6fd15d1c8764e9ef13b92.tar.gz mbedtls-8258ea7b7ddfe3de5fd6fd15d1c8764e9ef13b92.tar.bz2 |
test_suite_psa_crypto: adapt dependenies and guards so the test can run in the driver-only build
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/psa_exercise_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/psa_exercise_key.c b/tests/src/psa_exercise_key.c index 3705bc5..08c3b46 100644 --- a/tests/src/psa_exercise_key.c +++ b/tests/src/psa_exercise_key.c @@ -319,8 +319,8 @@ static int exercise_signature_key( mbedtls_svc_key_id_t key, /* If the policy allows signing with any hash, just pick one. */ if( PSA_ALG_IS_SIGN_HASH( alg ) && hash_alg == PSA_ALG_ANY_HASH ) { - #if defined(KNOWN_MBEDTLS_SUPPORTED_HASH_ALG) - hash_alg = KNOWN_MBEDTLS_SUPPORTED_HASH_ALG; + #if defined(KNOWN_SUPPORTED_HASH_ALG) + hash_alg = KNOWN_SUPPORTED_HASH_ALG; alg ^= PSA_ALG_ANY_HASH ^ hash_alg; #else TEST_ASSERT( ! "No hash algorithm for hash-and-sign testing" ); |