Wipe memory after using key material (incomplete, to be continued)

This commit is contained in:
Martin Willi
2011-05-09 14:36:15 +02:00
parent 7dc48bab1b
commit f7812f6492
9 changed files with 43 additions and 24 deletions
+2 -2
View File
@@ -147,8 +147,8 @@ METHOD(hmac_t, destroy, void,
private_hmac_t *this)
{
this->h->destroy(this->h);
free(this->opaded_key.ptr);
free(this->ipaded_key.ptr);
chunk_clear(&this->opaded_key);
chunk_clear(&this->ipaded_key);
free(this);
}