diff options
author | Kees Cook <keescook@chromium.org> | 2018-08-07 14:18:35 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-09-04 11:35:03 +0800 |
commit | 9fe21a3ad41c79192cb7c15ab9b409a37524079d (patch) | |
tree | 3c97489ad8ff221fa65757922ce7c5e82d013168 /crypto/dh.c | |
parent | 74aeb05a0f6d06d2645ef2158ab03df80b8618f4 (diff) | |
download | linux-crypto-9fe21a3ad41c79192cb7c15ab9b409a37524079d.tar.gz linux-crypto-9fe21a3ad41c79192cb7c15ab9b409a37524079d.zip |
crypto: xcbc - Remove VLA usage
In the quest to remove all stack VLA usage from the kernel[1], this uses
the maximum blocksize and adds a sanity check. For xcbc, the blocksize
must always be 16, so use that, since it's already being enforced during
instantiation.
[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 'crypto/dh.c')
0 files changed, 0 insertions, 0 deletions