]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:07 +0000 (10:26 +0200)
commit6085ee3cac509c5ced7d28af81bfecb2a6ce9469
tree0fbd85b2ae1d534c40e1683b59f0589bc51a0571
parentb3c974501d0c32258ae0e04e5cc3fb92383b40f6
crypto: sun8i-ss - rework handling of IV

[ Upstream commit 359e893e8af456be2fefabe851716237df289cbf ]

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: f08fcced6d00 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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