gcm: Make sure to wipe salt and H

This commit is contained in:
Tobias Brunner 2023-07-11 11:30:44 +02:00
parent e8f8d32494
commit 0abb37b830

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);
}