curve25519: Explicitly wipe shared secret when destroying DH object
This commit is contained in:
1 parent
d3d7a27e46
commit
14a811b6af
1 file changed
+1
@@ -147,6 +147,7 @@ METHOD(key_exchange_t, destroy, void,
|
|||||||
private_curve25519_dh_t *this)
|
private_curve25519_dh_t *this)
|
||||||
{
|
{
|
||||||
this->drv->destroy(this->drv);
|
this->drv->destroy(this->drv);
|
||||||
|
memwipe(this->shared, sizeof(this->shared));
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user