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

index 6c1d8ed0c08de5bfe9403a25de133a975defec16..a155e2f42ad21b5454721a5e06fa898e516a9b6d 100644 (file)
@@ -338,6 +338,7 @@ METHOD(aead_t, destroy, void,
 {
        this->crypter->destroy(this->crypter);
        this->iv_gen->destroy(this->iv_gen);
+       memwipe(this->salt, sizeof(this->salt));
        free(this);
 }