Added gcm_reset() to gcm_memory() to avoid key leakage

This commit is contained in:
Jin 2022-11-14 10:11:25 -08:00 committed by Jamie Reece Wilson
parent f37aad3f06
commit 9bb2608aa1

View File

@ -106,6 +106,7 @@ int gcm_memory( int cipher,
err = CRYPT_INVALID_ARG;
}
LTC_ERR:
gcm_reset(gcm);
XFREE(orig);
return err;
}