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>
Sat, 7 Jan 2023 10:11:54 +0000 (11:11 +0100)
commitb70acb182f45544aa66f6c343d1faac4a3e5e49a
treebbaab6ae88f43cbad10e5e4aea3eb70a0787c3bf
parent85292a29689a740b36ae2ff41b92bc51eb97e01f
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: 0a625fd2abaa ("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