From ccaea40023814fbb31b2d35435b0e2c8c87535ea Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 13 May 2021 14:22:52 +0100 Subject: [PATCH] Replace hard coded buffer size with define Signed-off-by: Paul Elliott --- library/psa_crypto_aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/psa_crypto_aead.c b/library/psa_crypto_aead.c index b694bfd9e..0d1cdaed4 100644 --- a/library/psa_crypto_aead.c +++ b/library/psa_crypto_aead.c @@ -843,7 +843,7 @@ psa_status_t mbedtls_psa_aead_verify( mbedtls_psa_aead_operation_t *operation, size_t finish_output_size = 0; int do_tag_check = 1; - uint8_t check_tag[16]; + uint8_t check_tag[PSA_AEAD_TAG_MAX_SIZE]; status = mbedtls_psa_aead_finish_checks( operation, plaintext_size, tag_length );