Return error if algorithm is not hash-then-sign for psa_sign_message

Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
gabor-mezei-arm 2021-05-05 13:59:01 +02:00
parent 5698048cc6
commit ef6f2aa94b
No known key found for this signature in database
GPG key ID: 106F5A41ECC305BD

View file

@ -3074,10 +3074,7 @@ psa_status_t psa_verify_message_internal(
signature, signature_length );
}
return psa_driver_wrapper_verify_hash(
attributes, key_buffer, key_buffer_size,
alg, input, input_length,
signature, signature_length );
return( PSA_ERROR_NOT_SUPPORTED );
}
psa_status_t psa_verify_message( mbedtls_svc_key_id_t key,