Commit fbb22137 authored by LEROY Christophe's avatar LEROY Christophe Committed by Herbert Xu

crypto: talitos - fix use of sg_link_tbl_len

sg_link_tbl_len shall be used instead of cryptlen, otherwise
SECs which perform HW CICV verification will fail.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 6cda075a
...@@ -1232,8 +1232,8 @@ static int ipsec_esp(struct talitos_edesc *edesc, struct aead_request *areq, ...@@ -1232,8 +1232,8 @@ static int ipsec_esp(struct talitos_edesc *edesc, struct aead_request *areq,
sg_link_tbl_len += authsize; sg_link_tbl_len += authsize;
} }
ret = talitos_sg_map(dev, areq->src, cryptlen, edesc, &desc->ptr[4], ret = talitos_sg_map(dev, areq->src, sg_link_tbl_len, edesc,
sg_count, areq->assoclen, tbl_off); &desc->ptr[4], sg_count, areq->assoclen, tbl_off);
if (ret > 1) { if (ret > 1) {
tbl_off += ret; tbl_off += ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment