mbox series

[0/3] crypto: replace memset by memzero_explicit

Message ID 1616721648-56258-1-git-send-email-yekai13@huawei.com
Headers show
Series crypto: replace memset by memzero_explicit | expand

Message

yekai (A) March 26, 2021, 1:20 a.m. UTC
use memzero_explicit instead of memset to clear sensitive data,
 such as buffer or key.

Kai Ye (3):
  crypto: atmel - use memzero_explicit() for clearing data
  crypto: qce - use memzero_explicit() for clearing data
  crypto: stm32 - use memzero_explicit() for clearing data

 drivers/crypto/atmel-sha.c        | 2 +-
 drivers/crypto/qce/sha.c          | 1 +
 drivers/crypto/stm32/stm32-cryp.c | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

Comments

Herbert Xu April 2, 2021, 7:06 a.m. UTC | #1
On Fri, Mar 26, 2021 at 09:20:45AM +0800, Kai Ye wrote:
>  use memzero_explicit instead of memset to clear sensitive data,

>  such as buffer or key.


Does this fix a real issue? If not then it's just unnecessary
churn.

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt