linux/drivers/crypto/allwinner
Corentin Labbe 7bdcd851fa crypto: sun4i-ss - checking sg length is not sufficient
The optimized cipher function need length multiple of 4 bytes.
But it get sometimes odd length.
This is due to SG data could be stored with an offset.

So the fix is to check also if the offset is aligned with 4 bytes.
Fixes: 6298e94821 ("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>
2021-01-03 08:41:35 +11:00
..
sun4i-ss crypto: sun4i-ss - checking sg length is not sufficient 2021-01-03 08:41:35 +11:00
sun8i-ce Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2020-12-14 12:18:19 -08:00
sun8i-ss crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
Kconfig crypto: kconfig - fix a couple of spelling mistakes 2020-11-20 14:45:34 +11:00
Makefile crypto: allwinner - Add sun8i-ss cryptographic offloader 2019-11-01 13:38:31 +08:00