crypto: x86/chacha20 - refactor to allow varying number of rounds
authorEric Biggers <ebiggers@google.com>
Wed, 5 Dec 2018 06:20:03 +0000 (22:20 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:58 +0000 (18:24 +0800)
commit8b65f34c5821e7361488dc668d21195ea4c9f14d
treed823dbf197f5d2a4d4d9e895954d880926b97c5f
parent4af78261870a7d36dd222af8dad9688b705e365e
crypto: x86/chacha20 - refactor to allow varying number of rounds

In preparation for adding XChaCha12 support, rename/refactor the x86_64
SIMD implementations of ChaCha20 to support different numbers of rounds.

Reviewed-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/Makefile
arch/x86/crypto/chacha-avx2-x86_64.S [new file with mode: 0644]
arch/x86/crypto/chacha-avx512vl-x86_64.S [new file with mode: 0644]
arch/x86/crypto/chacha-ssse3-x86_64.S [new file with mode: 0644]
arch/x86/crypto/chacha20-avx2-x86_64.S [deleted file]
arch/x86/crypto/chacha20-avx512vl-x86_64.S [deleted file]
arch/x86/crypto/chacha20-ssse3-x86_64.S [deleted file]
arch/x86/crypto/chacha20_glue.c [deleted file]
arch/x86/crypto/chacha_glue.c [new file with mode: 0644]