commit | ccaea40023814fbb31b2d35435b0e2c8c87535ea | [log] [tgz] |
---|---|---|
author | Paul Elliott <paul.elliott@arm.com> | Thu May 13 14:22:52 2021 +0100 |
committer | Paul Elliott <paul.elliott@arm.com> | Fri May 14 19:03:26 2021 +0100 |
tree | b3271fbbe28a31528360ae8415740c7ae45b2f5c | |
parent | 80acb7ee21c58df798b21dd03e3ee679f1f0c027 [diff] [blame] |
Replace hard coded buffer size with define Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/library/psa_crypto_aead.c b/library/psa_crypto_aead.c index b694bfd..0d1cdae 100644 --- a/library/psa_crypto_aead.c +++ b/library/psa_crypto_aead.c
@@ -843,7 +843,7 @@ 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 );