From b183d56b5f0a836af85c9bedaf9790ef0d0b284d Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Mon, 13 Sep 2021 19:02:57 +0100 Subject: [PATCH] Use safer size for tag checking Signed-off-by: Paul Elliott --- library/psa_crypto_driver_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/psa_crypto_driver_wrappers.c b/library/psa_crypto_driver_wrappers.c index 5e7eb11cc..4c56162f3 100644 --- a/library/psa_crypto_driver_wrappers.c +++ b/library/psa_crypto_driver_wrappers.c @@ -1749,7 +1749,7 @@ psa_status_t psa_driver_wrapper_aead_verify( plaintext_size, plaintext_length, check_tag, - tag_length, + sizeof( check_tag ), &check_tag_length ); if( status == PSA_SUCCESS )