Skip to content

Commit 0a05129

Browse files
Fix authTagSz validation
1 parent 2a06460 commit 0a05129

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/aes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12604,7 +12604,7 @@ int wc_AesGcmDecryptFinal(Aes* aes, const byte* authTag, word32 authTagSz)
1260412604

1260512605
/* Check validity of parameters. */
1260612606
if ((aes == NULL) || (authTag == NULL) || (authTagSz > WC_AES_BLOCK_SIZE) ||
12607-
(authTagSz == 0)) {
12607+
(authTagSz < WOLFSSL_MIN_AUTH_TAG_SZ)) {
1260812608
ret = BAD_FUNC_ARG;
1260912609
}
1261012610

0 commit comments

Comments
 (0)