crypto: sun8i-ss - handle requests if last block is not modulo 64
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:21 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:19 +0000 (17:24 +0800)
commitc35e523a8b6962012a589e4a41f56015c31a3397
tree4380a6a3866a4c8a852159e8e69a6d2a6f68ccdb
parentdb0c62bcd4809be50dc952bfade5adf4baf52023
crypto: sun8i-ss - handle requests if last block is not modulo 64

The current sun8i-ss handle only requests with all SG length being
modulo 64.
But the last SG could be always handled by copying it on the pad buffer.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h