sha3: Make sure to wipe the internal Keccak state

This commit is contained in:
Tobias Brunner
2023-07-26 15:08:33 +02:00
parent b7d7a6be3a
commit e0e99c1dd3
@@ -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);
}