]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: x86/chacha - expose SIMD ChaCha routine as library function
authorArd Biesheuvel <ardb@kernel.org>
Fri, 8 Nov 2019 12:22:10 +0000 (13:22 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:39 +0000 (09:02 +0800)
commit5169243d9fc444f2ad89a4d541eca944130c69d1
treea778b9890a4fbcf41e2228105f11b3a174eda239
parent91d6eafc88b128125450943f25a0a10ef4b66301
crypto: x86/chacha - expose SIMD ChaCha routine as library function

Wire the existing x86 SIMD ChaCha code into the new ChaCha library
interface, so that users of the library interface will get the
accelerated version when available.

Given that calls into the library API will always go through the
routines in this module if it is enabled, switch to static keys
to select the optimal implementation available (which may be none
at all, in which case we defer to the generic implementation for
all invocations).

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/chacha_glue.c
crypto/Kconfig
include/crypto/chacha.h