Message ID | CACXcFmm=eUjfVAJGgFGPfHWCc7s37j0==eASdqJK3OBAazeyOQ@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/sm2.c b/crypto/sm2.c index db8a4a265669..58641d964671 100644 --- a/crypto/sm2.c +++ b/crypto/sm2.c @@ -124,7 +124,7 @@ static void sm2_ec_ctx_deinit(struct mpi_ec_ctx *ec) { mpi_ec_deinit(ec); - memset(ec, 0, sizeof(*ec)); + memzero_explicit(ec, sizeof(*ec)); } /* RESULT must have been initialized and is set on success to the