From: Tobias Brunner Date: Tue, 11 Jul 2023 09:30:44 +0000 (+0200) Subject: gcm: Make sure to wipe salt and H X-Git-Tag: android-2.4.2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0abb37b83000f0d4278e7199e6a0cca1558500b4;p=thirdparty%2Fstrongswan.git gcm: Make sure to wipe salt and H --- diff --git a/src/libstrongswan/plugins/gcm/gcm_aead.c b/src/libstrongswan/plugins/gcm/gcm_aead.c index d9ef397b4d..f85e3167e7 100644 --- a/src/libstrongswan/plugins/gcm/gcm_aead.c +++ b/src/libstrongswan/plugins/gcm/gcm_aead.c @@ -370,6 +370,8 @@ METHOD(aead_t, destroy, void, { this->crypter->destroy(this->crypter); this->iv_gen->destroy(this->iv_gen); + memwipe(this->salt, sizeof(this->salt)); + memwipe(this->h, sizeof(this->h)); free(this); }