mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
aes.c: fix overwide code text in wc_AesCcmEncrypt().
This commit is contained in:
@ -7883,8 +7883,8 @@ int wc_AesCcmEncrypt(Aes* aes, byte* out, const byte* in, word32 inSz,
|
|||||||
const word32 wordSz = (word32)sizeof(word32);
|
const word32 wordSz = (word32)sizeof(word32);
|
||||||
|
|
||||||
/* sanity check on arguments */
|
/* sanity check on arguments */
|
||||||
if (aes == NULL || (inSz != 0 && (in == NULL || out == NULL)) || nonce == NULL
|
if (aes == NULL || (inSz != 0 && (in == NULL || out == NULL)) ||
|
||||||
|| authTag == NULL || nonceSz < 7 || nonceSz > 13 ||
|
nonce == NULL || authTag == NULL || nonceSz < 7 || nonceSz > 13 ||
|
||||||
authTagSz > AES_BLOCK_SIZE)
|
authTagSz > AES_BLOCK_SIZE)
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user