Message ID | CACXcFm=02=y=+0m3h_q4X1Jtf--7Ou=tmvVMKjEC46tFGj=V4A@mail.gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Herbert Xu |
Headers | show |
Series | memset() in crypto code | expand |
diff --git a/crypto/sha3_generic.c b/crypto/sha3_generic.c index 3e4069935b53..cfc10dd62e02 100644 --- a/crypto/sha3_generic.c +++ b/crypto/sha3_generic.c @@ -232,7 +232,7 @@ int crypto_sha3_final(struct shash_desc *desc, u8 *out) if (digest_size & 4) put_unaligned_le32(sctx->st[i], (__le32 *)digest); - memset(sctx, 0, sizeof(*sctx)); + memzero_explicit(sctx, sizeof(*sctx)); return 0; } EXPORT_SYMBOL(crypto_sha3_final);