diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2009-03-29 03:54:30 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-06-02 00:04:30 -0400 |
commit | 962a9c99496f98041d14d64a9fdcf58050fefb4d (patch) | |
tree | a6d663df5ed2d4401d75a7a7be7c68a2cbb56c7f | |
parent | 19bbbc635523703ece28409e59694d5b512b819e (diff) |
crypto: talitos - Avoid unnecessary decrypt check
the ICV check bit only gets set in decrypt entry points
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | 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 1cc1c411e551..c70775fd3ce2 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, | |||
1010 | } else { | 1010 | } else { |
1011 | sg_link_tbl_len = cryptlen; | 1011 | sg_link_tbl_len = cryptlen; |
1012 | 1012 | ||
1013 | if ((edesc->desc.hdr & DESC_HDR_MODE1_MDEU_CICV) && | 1013 | if (edesc->desc.hdr & DESC_HDR_MODE1_MDEU_CICV) |
1014 | (edesc->desc.hdr & DESC_HDR_MODE0_ENCRYPT) == 0) | ||
1015 | sg_link_tbl_len = cryptlen + authsize; | 1014 | sg_link_tbl_len = cryptlen + authsize; |
1016 | 1015 | ||
1017 | sg_count = sg_to_link_tbl(areq->src, sg_count, sg_link_tbl_len, | 1016 | sg_count = sg_to_link_tbl(areq->src, sg_count, sg_link_tbl_len, |