mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-05 13:44:41 +02:00
evp.c: in EvpCipherAesGCM(), make sure ctx->gcmAuthIn is non-null before clearing it; fix whitespace.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user