OSDN Git Service

crypto: sun4i-ss - handle BigEndian for cipher
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 14 Dec 2020 20:02:28 +0000 (20:02 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 2 Jan 2021 21:41:35 +0000 (08:41 +1100)
commit5ab6177fa02df15cd8a02a1f1fb361d2d5d8b946
treeb1abc9fef4f73ec8fe97e97916661f70811a2388
parentb756f1c8fc9d84e3f546d7ffe056c5352f4aab05
crypto: sun4i-ss - handle BigEndian for cipher

Ciphers produce invalid results on BE.
Key and IV need to be written in LE.

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>
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c