diff --git a/include/psa/crypto.h b/include/psa/crypto.h index b67f322f3..4f1fd7d91 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -1811,7 +1811,7 @@ psa_status_t psa_asymmetric_verify(psa_key_slot_t key, size_t hash_length, const uint8_t *salt, size_t salt_length, - uint8_t *signature, + const uint8_t *signature, size_t signature_size); #define PSA_ASYMMETRIC_ENCRYPT_OUTPUT_SIZE(key_type, key_bits, alg) \ diff --git a/library/psa_crypto.c b/library/psa_crypto.c index a4fac648e..c7a44f6a7 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -1741,7 +1741,7 @@ psa_status_t psa_asymmetric_verify( psa_key_slot_t key, size_t hash_length, const uint8_t *salt, size_t salt_length, - uint8_t *signature, + const uint8_t *signature, size_t signature_size ) { key_slot_t *slot;