Use safer size for tag checking

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2021-09-13 19:02:57 +01:00
parent 06b6b8c8d6
commit b183d56b5f

View file

@ -1749,7 +1749,7 @@ psa_status_t psa_driver_wrapper_aead_verify(
plaintext_size, plaintext_size,
plaintext_length, plaintext_length,
check_tag, check_tag,
tag_length, sizeof( check_tag ),
&check_tag_length ); &check_tag_length );
if( status == PSA_SUCCESS ) if( status == PSA_SUCCESS )