]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - crypto/Kconfig
crypto: x86/chacha - add XChaCha12 support
authorEric Biggers <ebiggers@google.com>
Wed, 5 Dec 2018 06:20:04 +0000 (22:20 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:58 +0000 (18:24 +0800)
commit7a507d62258afd514583fadf1482451079fa0e4d
treebff7778a6fcb50dc9f8030fe7710f011ce857ff2
parent8b65f34c5821e7361488dc668d21195ea4c9f14d
crypto: x86/chacha - add XChaCha12 support

Now that the x86_64 SIMD implementations of ChaCha20 and XChaCha20 have
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: 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/chacha_glue.c
crypto/Kconfig