]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: hisilicon/sec2 - fix for aead authsize alignment
authorWenkai Lin <linwenkai6@hisilicon.com>
Wed, 5 Feb 2025 03:56:27 +0000 (11:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:17 +0000 (14:39 +0200)
commit71f4581c464b2f666ffebaa409b747b273ba9209
tree71932c3910164d7f04e1bcff1eecdf4d34063f06
parent0069c0e671ab57d096b66a127c1bc1e31595f0fe
crypto: hisilicon/sec2 - fix for aead authsize alignment

[ Upstream commit a49cc71e219040d771a8c1254879984f98192811 ]

The hardware only supports authentication sizes
that are 4-byte aligned. Therefore, the driver
switches to software computation in this case.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/hisilicon/sec2/sec_crypto.c