gcm: Make sure to wipe salt and H

This commit is contained in:
Tobias Brunner
2023-07-26 15:08:33 +02:00
parent e8f8d32494
commit 0abb37b830
+2
View File
@@ -370,6 +370,8 @@ METHOD(aead_t, destroy, void,
{
this->crypter->destroy(this->crypter);
this->iv_gen->destroy(this->iv_gen);
memwipe(this->salt, sizeof(this->salt));
memwipe(this->h, sizeof(this->h));
free(this);
}