crypto: sun8i-ss - do not allocate memory when handling hash requests
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:19 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:18 +0000 (17:24 +0800)
commit8eec4563f152981a441693fc97c5459843dc5e6e
tree83cf01182006fa2da64cd83e8249f2532def1887
parent4d867bebdc3afa97e00f9b64a21a3c51ce7feecf
crypto: sun8i-ss - do not allocate memory when handling hash requests

Instead of allocate memory on each requests, it is easier to
pre-allocate buffers.
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/sun8i-ss/sun8i-ss-core.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h