Message ID | CACXcFmmZUggw8Ze7eoXhcvOtf8cWXJoS51MNwVmMGiK7ggCeOw@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/shash.c b/crypto/shash.c index 0a0a50cb694f..f07d06f5da71 100644 --- a/crypto/shash.c +++ b/crypto/shash.c @@ -112,7 +112,7 @@ static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, memcpy(buf, data, unaligned_len); err = shash->update(desc, buf, unaligned_len); - memset(buf, 0, unaligned_len); + memzero_explicit(buf, unaligned_len); return err ?: