]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun8i-ss - rework handling of IV
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:14 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:18 +0000 (17:24 +0800)
commit55fec2aafceade12e57c18436f4f69e36c6243f2
treeab96f7c79bb915d1f0b4da18738b478a37fc7fbf
parent5d2d9c54628202492df6185a0fc1c548a38965a3
crypto: sun8i-ss - rework handling of IV

sun8i-ss fail handling IVs when doing decryption of multiple SGs in-place.
It should backup the last block of each SG source for using it later as
IVs.
In the same time remove allocation on requests path for storing all
IVs.

Fixes: 49eeb68ab159 ("crypto: allwinner - Add sun8i-ss cryptographic offloader")
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-cipher.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h