aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/hisilicon/sec2/sec.h
diff options
context:
space:
mode:
authorWenkai Lin <linwenkai6@hisilicon.com>2024-12-13 17:13:34 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2024-12-21 22:46:24 +0800
commitfd337f852b2677b53d0859a47b58e6e6bd189f30 (patch)
treed4be55d4197e122f8f0a743f9a400c66d5a02b79 /drivers/crypto/hisilicon/sec2/sec.h
parentcrypto: x86/aes-xts - additional optimizations (diff)
downloadlinux-rng-fd337f852b2677b53d0859a47b58e6e6bd189f30.tar.xz
linux-rng-fd337f852b2677b53d0859a47b58e6e6bd189f30.zip
crypto: hisilicon/sec2 - fix for aead icv error
When the AEAD algorithm is used for encryption or decryption, the input authentication length varies, the hardware needs to obtain the input length to pass the integrity check verification. Currently, the driver uses a fixed authentication length,which causes decryption failure, so the length configuration is modified. In addition, the step of setting the auth length is unnecessary, so it was deleted from the setkey function. Fixes: 2f072d75d1ab ("crypto: hisilicon - Add aead support on SEC2") Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com> Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/sec2/sec.h')
-rw-r--r--drivers/crypto/hisilicon/sec2/sec.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/crypto/hisilicon/sec2/sec.h b/drivers/crypto/hisilicon/sec2/sec.h
index 356188bee6fb..70c3bdedb6ba 100644
--- a/drivers/crypto/hisilicon/sec2/sec.h
+++ b/drivers/crypto/hisilicon/sec2/sec.h
@@ -90,7 +90,6 @@ struct sec_auth_ctx {
dma_addr_t a_key_dma;
u8 *a_key;
u8 a_key_len;
- u8 mac_len;
u8 a_alg;
bool fallback;
struct crypto_shash *hash_tfm;