crypto: sun4i-ss - do not allocate backup IV on requests
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:13 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:17 +0000 (17:24 +0800)
commit22d03a0aad0ecf5ab871a83493f593e2127961a1
treed98e1c6cd196921f65f7c14f43ec38f034e52df5
parent22f7c2f8cfdac70a4414b66ce6ffa270fcd15aa7
crypto: sun4i-ss - do not allocate backup IV on requests

Instead of allocate memory on each requests, it is easier to
pre-allocate buffer for backup IV.
This made error path easier.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c
drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h