]> www.infradead.org Git - users/jedix/linux-maple.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Feb 2025 07:56:02 +0000 (15:56 +0800)
commita49cc71e219040d771a8c1254879984f98192811
treec7ca07c715e3457b10e3badd46b7fe4177bce65e
parent1b284ffc30b02808a0de698667cbcf5ce5f9144e
crypto: hisilicon/sec2 - fix for aead authsize alignment

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>
drivers/crypto/hisilicon/sec2/sec_crypto.c