]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2371fb9152f9efa39419b3a33623b831d0741814
tree4380a6a3866a4c8a852159e8e69a6d2a6f68ccdb
parent79830368e293a4d8afafbfa2cc18e37df5b3ab0d
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