diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2019-04-22 13:26:00 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-05-03 14:03:29 +0800 |
commit | 9848e4c873c1cae019bbef4ab3a500a05ca59fe6 (patch) | |
tree | 1ed5c1beebe3a50edd2391bac72a8aab4cabbc16 /drivers/crypto/amcc/crypto4xx_core.h | |
parent | crypto: crypto4xx - fix cfb and ofb "overran dst buffer" issues (diff) | |
download | linux-dev-9848e4c873c1cae019bbef4ab3a500a05ca59fe6.tar.xz linux-dev-9848e4c873c1cae019bbef4ab3a500a05ca59fe6.zip |
crypto: crypto4xx - use sync skcipher for fallback
This replaces struct crypto_skcipher and the extra request size
with struct crypto_sync_skcipher and SYNC_SKCIPHER_REQUEST_ON_STACK(),
which uses a fixed stack size.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | drivers/crypto/amcc/crypto4xx_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/amcc/crypto4xx_core.h b/drivers/crypto/amcc/crypto4xx_core.h index 18df695ca6b1..4ecc34fa8ebd 100644 --- a/drivers/crypto/amcc/crypto4xx_core.h +++ b/drivers/crypto/amcc/crypto4xx_core.h @@ -131,7 +131,7 @@ struct crypto4xx_ctx { __le32 iv_nonce; u32 sa_len; union { - struct crypto_skcipher *cipher; + struct crypto_sync_skcipher *cipher; struct crypto_aead *aead; } sw_cipher; }; |