Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: authencesn - Fix src offset when decrypting in-place

The src SG list offset wasn't set properly when decrypting in-place,
fix it.

Reported-by: Wolfgang Walter <linux@stwm.de>
Fixes: e02494114ebf ("crypto: authencesn - Do not place hiseq at end of dst for out-of-place decryption")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+4 -2
+4 -2
crypto/authencesn.c
··· 228 228 229 229 decrypt: 230 230 231 - if (src != dst) 232 - src = scatterwalk_ffwd(areq_ctx->src, src, assoclen); 233 231 dst = scatterwalk_ffwd(areq_ctx->dst, dst, assoclen); 232 + if (req->src == req->dst) 233 + src = dst; 234 + else 235 + src = scatterwalk_ffwd(areq_ctx->src, src, assoclen); 234 236 235 237 skcipher_request_set_tfm(skreq, ctx->enc); 236 238 skcipher_request_set_callback(skreq, flags,