mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
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>
This commit is contained in:
parent
19bbbc6355
commit
962a9c9949
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user