提交 962a9c99 编写于 作者: K Kim Phillips 提交者: Herbert Xu

crypto: talitos - Avoid unnecessary decrypt check

the ICV check bit only gets set in decrypt entry points
Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 19bbbc63
...@@ -1010,8 +1010,7 @@ static int ipsec_esp(struct talitos_edesc *edesc, struct aead_request *areq, ...@@ -1010,8 +1010,7 @@ static int ipsec_esp(struct talitos_edesc *edesc, struct aead_request *areq,
} else { } else {
sg_link_tbl_len = cryptlen; sg_link_tbl_len = cryptlen;
if ((edesc->desc.hdr & DESC_HDR_MODE1_MDEU_CICV) && if (edesc->desc.hdr & DESC_HDR_MODE1_MDEU_CICV)
(edesc->desc.hdr & DESC_HDR_MODE0_ENCRYPT) == 0)
sg_link_tbl_len = cryptlen + authsize; sg_link_tbl_len = cryptlen + authsize;
sg_count = sg_to_link_tbl(areq->src, sg_count, sg_link_tbl_len, sg_count = sg_to_link_tbl(areq->src, sg_count, sg_link_tbl_len,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册