crypto: sun4i-ss - IV register does not work on A10 and A13
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 14 Dec 2020 20:02:27 +0000 (20:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:31 +0000 (11:38 +0100)
commit19be286216dc62fb547096d22b734b9920aa9028
tree916ba66a79f11887f50be9fd8f7b1dac6110f8d8
parentca4460daf0c5fc83abd02379e9aad2ecea4324d4
crypto: sun4i-ss - IV register does not work on A10 and A13

commit b756f1c8fc9d84e3f546d7ffe056c5352f4aab05 upstream.

Allwinner A10 and A13 SoC have a version of the SS which produce
invalid IV in IVx register.

Instead of adding a variant for those, let's convert SS to produce IV
directly from data.
Fixes: 6298e948215f2 ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator")
Cc: <stable@vger.kernel.org>
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/allwinner/sun4i-ss/sun4i-ss-cipher.c