Message ID | CACXcFmnYNSLvjNfyvWXq4VSxoreKTC27E+hotcFz-AQ0FCDT5w@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/rmd160.c b/crypto/rmd160.c index c5fe4034b153..a80f783d5a4f 100644 --- a/crypto/rmd160.c +++ b/crypto/rmd160.c @@ -329,7 +329,7 @@ static int rmd160_final(struct shash_desc *desc, u8 *out) dst[i] = cpu_to_le32p(&rctx->state[i]); /* Wipe context */ - memset(rctx, 0, sizeof(*rctx)); + memzero_explicit(rctx, sizeof(*rctx)); return 0; }