summaryrefslogtreecommitdiff
path: root/drivers/crypto/omap-aes.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-09-19 05:10:58 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-09-28 07:46:09 +0300
commite87f203ce6202b0380eae31ca524a22f714b740e (patch)
tree8dd78f2711de8ba87011b5afd5621debc995f1dd /drivers/crypto/omap-aes.h
parentf805f59d1ea2f599516e183d753e4e0acc2ed721 (diff)
downloadlinux-e87f203ce6202b0380eae31ca524a22f714b740e.tar.xz
crypto: omap-aes - Remove VLA usage of skcipher
In the quest to remove all stack VLA usage from the kernel[1], this replaces struct crypto_skcipher and SKCIPHER_REQUEST_ON_STACK() usage with struct crypto_sync_skcipher and SYNC_SKCIPHER_REQUEST_ON_STACK(), which uses a fixed stack size. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/omap-aes.h')
-rw-r--r--drivers/crypto/omap-aes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/omap-aes.h b/drivers/crypto/omap-aes.h
index fc3b46a85809..7e02920ef6f8 100644
--- a/drivers/crypto/omap-aes.h
+++ b/drivers/crypto/omap-aes.h
@@ -101,7 +101,7 @@ struct omap_aes_ctx {
int keylen;
u32 key[AES_KEYSIZE_256 / sizeof(u32)];
u8 nonce[4];
- struct crypto_skcipher *fallback;
+ struct crypto_sync_skcipher *fallback;
struct crypto_skcipher *ctr;
};