]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit887c6f36b52ca81cb5222a7f2dfef1556ff3fefc
tree95fb37d94452243c2674395b56f0110bf44ed394
parentb5bf1a9a05dbbb9daca702fa676b4a0bdf8023f6
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