From bdd4ceb445d5679dcc7c43bb877de779d9689fa5 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 8 Feb 2021 21:50:29 -0600 Subject: [PATCH] aes.c: fix overwide code text in wc_AesCcmEncrypt(). --- wolfcrypt/src/aes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index e89dba5e1..e788c5694 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -7883,8 +7883,8 @@ int wc_AesCcmEncrypt(Aes* aes, byte* out, const byte* in, word32 inSz, const word32 wordSz = (word32)sizeof(word32); /* sanity check on arguments */ - if (aes == NULL || (inSz != 0 && (in == NULL || out == NULL)) || nonce == NULL - || authTag == NULL || nonceSz < 7 || nonceSz > 13 || + if (aes == NULL || (inSz != 0 && (in == NULL || out == NULL)) || + nonce == NULL || authTag == NULL || nonceSz < 7 || nonceSz > 13 || authTagSz > AES_BLOCK_SIZE) return BAD_FUNC_ARG;