Skip to content

Commit

Permalink
Merge pull request wolfSSL#8107 from JacobBarthelmeh/aesgcm
Browse files Browse the repository at this point in the history
fix for state of aes.gcm.H on re-use
  • Loading branch information
douzzer authored Oct 23, 2024
2 parents 1d25e0f + d0f5778 commit 8227309
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wolfcrypt/src/aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -8063,6 +8063,8 @@ static void GHASH_FINAL(Aes* aes, byte* s, word32 sSz)
GHASH_LEN_BLOCK(aes);
/* Copy the result into s. */
XMEMCPY(s, AES_TAG(aes), sSz);
/* reset aes->gcm.H in case of re-use */
GHASH_INIT_EXTRA(aes);
}
#endif /* WOLFSSL_AESGCM_STREAM */

Expand Down

0 comments on commit 8227309

Please sign in to comment.