crypto: sun4i-ss - add missing statesize
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Mon, 16 Nov 2015 08:35:54 +0000 (09:35 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 17 Nov 2015 14:00:42 +0000 (22:00 +0800)
commit4f9ea86604e3ba64edd2817795798168fbb3c1a6
tree4323dfbe7819bf63be554d21f0a95a56199415b7
parentf9d1293b3c635f5224f7445acbe01672880a4945
crypto: sun4i-ss - add missing statesize

sun4i-ss implementaton of md5/sha1 is via ahash algorithms.
Commit 8996eafdcbad ("crypto: ahash - ensure statesize is non-zero")
made impossible to load them without giving statesize. This patch
specifiy statesize for sha1 and md5.

Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator")
Cc: <stable@vger.kernel.org> # v4.3+
Tested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sunxi-ss/sun4i-ss-core.c