From: Tobias Brunner Date: Tue, 11 Jul 2023 09:59:46 +0000 (+0200) Subject: sha3: Make sure to wipe the internal Keccak state X-Git-Tag: android-2.4.2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0e99c1dd32b33aa6325d2601dd8c945d568ea1c;p=thirdparty%2Fstrongswan.git sha3: Make sure to wipe the internal Keccak state --- diff --git a/src/libstrongswan/plugins/sha3/sha3_keccak.c b/src/libstrongswan/plugins/sha3/sha3_keccak.c index 57f6885c56..e56df01105 100644 --- a/src/libstrongswan/plugins/sha3/sha3_keccak.c +++ b/src/libstrongswan/plugins/sha3/sha3_keccak.c @@ -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); }