Message ID | CACXcFmmyTXg77Dq1cR+MGCP=DRvcEzM=pCPcKL5u6-O+xofR1Q@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/echainiv.c b/crypto/echainiv.c index 69686668625e..6a7321da2fc1 100644 --- a/crypto/echainiv.c +++ b/crypto/echainiv.c @@ -64,7 +64,7 @@ static int echainiv_encrypt(struct aead_request *req) memcpy(&nseqno, info + ivsize - 8, 8); seqno = be64_to_cpu(nseqno); - memset(info, 0, ivsize); + memzero_explicit(info, ivsize); scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1);