android_kernel_xiaomi_sm8350/crypto
Herbert Xu 64baf3cfea [CRYPTO]: Added CRYPTO_TFM_REQ_MAY_SLEEP flag
The crypto layer currently uses in_atomic() to determine whether it is
allowed to sleep.  This is incorrect since spin locks don't always cause
in_atomic() to return true.

Instead of that, this patch returns to an earlier idea of a per-tfm flag
which determines whether sleeping is allowed.  Unlike the earlier version,
the default is to not allow sleeping.  This ensures that no existing code
can break.

As usual, this flag may either be set through crypto_alloc_tfm(), or
just before a specific crypto operation.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-09-01 17:43:05 -07:00
..
aes.c [PATCH] clean up inline static vs static inline 2005-07-27 16:26:20 -07:00
anubis.c
api.c [CRYPTO]: Added CRYPTO_TFM_REQ_MAY_SLEEP flag 2005-09-01 17:43:05 -07:00
arc4.c
blowfish.c
cast5.c
cast6.c
cipher.c [CRYPTO]: Added CRYPTO_TFM_REQ_MAY_SLEEP flag 2005-09-01 17:43:05 -07:00
compress.c
crc32c.c
crypto_null.c
deflate.c
des.c
digest.c
hmac.c
internal.h [CRYPTO]: Added CRYPTO_TFM_REQ_MAY_SLEEP flag 2005-09-01 17:43:05 -07:00
Kconfig [CRYPTO]: Fix XTEA implementation 2005-09-01 17:42:46 -07:00
khazad.c
Makefile
md4.c
md5.c
michael_mic.c
proc.c
scatterwalk.c
scatterwalk.h
serpent.c
sha1.c
sha256.c
sha512.c
tcrypt.c [CRYPTO]: Fix XTEA implementation 2005-09-01 17:42:46 -07:00
tcrypt.h [CRYPTO]: Fix XTEA implementation 2005-09-01 17:42:46 -07:00
tea.c [CRYPTO]: Fix XTEA implementation 2005-09-01 17:42:46 -07:00
tgr192.c
twofish.c
wp512.c