]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cbc - Remove VLA usage
authorKees Cook <keescook@chromium.org>
Tue, 7 Aug 2018 21:18:36 +0000 (14:18 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 4 Sep 2018 03:35:03 +0000 (11:35 +0800)
commit083c90906ed92546125bf9177095ce81f1884897
treee5a3f40467761338110ae7a46950457ee1a3a823
parent7eb7323850ea4d6ec650af329715da25aa5fd570
crypto: cbc - Remove VLA usage

In the quest to remove all stack VLA usage from the kernel[1], this
uses the upper bounds on blocksize. Since this is always a cipher
blocksize, use the existing cipher max blocksize.

[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>
include/crypto/cbc.h