]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
sha3: Make sure to wipe the internal Keccak state
authorTobias Brunner <tobias@strongswan.org>
Tue, 11 Jul 2023 09:59:46 +0000 (11:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 26 Jul 2023 13:08:33 +0000 (15:08 +0200)
src/libstrongswan/plugins/sha3/sha3_keccak.c

index 57f6885c56f343757d870c92f6cf086a8a617981..e56df011051d7e15aa6f54e6aa396e3b629f3739 100644 (file)
@@ -462,6 +462,7 @@ METHOD(sha3_keccak_t, squeeze, void,
 METHOD(sha3_keccak_t, destroy, void,
        private_sha3_keccak_t *this)
 {
+       memwipe(this->state, sizeof(this->state));
        free(this);
 }