]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: n2 - add missing hash statesize
authorCorentin Labbe <clabbe@baylibre.com>
Thu, 6 Oct 2022 04:34:19 +0000 (04:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:50 +0000 (11:41 +0100)
commit0e4a2c5299e2af741b0c51e24a0c12721b5a8469
tree287f78c7d873ec8db47f60767b83850836e9b874
parent541f5575fdb207020528b3f6bc95c968af3b130d
crypto: n2 - add missing hash statesize

commit 76a4e874593543a2dff91d249c95bac728df2774 upstream.

Add missing statesize to hash templates.
This is mandatory otherwise no algorithms can be registered as the core
requires statesize to be set.

CC: stable@kernel.org # 4.3+
Reported-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Tested-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Fixes: bca47dfd76f0 ("crypto: n2 - Add Niagara2 crypto driver")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/n2_core.c