prf-plus: Wipe seed and internal buffer
The buffer contains key material we handed out last and the seed can contain the DH secret. References #2388.
This commit is contained in:
1 parent
32e5c49234
commit
e0c78d7516
1 file changed
+2
-2
@@ -115,8 +115,8 @@ METHOD(prf_plus_t, allocate_bytes, bool,
|
|||||||
METHOD(prf_plus_t, destroy, void,
|
METHOD(prf_plus_t, destroy, void,
|
||||||
private_prf_plus_t *this)
|
private_prf_plus_t *this)
|
||||||
{
|
{
|
||||||
free(this->buffer.ptr);
|
chunk_clear(&this->buffer);
|
||||||
free(this->seed.ptr);
|
chunk_clear(&this->seed);
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user