diff options
author | Kees Cook <keescook@chromium.org> | 2018-08-07 14:18:42 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-09-04 11:37:03 +0800 |
commit | 5082b185b4168e21dc748c31dedb872c5d1b81c6 (patch) | |
tree | 8521d5e3d2811470fe455767199da9e2d95dc0a0 /crypto/chacha20_generic.c | |
parent | 3df7ba70b9a01a1ccadd44cacb66e8275bc76560 (diff) | |
download | linux-crypto-5082b185b4168e21dc748c31dedb872c5d1b81c6.tar.gz linux-crypto-5082b185b4168e21dc748c31dedb872c5d1b81c6.zip |
crypto: shash - Remove VLA usage in unaligned hashing
In the quest to remove all stack VLA usage from the kernel[1], this uses
the newly defined max alignment to perform unaligned hashing to avoid
VLAs, and drops the helper function while adding sanity checks on the
resulting buffer sizes. Additionally, the __aligned_largest macro is
removed since this helper was the only user.
[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/chacha20_generic.c')
0 files changed, 0 insertions, 0 deletions