linux/drivers/crypto/chelsio
Ard Biesheuvel d8c6d1886c crypto: chelsio - permit asynchronous skcipher as fallback
Even though the chelsio driver implements asynchronous versions of
cbc(aes) and xts(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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-07-16 21:49:03 +10:00
..
chtls crypto/chtls:Fix compile error when CONFIG_IPV6 is disabled 2020-06-04 16:02:29 -07:00
chcr_algo.c crypto: chelsio - permit asynchronous skcipher as fallback 2020-07-16 21:49:03 +10:00
chcr_algo.h crypto/chtls:Fix compile error when CONFIG_IPV6 is disabled 2020-06-04 16:02:29 -07:00
chcr_common.h chcr: Handle first or middle part of record 2020-03-08 21:16:23 -07:00
chcr_core.c cxgb4/chcr: Enable ktls settings at run time 2020-06-01 15:48:18 -07:00
chcr_core.h cxgb4/chcr: Enable ktls settings at run time 2020-06-01 15:48:18 -07:00
chcr_crypto.h crypto: chelsio - permit asynchronous skcipher as fallback 2020-07-16 21:49:03 +10:00
chcr_ipsec.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-06-03 16:27:18 -07:00
chcr_ktls.c crypto/chcr: IPV6 code needs to be in CONFIG_IPV6 2020-06-01 15:49:00 -07:00
chcr_ktls.h cxgb4/chcr: Enable ktls settings at run time 2020-06-01 15:48:18 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile cxgb4/chcr : Register to tls add and del callback 2020-03-08 21:16:23 -07:00