linux-brain/drivers/staging/rtl8192e
Eric Biggers 877b5691f2 crypto: shash - remove shash_desc::flags
The flags field in 'struct shash_desc' never actually does anything.
The only ostensibly supported flag is CRYPTO_TFM_REQ_MAY_SLEEP.
However, no shash algorithm ever sleeps, making this flag a no-op.

With this being the case, inevitably some users who can't sleep wrongly
pass MAY_SLEEP.  These would all need to be fixed if any shash algorithm
actually started sleeping.  For example, the shash_ahash_*() functions,
which wrap a shash algorithm with the ahash API, pass through MAY_SLEEP
from the ahash API to the shash API.  However, the shash functions are
called under kmap_atomic(), so actually they're assumed to never sleep.

Even if it turns out that some users do need preemption points while
hashing large buffers, we could easily provide a helper function
crypto_shash_update_large() which divides the data into smaller chunks
and calls crypto_shash_update() and cond_resched() for each chunk.  It's
not necessary to have a flag in 'struct shash_desc', nor is it necessary
to make individual shash algorithms aware of this at all.

Therefore, remove shash_desc::flags, and document that the
crypto_shash_*() functions can be called from any context.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-04-25 15:38:12 +08:00
..
rtl8192e staging: rtl8192e: Remove set but not used variables 'broad_addr, stype' 2019-02-19 11:14:14 +01:00
dot11d.c staging: rtl8192e: rename parameters of function dot11d_update_country - style 2019-02-11 10:02:47 +01:00
dot11d.h Staging: rtl8192e: Replace license text with SPDX identifier 2019-02-21 10:58:11 +01:00
Kconfig
license
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rtl819x_BA.h Staging: rtl8192e - fixed style of block comments 2017-03-23 14:28:47 +01:00
rtl819x_BAProc.c staging: rtl8192e: fix various indentation issues 2019-01-15 16:08:36 +01:00
rtl819x_HT.h Staging: rtl8192e - fixed style of block comments 2017-03-23 14:28:47 +01:00
rtl819x_HTProc.c staging: rtl8192e: HTSetConnectBwMode message replace with debug. 2017-05-15 13:29:01 +02:00
rtl819x_Qos.h Staging: rtl8192e - fixed style of block comments 2017-03-23 14:28:47 +01:00
rtl819x_TS.h Staging: rtl8192e - fixed style of block comments 2017-03-23 14:28:47 +01:00
rtl819x_TSProc.c staging: rtl8192e: Convert timers to use timer_setup() 2017-10-18 15:44:39 +02:00
rtllib_crypt_ccmp.c Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
rtllib_crypt_tkip.c crypto: shash - remove shash_desc::flags 2019-04-25 15:38:12 +08:00
rtllib_crypt_wep.c lib80211: Remove VLA usage of skcipher 2018-09-28 12:46:07 +08:00
rtllib_debug.h Staging: rtl8192e - fixed style of block comments 2017-03-23 14:28:47 +01:00
rtllib_module.c Staging: rtl8192e - fixed style of block comments 2017-03-23 14:28:47 +01:00
rtllib_rx.c staging: rtl8192e: rename function Dot11d_UpdateCountryIe to dot11d_update_country - style 2019-02-11 10:02:47 +01:00
rtllib_softmac_wx.c
rtllib_softmac.c staging: rtl8192e: rename function DOT11D_ScanComplete to dot11d_scan_complete - style 2019-02-11 10:02:47 +01:00
rtllib_tx.c staging: rtl8192e: rtllib_tx: fix spelling issue. 2018-05-25 18:44:14 +02:00
rtllib_wx.c staging: rtl8192e: Fix space and suspect issue 2019-02-28 19:14:53 +01:00
rtllib.h staging: rtl8192e: rename members of struct rtllib_device - style 2019-02-07 13:36:02 +01:00
TODO