aboutsummaryrefslogtreecommitdiffstats
path: root/lib/zinc/Kconfig
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-08-07 10:04:03 -0700
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-22 00:50:53 -0600
commitf0ada6112fe4e62bf0f818d292d0592922a9ced4 (patch)
tree136295f8b45fcdf719a08a518abbe1dffae30d70 /lib/zinc/Kconfig
parentzinc: introduce minimal cryptography library (diff)
downloadlinux-dev-f0ada6112fe4e62bf0f818d292d0592922a9ced4.tar.xz
linux-dev-f0ada6112fe4e62bf0f818d292d0592922a9ced4.zip
zinc: ChaCha20 generic C implementation and selftest
This implements the ChaCha20 permutation as a single C statement, by way of the comma operator, which the compiler is able to simplify terrifically. Information: https://cr.yp.to/chacha.html Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Cc: Samuel Neves <sneves@dei.uc.pt> Cc: Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Greg KH <gregkh@linuxfoundation.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: kernel-hardening@lists.openwall.com Cc: linux-crypto@vger.kernel.org
Diffstat (limited to 'lib/zinc/Kconfig')
-rw-r--r--lib/zinc/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zinc/Kconfig b/lib/zinc/Kconfig
index c53ca494d964..cdc8a28e9d99 100644
--- a/lib/zinc/Kconfig
+++ b/lib/zinc/Kconfig
@@ -1,3 +1,7 @@
+config ZINC_CHACHA20
+ tristate
+ select CRYPTO_ALGAPI
+
config ZINC_SELFTEST
bool "Zinc cryptography library self-tests"
default y