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

Expose the accelerated NEON ChaCha routine directly as a symbol
export so that users of the ChaCha library API can use it directly.

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/arm64/crypto/Kconfig
arch/arm64/crypto/chacha-neon-glue.c