mirror of https://github.com/wolfSSL/wolfssl.git
Merge pull request #8107 from JacobBarthelmeh/aesgcm
fix for state of aes.gcm.H on re-usepull/8108/head
commit
82273094e0
|
@ -8063,6 +8063,8 @@ static void GHASH_FINAL(Aes* aes, byte* s, word32 sSz)
|
||||||
GHASH_LEN_BLOCK(aes);
|
GHASH_LEN_BLOCK(aes);
|
||||||
/* Copy the result into s. */
|
/* Copy the result into s. */
|
||||||
XMEMCPY(s, AES_TAG(aes), sSz);
|
XMEMCPY(s, AES_TAG(aes), sSz);
|
||||||
|
/* reset aes->gcm.H in case of re-use */
|
||||||
|
GHASH_INIT_EXTRA(aes);
|
||||||
}
|
}
|
||||||
#endif /* WOLFSSL_AESGCM_STREAM */
|
#endif /* WOLFSSL_AESGCM_STREAM */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue