Merge pull request #8107 from JacobBarthelmeh/aesgcm

fix for state of aes.gcm.H on re-use
This commit is contained in:
Daniel Pouzzner
2024-10-23 16:52:42 -05:00
committed by GitHub

View File

@ -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 */