]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: drop mask=CRYPTO_ALG_ASYNC from 'shash' tfm allocations
authorEric Biggers <ebiggers@google.com>
Wed, 14 Nov 2018 20:21:11 +0000 (12:21 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Nov 2018 06:26:55 +0000 (14:26 +0800)
commit1b89c38b766150b3d8172ff573d1b2a0072a6216
tree7d7f105aaa99a8d2c21d9e1d996330dcf95c40c6
parent42d6aa1c70c09fb8c7d5a458af441cac1f2b028e
crypto: drop mask=CRYPTO_ALG_ASYNC from 'shash' tfm allocations

'shash' algorithms are always synchronous, so passing CRYPTO_ALG_ASYNC
in the mask to crypto_alloc_shash() has no effect.  Many users therefore
already don't pass it, but some still do.  This inconsistency can cause
confusion, especially since the way the 'mask' argument works is
somewhat counterintuitive.

Thus, just remove the unneeded CRYPTO_ALG_ASYNC flags.

This patch shouldn't change any actual behavior.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/block/drbd/drbd_receiver.c
drivers/md/dm-integrity.c
drivers/net/wireless/intersil/orinoco/mic.c
fs/ubifs/auth.c
net/bluetooth/smp.c
security/apparmor/crypto.c
security/integrity/evm/evm_crypto.c
security/keys/encrypted-keys/encrypted.c
security/keys/trusted.c