mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Merge pull request #8107 from JacobBarthelmeh/aesgcm
fix for state of aes.gcm.H on re-use
This commit is contained in:
@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user