staging: rtl8192e: ieee80211: Convert from ahash to shash
authorKees Cook <keescook@chromium.org>
Tue, 24 Jul 2018 16:49:33 +0000 (09:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jul 2018 08:05:23 +0000 (10:05 +0200)
commitbd757b5d2e0b30939ba63b80af7355fe755fe2da
treedd7e721a39bb60dfcbbf7888ebd6a888d2ab0d02
parentbb8a14a3d8203f3af45f84c6169cc09ef56156a3
staging: rtl8192e: ieee80211: Convert from ahash to shash

This is an identical change to the wireless/lib80211 of the same name.
In preparing to remove all stack VLA usage from the kernel[1], this
removes the discouraged use of AHASH_REQUEST_ON_STACK in favor of
the smaller SHASH_DESC_ON_STACK by converting from ahash-wrapped-shash
to direct shash. By removing a layer of indirection this both improves
performance and reduces stack usage. The stack allocation will be made
a fixed size in a later patch to the crypto subsystem.

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_crypt_tkip.c