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