Skip to content

Commit

Permalink
fix for state of aes.gcm.H on re-use
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Oct 23, 2024
1 parent 6e14889 commit d0f5778
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 d0f5778

Please sign in to comment.