]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: x86/chacha20 - add XChaCha20 support
authorEric Biggers <ebiggers@google.com>
Wed, 5 Dec 2018 06:20:02 +0000 (22:20 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:57 +0000 (18:24 +0800)
commitf562887c70284f810ec80b314ee47330deaba08d
tree6013fcbd4c774b15033d09b67dfa7320ec22bc3a
parenta6ec63aa1fbce06dbccf1f8310bda4937d862903
crypto: x86/chacha20 - add XChaCha20 support

Add an XChaCha20 implementation that is hooked up to the x86_64 SIMD
implementations of ChaCha20.  This can be used by Adiantum.

An SSSE3 implementation of single-block HChaCha20 is also added so that
XChaCha20 can use it rather than the generic implementation.  This
required refactoring the ChaCha permutation into its own function.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/chacha20-ssse3-x86_64.S
arch/x86/crypto/chacha20_glue.c
crypto/Kconfig