sha3: Make sure to wipe the internal Keccak state
This commit is contained in:
1 parent
b7d7a6be3a
commit
e0e99c1dd3
1 file changed
+1
@@ -462,6 +462,7 @@ METHOD(sha3_keccak_t, squeeze, void,
|
|||||||
METHOD(sha3_keccak_t, destroy, void,
|
METHOD(sha3_keccak_t, destroy, void,
|
||||||
private_sha3_keccak_t *this)
|
private_sha3_keccak_t *this)
|
||||||
{
|
{
|
||||||
|
memwipe(this->state, sizeof(this->state));
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user