From 6b156df1ba040f27809f3ec6b78fb200e9ff7a76 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 28 Jan 2019 15:43:19 +0100 Subject: [PATCH] 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. --- tests/suites/test_suite_psa_crypto.function | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function index 87ad1ff61..8ca7dcd10 100644 --- a/tests/suites/test_suite_psa_crypto.function +++ b/tests/suites/test_suite_psa_crypto.function @@ -293,8 +293,8 @@ static int exercise_signature_key( psa_key_handle_t handle, hash_alg = PSA_ALG_MD4; #elif defined(MBEDTLS_MD5_C) hash_alg = PSA_ALG_MD5; -#elif defined(MBEDTLS_RIPEMD160_C) - hash_alg = PSA_ALG_RIPEMD160; + /* MBEDTLS_RIPEMD160_C omitted because Mbed TLS doesn't + * support it in RSA PKCS#1v1.5 signatures. */ #elif defined(MBEDTLS_SHA1_C) hash_alg = PSA_ALG_SHA_1; #elif defined(MBEDTLS_SHA256_C)