Gilad Ben-Yossef
e497c51896
crypto: ofb - add output feedback mode
...
Add a generic version of output feedback mode. We already have support of
several hardware based transformations of this mode and the needed test
vectors but we somehow missed adding a generic software one. Fix this now.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:26 +08:00
Gilad Ben-Yossef
95ba597367
crypto: testmgr - update sm4 test vectors
...
Add additional test vectors from "The SM4 Blockcipher Algorithm And Its
Modes Of Operations" draft-ribose-cfrg-sm4-10 and register cipher speed
tests for sm4.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:26 +08:00
zhong jiang
ce1294d981
crypto: chtls - remove redundant null pointer check before kfree_skb
...
kfree_skb has taken the null pointer into account. hence it is safe
to remove the redundant null pointer check before kfree_skb.
Signed-off-by: zhong jiang <zhongjiang@huawei.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:26 +08:00
Horia Geantă
4d407b04d4
crypto: tcrypt - remove remnants of pcomp-based zlib
...
Commit 110492183c ("crypto: compress - remove unused pcomp interface")
removed pcomp interface but missed cleaning up tcrypt.
Signed-off-by: Horia Geantă <horia.geanta@nxp.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:26 +08:00
Corentin Labbe
a6f37cee6e
crypto: tools - Add cryptostat userspace
...
This patch adds an userspace tool for displaying kernel crypto API
statistics.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:26 +08:00
Corentin Labbe
cac5818c25
crypto: user - Implement a generic crypto statistics
...
This patch implement a generic way to get statistics about all crypto
usages.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:25 +08:00
Kees Cook
a9cbfe4c78
crypto: skcipher - Remove SKCIPHER_REQUEST_ON_STACK()
...
Now that all the users of the VLA-generating SKCIPHER_REQUEST_ON_STACK()
macro have been moved to SYNC_SKCIPHER_REQUEST_ON_STACK(), we can remove
the former.
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:09 +08:00
Kees Cook
6adfbd621b
crypto: picoxcell - 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
Cc: Jamie Iles <jamie@jamieiles.com >
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:09 +08:00
Kees Cook
e87f203ce6
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 >
2018-09-28 12:46:09 +08:00
Kees Cook
f805f59d1e
crypto: mxs-dcp - 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 >
2018-09-28 12:46:09 +08:00
Kees Cook
28874f2637
crypto: chelsio - 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
Cc: Harsh Jain <harsh@chelsio.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:08 +08:00
Kees Cook
888a649c11
crypto: artpec6 - 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
Cc: Jesper Nilsson <jesper.nilsson@axis.com >
Cc: Lars Persson <lars.persson@axis.com >
Cc: linux-arm-kernel@axis.com
Signed-off-by: Kees Cook <keescook@chromium.org >
Acked-by: Lars Persson <lars.persson@axis.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:08 +08:00
Kees Cook
d1e4ba83b0
crypto: qce - 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
Cc: Himanshu Jha <himanshujha199640@gmail.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:08 +08:00
Kees Cook
ba70152b60
crypto: sahara - 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 >
2018-09-28 12:46:08 +08:00
Kees Cook
36b3875a97
crypto: cryptd - 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 >
2018-09-28 12:46:08 +08:00
Kees Cook
8d60539842
crypto: null - 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 >
2018-09-28 12:46:08 +08:00
Kees Cook
5c525640ef
crypto: vmx - 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
Cc: "Leonidas S. Barbosa" <leosilva@linux.vnet.ibm.com >
Cc: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Michael Ellerman <mpe@ellerman.id.au >
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:08 +08:00
Kees Cook
7f28615df8
crypto: ccp - 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
Cc: Tom Lendacky <thomas.lendacky@amd.com >
Cc: Gary Hook <gary.hook@amd.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:08 +08:00
Kees Cook
d2841f22f4
wusb: 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
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Felipe Balbi <felipe.balbi@linux.intel.com >
Cc: Johan Hovold <johan@kernel.org >
Cc: "Gustavo A. R. Silva" <gustavo@embeddedor.com >
Cc: linux-usb@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org >
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:08 +08:00
Kees Cook
69d826fa5d
rxrpc: 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
Cc: David Howells <dhowells@redhat.com >
Cc: linux-afs@lists.infradead.org
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:07 +08:00
Kees Cook
82633a6f6d
ppp: mppe: 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
Cc: Paul Mackerras <paulus@samba.org >
Cc: linux-ppp@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:07 +08:00
Kees Cook
69d6302b65
libceph: 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
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: "Yan, Zheng" <zyan@redhat.com >
Cc: Sage Weil <sage@redhat.com >
Cc: ceph-devel@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:07 +08:00
Kees Cook
dc568baf9b
block: cryptoloop: 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
Cc: Jens Axboe <axboe@kernel.dk >
Cc: linux-block@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org >
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:07 +08:00
Kees Cook
88fe0b957f
x86/fpu: 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
Cc: x86@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org >
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:07 +08:00
Kees Cook
531fa5d620
s390/crypto: 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
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com >
Cc: Heiko Carstens <heiko.carstens@de.ibm.com >
Cc: linux-s390@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2018-09-28 12:46:07 +08:00