wireless/lib80211: Convert from ahash to shash
authorKees Cook <keescook@chromium.org>
Mon, 16 Jul 2018 03:52:26 +0000 (20:52 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Jul 2018 07:17:20 +0000 (09:17 +0200)
commitd17504b16ea270ad858ce117447a8f4aa5a2de73
tree95fb37d94452243c2674395b56f0110bf44ed394
parent518ea3c54eb7e454b718a50aa35bc5ea7856aa20
wireless/lib80211: Convert from ahash to shash

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. 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: Johannes Berg <johannes.berg@intel.com>
net/wireless/lib80211_crypt_tkip.c