]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
gcm: Make sure to wipe salt and H
authorTobias Brunner <tobias@strongswan.org>
Tue, 11 Jul 2023 09:30:44 +0000 (11:30 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 26 Jul 2023 13:08:33 +0000 (15:08 +0200)
src/libstrongswan/plugins/gcm/gcm_aead.c

index d9ef397b4df5d6be2746db14aeb9a6f6880c1859..f85e3167e77fe27f6a5a6bae415d71ff49049042 100644 (file)
@@ -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);
 }