Skip to content

Commit 6b156df

Browse files
Don't consider RIPEMD160 a PSA_ALG_ANY_HASH candidate
Some parts of the library don't support it, such as RSA PKCS#1v1.5 signature.
1 parent 8c1247f commit 6b156df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/suites/test_suite_psa_crypto.function

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ static int exercise_signature_key( psa_key_handle_t handle,
293293
hash_alg = PSA_ALG_MD4;
294294
#elif defined(MBEDTLS_MD5_C)
295295
hash_alg = PSA_ALG_MD5;
296-
#elif defined(MBEDTLS_RIPEMD160_C)
297-
hash_alg = PSA_ALG_RIPEMD160;
296+
/* MBEDTLS_RIPEMD160_C omitted because Mbed TLS doesn't
297+
* support it in RSA PKCS#1v1.5 signatures. */
298298
#elif defined(MBEDTLS_SHA1_C)
299299
hash_alg = PSA_ALG_SHA_1;
300300
#elif defined(MBEDTLS_SHA256_C)

0 commit comments

Comments
 (0)