Message ID | CACXcFmnGYb_7Priu+JF3p2mKgB=5aua7VpMnpxENjfssg2bL_g@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/dh.c b/crypto/dh.c index cd4f32092e5c..ff7dc65b3b41 100644 --- a/crypto/dh.c +++ b/crypto/dh.c @@ -25,7 +25,7 @@ static void dh_clear_ctx(struct dh_ctx *ctx) mpi_free(ctx->q); mpi_free(ctx->g); mpi_free(ctx->xa); - memset(ctx, 0, sizeof(*ctx)); + memzero_explicit(ctx, sizeof(*ctx)); } /*