]> 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)
commit281c7a2341978ef7d20d72d1aa882bb846ac83ab
treea778b9890a4fbcf41e2228105f11b3a174eda239
parentf01cb7a03ae17a0dc158178cd88ed11cc5b7737a
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