diff --git a/library/psa_crypto_rsa.c b/library/psa_crypto_rsa.c index 271b0d519..80b9985ee 100644 --- a/library/psa_crypto_rsa.c +++ b/library/psa_crypto_rsa.c @@ -368,11 +368,6 @@ static psa_status_t psa_rsa_decode_md_type( psa_algorithm_t alg, if( mbedtls_md_get_size( md_info ) != hash_length ) return( PSA_ERROR_INVALID_ARGUMENT ); } - else - { - if( hash_alg != 0 ) - return( PSA_ERROR_INVALID_ARGUMENT ); - } return( PSA_SUCCESS ); }