summaryrefslogtreecommitdiff
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-07-02 21:41:23 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-07-26 14:55:34 +1000
commit01490fc88e550935c57c668ee686dc02aca6d7d7 (patch)
treef6bb9d3be6aa0f511d462d62fb14fd5cdd29a3f1 /crypto/Kconfig
parent247c33988ca367d0bdb1ed515b729156bff95b50 (diff)
downloadlinux-crypto-01490fc88e550935c57c668ee686dc02aca6d7d7.tar.gz
linux-crypto-01490fc88e550935c57c668ee686dc02aca6d7d7.zip
crypto: x86/aes-ni - switch to generic for fallback and key routines
The AES-NI code contains fallbacks for invocations that occur from a context where the SIMD unit is unavailable, which really only occurs when running in softirq context that was entered from a hard IRQ that was taken while running kernel code that was already using the FPU. That means performance is not really a consideration, and we can just use the new library code for this use case, which has a smaller footprint and is believed to be time invariant. This will allow us to drop the non-SIMD asm routines in a subsequent patch. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r--crypto/Kconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 091ebbbc..20af5806 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -1156,8 +1156,7 @@ config CRYPTO_AES_NI_INTEL
tristate "AES cipher algorithms (AES-NI)"
depends on X86
select CRYPTO_AEAD
- select CRYPTO_AES_X86_64 if 64BIT
- select CRYPTO_AES_586 if !64BIT
+ select CRYPTO_LIB_AES
select CRYPTO_ALGAPI
select CRYPTO_BLKCIPHER
select CRYPTO_GLUE_HELPER_X86 if 64BIT