summaryrefslogtreecommitdiff
path: root/crypto/ecc.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-03-08 13:57:02 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-16 23:35:53 +0800
commita5b2ea2ce96a5cb3582dc0cd3010ad9183ecdc09 (patch)
treea72a684b951e64b315316e2a40f3a5f0923356a0 /crypto/ecc.h
parent60f8e97aa607577b53c3420265e441b619c36574 (diff)
downloadlinux-crypto-a5b2ea2ce96a5cb3582dc0cd3010ad9183ecdc09.tar.gz
linux-crypto-a5b2ea2ce96a5cb3582dc0cd3010ad9183ecdc09.zip
crypto: ecc - Remove stack VLA usage
On the quest to remove all VLAs from the kernel[1], this switches to a pair of kmalloc regions instead of using the stack. This also moves the get_random_bytes() after all allocations (and drops the needless "nbytes" variable). [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecc.h')
0 files changed, 0 insertions, 0 deletions