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.
This commit is contained in:
Gilles Peskine 2019-01-28 15:43:19 +01:00
parent 8c1247fec9
commit 6b156df1ba

View file

@ -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)