crypto: arm64/chacha - add XChaCha12 support
authorEric Biggers <ebiggers@google.com>
Tue, 4 Dec 2018 03:52:52 +0000 (19:52 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:37 +0000 (18:24 +0800)
commit19c11c97c39f5c6280b4d523ea170ef9a8f7ed12
tree85b240d06e5865718c89e2c654415b17869b83b4
parent95a34b779e2a45b14e73cee1e7eec11870efb2ea
crypto: arm64/chacha - add XChaCha12 support

Now that the ARM64 NEON implementation of ChaCha20 and XChaCha20 has
been refactored to support varying the number of rounds, add support for
XChaCha12.  This is identical to XChaCha20 except for the number of
rounds, which is 12 instead of 20.  This can be used by Adiantum.

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