sha3: Make sure to wipe the internal Keccak state
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user