Merge pull request #8107 from JacobBarthelmeh/aesgcm

fix for state of aes.gcm.H on re-use
pull/8108/head
Daniel Pouzzner 2024-10-23 16:52:42 -05:00 committed by GitHub
commit 82273094e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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