the ICV check bit only gets set in decrypt entry points

Signed-off-by: Kim Phillips <kim.phill...@freescale.com>
---
 drivers/crypto/talitos.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index 1cc1c41..c70775f 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -1010,8 +1010,7 @@ static int ipsec_esp(struct talitos_edesc *edesc, struct 
aead_request *areq,
        } else {
                sg_link_tbl_len = cryptlen;
 
-               if ((edesc->desc.hdr & DESC_HDR_MODE1_MDEU_CICV) &&
-                       (edesc->desc.hdr & DESC_HDR_MODE0_ENCRYPT) == 0)
+               if (edesc->desc.hdr & DESC_HDR_MODE1_MDEU_CICV)
                        sg_link_tbl_len = cryptlen + authsize;
 
                sg_count = sg_to_link_tbl(areq->src, sg_count, sg_link_tbl_len,
-- 
1.6.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to