]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: x86/aes-ni - switch to generic for fallback and key routines
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 2 Jul 2019 19:41:23 +0000 (21:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jul 2019 04:55:34 +0000 (14:55 +1000)
commit212e074bf6f12058b538126921eabf19dbd5f710
treed5b03a77e9a4357c5e17bade92579283d679fb03
parent9b40083e085041ce64b29df95578ece3765d4ad0
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>
arch/x86/crypto/aesni-intel_glue.c
arch/x86/include/asm/crypto/aes.h [deleted file]
crypto/Kconfig