]> 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)
commit2b7c0889f267a40323720f5442e5086f255c9fab
tree4380a6a3866a4c8a852159e8e69a6d2a6f68ccdb
parent6cce2d483047577e97cd07f9d8587c6392889ac8
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