OSDN Git Service

crypto: arm/chacha20 - refactor to allow varying number of rounds
authorEric Biggers <ebiggers@google.com>
Sat, 17 Nov 2018 01:26:25 +0000 (17:26 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Nov 2018 06:26:56 +0000 (14:26 +0800)
commit3cc215198eac75cc4130729ddd94a5cdbdb4d300
tree1c1f1c2e8e355f421154ca364853665891fa89a8
parentd97a94309d764ed907d4281da6246f5d935166f8
crypto: arm/chacha20 - refactor to allow varying number of rounds

In preparation for adding XChaCha12 support, rename/refactor the NEON
implementation of ChaCha20 to support different numbers of rounds.

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/Makefile
arch/arm/crypto/chacha-neon-core.S [moved from arch/arm/crypto/chacha20-neon-core.S with 94% similarity]
arch/arm/crypto/chacha-neon-glue.c [moved from arch/arm/crypto/chacha20-neon-glue.c with 72% similarity]