[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZIw56UTG3fPtp/DM@gondor.apana.org.au>
Date: Fri, 16 Jun 2023 18:31:05 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Mahmoud Adam <mngyadam@...zon.com>
Cc: dhowells@...hat.com, davem@...emloft.net, keyrings@...r.kernel.org,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] KEYS: use kfree_sensitive with key
On Thu, Jun 15, 2023 at 12:57:13PM +0000, Mahmoud Adam wrote:
> key might contain private part of the key, so better use
> kfree_sensitive to free it
>
> Signed-off-by: Mahmoud Adam <mngyadam@...zon.com>
> ---
> v2: kfree_sensitive only private key
>
> crypto/asymmetric_keys/public_key.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
Sorry, I was confused by the naming in this file. These public_keys
can indeed be private. So I'll just take your original patch.
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists