OSDN Git Service

crypto: arm/chacha - expose ARM ChaCha routine as library function
authorArd Biesheuvel <ardb@kernel.org>
Fri, 8 Nov 2019 12:22:15 +0000 (13:22 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:40 +0000 (09:02 +0800)
commita44a3430d71bad4ee56788a59fff099b291ea54c
tree69cc6f5228aeafb69563de6284b97ed60772482f
parentb36d8c09e710c71f6a9690b6586fea2d1c9e1e27
crypto: arm/chacha - expose ARM 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/arm/crypto/Kconfig
arch/arm/crypto/chacha-glue.c