projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19bbbc6
)
crypto: talitos - Avoid unnecessary decrypt check
author
Kim Phillips
<kim.phillips@freescale.com>
Sun, 29 Mar 2009 07:54:30 +0000
(15:54 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 2 Jun 2009 04:04:30 +0000
(14:04 +1000)
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>
drivers/crypto/talitos.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/crypto/talitos.c
b/drivers/crypto/talitos.c
index 1cc1c411e5512a419aac42aac698da1e0a984583..c70775fd3ce2266b3b2805b8c1cb440217a55b6f 100644
(file)
--- 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,