diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-05-21 13:34:15 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-19 09:09:39 +0200 |
commit | 3dfc787f2f50e153f6f36beeee6e1a68dac0b585 (patch) | |
tree | 335f48a6955973d475faba0b38d343df8e46289a /drivers/crypto | |
parent | e89d4cb6fba3c5a59acb3952b3adc2033b4a0a16 (diff) | |
download | linux-stable-3dfc787f2f50e153f6f36beeee6e1a68dac0b585.tar.gz linux-stable-3dfc787f2f50e153f6f36beeee6e1a68dac0b585.tar.bz2 linux-stable-3dfc787f2f50e153f6f36beeee6e1a68dac0b585.zip |
crypto: talitos - HMAC SNOOP NO AFEU mode requires SW icv checking.
commit 4bbfb839259a9c96a0be872e16f7471b7136aee5 upstream.
In that mode, hardware ICV verification is not supported.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Fixes: 7405c8d7ff97 ("crypto: talitos - templates for AEAD using HMAC_SNOOP_NO_AFEU")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/talitos.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 50680043a38b..064315edd289 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -1480,7 +1480,8 @@ static int aead_decrypt(struct aead_request *req) if (IS_ERR(edesc)) return PTR_ERR(edesc); - if ((priv->features & TALITOS_FTR_HW_AUTH_CHECK) && + if ((edesc->desc.hdr & DESC_HDR_TYPE_IPSEC_ESP) && + (priv->features & TALITOS_FTR_HW_AUTH_CHECK) && ((!edesc->src_nents && !edesc->dst_nents) || priv->features & TALITOS_FTR_SRC_LINK_TBL_LEN_INCLUDES_EXTENT)) { |