Merge pull request #5196 from douzzer/20220601-multi-test-fixes

This commit is contained in:
Hayden Roche
2022-06-01 11:41:26 -07:00
committed by GitHub
2 changed files with 10 additions and 8 deletions

View File

@ -5864,7 +5864,9 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD* type)
* Clear any leftover AAD on final (final is when src is
* NULL).
*/
if (ctx->gcmAuthIn != NULL) {
XMEMSET(ctx->gcmAuthIn, 0, ctx->gcmAuthInSz);
}
ctx->gcmAuthInSz = 0;
}
if (ret == 0) {