mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 18:40:10 +00:00
crypto: talitos - fix use of sg_link_tbl_len
commit fbb22137c4 upstream.
sg_link_tbl_len shall be used instead of cryptlen, otherwise
SECs which perform HW CICV verification will fail.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a2d93ada4f
commit
2040f8e814
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user