linux/drivers/crypto
Ard Biesheuvel 89fb00f245 crypto: sun4i - permit asynchronous skcipher as fallback
Even though the sun4i driver implements asynchronous versions of ecb(aes)
and cbc(aes), the fallbacks it allocates are required to be synchronous.
Given that SIMD based software implementations are usually asynchronous
as well, even though they rarely complete asynchronously (this typically
only happens in cases where the request was made from softirq context,
while SIMD was already in use in the task context that it interrupted),
these implementations are disregarded, and either the generic C version
or another table based version implemented in assembler is selected
instead.

Since falling back to synchronous AES is not only a performance issue, but
potentially a security issue as well (due to the fact that table based AES
is not time invariant), let's fix this, by allocating an ordinary skcipher
as the fallback, and invoke it with the completion routine that was given
to the outer request.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-07-16 21:49:02 +10:00
..
allwinner crypto: sun4i - permit asynchronous skcipher as fallback 2020-07-16 21:49:02 +10:00
amcc
amlogic crypto: amlogic-gxl - permit async skcipher as fallback 2020-07-16 21:49:02 +10:00
axis crypto: artpec6 - use crypto_shash_tfm_digest() 2020-05-08 15:32:13 +10:00
bcm crypto: bcm - Use the defined variable to clean code 2020-05-08 15:30:40 +10:00
caam crypto: caam - Remove broken arc4 support 2020-07-16 21:49:00 +10:00
cavium crypto: cpt - Fix sparse warnings 2020-07-03 14:18:35 +10:00
ccp crypto: ccp - Fix sparse warnings 2020-07-09 18:25:22 +10:00
ccree crypto: ccree - remove unused field 2020-06-26 14:49:53 +10:00
chelsio Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-06-13 16:27:13 -07:00
hisilicon crypto: hisilicon/sec2 - fix some coding styles 2020-07-16 21:49:01 +10:00
inside-secure
marvell crypto: octeontx - Fix sparse warnings 2020-06-18 17:47:16 +10:00
mediatek crypto: mediatek - use crypto_shash_tfm_digest() 2020-05-08 15:32:13 +10:00
nx crypto/nx: Remove 'pid' in vas_tx_win_attr struct 2020-04-20 16:53:14 +10:00
qat crypto: qat - fallback for xts with 192 bit keys 2020-07-09 18:25:16 +10:00
qce crypto: qce/sha - Do not modify scatterlist passed along with request 2020-07-03 14:18:34 +10:00
rockchip
stm32 crypto: stm32/crc32 - protect from concurrent accesses 2020-05-23 00:08:21 +10:00
ux500 crypto: ux500/hash - Add namespacing to hash_init() 2020-07-09 15:49:28 +10:00
virtio crypto: virtio - constify features[] and id_table[] 2020-07-09 18:25:22 +10:00
vmx .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
xilinx crypto: xilinx - Remove set but not used variable 'drv_ctx' 2020-05-05 12:35:07 +02:00
atmel-aes-regs.h
atmel-aes.c crypto: atmel-{aes,sha,tdes} - Retire crypto_platform_data 2020-01-22 16:21:09 +08:00
atmel-authenc.h
atmel-ecc.c
atmel-i2c.c crypto: atmel-i2c - Fix wakeup fail 2020-03-20 14:36:51 +11:00
atmel-i2c.h
atmel-sha204a.c
atmel-sha-regs.h
atmel-sha.c crypto: lib/sha1 - remove unnecessary includes of linux/cryptohash.h 2020-05-08 15:32:17 +10:00
atmel-tdes-regs.h
atmel-tdes.c crypto: atmel-{aes,sha,tdes} - Retire crypto_platform_data 2020-01-22 16:21:09 +08:00
exynos-rng.c
geode-aes.c
geode-aes.h
hifn_795x.c
img-hash.c crypto: img-hash - remove redundant initialization of variable err 2020-06-26 14:46:43 +10:00
ixp4xx_crypto.c
Kconfig crypto: qce - support zero length test vectors 2020-07-03 14:18:34 +10:00
Makefile crypto: marvell - create common Kconfig and Makefile for Marvell 2020-03-20 14:36:51 +11:00
mxs-dcp.c crypto: mxs-dcp - fix scatterlist linearization for hash 2020-03-06 12:28:21 +11:00
n2_asm.S
n2_core.c crypto: n2 - use crypto_shash_tfm_digest() 2020-05-08 15:32:14 +10:00
n2_core.h
omap-aes-gcm.c crypto: omap-aes - avoid spamming console with self tests 2020-06-04 22:03:39 +10:00
omap-aes.c crypto: omap-aes - permit asynchronous skcipher as fallback 2020-07-16 21:49:02 +10:00
omap-aes.h crypto: omap-aes - permit asynchronous skcipher as fallback 2020-07-16 21:49:02 +10:00
omap-crypto.c crypto: omap-crypto - fix userspace copied buffer access 2020-06-04 22:03:40 +10:00
omap-crypto.h
omap-des.c crypto: omap-des - Fix sparse/compiler warnings 2020-06-26 14:46:42 +10:00
omap-sham.c crypto: omap-sham - Fix sparse/compiler warnings 2020-06-26 14:46:42 +10:00
padlock-aes.c crypto: Convert to new CPU match macros 2020-03-24 21:36:06 +01:00
padlock-sha.c crypto: Convert to new CPU match macros 2020-03-24 21:36:06 +01:00
picoxcell_crypto_regs.h
picoxcell_crypto.c
qcom-rng.c
s5p-sss.c crypto: s5p-sss - use crypto_shash_tfm_digest() 2020-05-08 15:32:14 +10:00
sahara.c
talitos.c
talitos.h