fix for state of aes.gcm.H on re-use

This commit is contained in:
JacobBarthelmeh
2024-10-23 15:04:06 -06:00
parent 6e14889758
commit d0f5778429

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