Re: [PATCH 3/5] KEYS: encrypted: sanitize all key material

From: David Howells
Date: Fri Apr 21 2017 - 10:31:19 EST


Eric Biggers <ebiggers3@xxxxxxxxx> wrote:

> - memzero_explicit(epayload->decrypted_data, epayload->decrypted_datalen);
> - kfree(key->payload.data[0]);
> + kzfree(key->payload.data[0]);

Should kzfree() be using memzero_explicit() rather than memset()?

David