]> www.infradead.org Git - users/dwmw2/linux.git/commit
crypto: hisilicon/sec - fix auth key size error
authorKai Ye <yekai13@huawei.com>
Thu, 21 Jul 2022 02:18:31 +0000 (10:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:15:50 +0000 (15:15 +0200)
commitc206177ca8a953d916c009eacb71ec4b81e58ecb
tree94213f8057645e585e804a1b4ac2de4988bc1733
parent9524edb1a78218d1887c6160dd708abfba757f10
crypto: hisilicon/sec - fix auth key size error

[ Upstream commit 45f5d0176d8426cc1ab0bab84fbd8ef5c57526c6 ]

The authentication algorithm supports a maximum of 128-byte keys.
The allocated key memory is insufficient.

Fixes: 2f072d75d1ab ("crypto: hisilicon - Add aead support on SEC2")
Signed-off-by: Kai Ye <yekai13@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
drivers/crypto/hisilicon/sec2/sec_crypto.h