summaryrefslogtreecommitdiff
path: root/lib/nettle
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2020-03-13 17:24:26 +0100
committerDaiki Ueno <dueno@redhat.com>2020-03-19 09:28:30 +0100
commit252a4dd5090083ede6d8fdecbd2241b2b8a001b5 (patch)
treecf54b8b043fcaf80ca3c1dc325a802e17979a798 /lib/nettle
parent3462a7fc813da9576f8dda41a81b86ca03b99344 (diff)
downloadgnutls-252a4dd5090083ede6d8fdecbd2241b2b8a001b5.tar.gz
nettle: vendor in ChaCha20 implementation from nettle
This enables to use bundled ChaCha20 implementation if the system nettle doesn't have nettle_chacha_set_counter. Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'lib/nettle')
-rw-r--r--lib/nettle/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/nettle/Makefile.am b/lib/nettle/Makefile.am
index ab49f7baed..84bb90a247 100644
--- a/lib/nettle/Makefile.am
+++ b/lib/nettle/Makefile.am
@@ -148,3 +148,11 @@ libcrypto_la_SOURCES += \
curve448/ed448-shake256.c curve448/ed448-shake256-pubkey.c \
curve448/ed448-shake256-sign.c curve448/ed448-shake256-verify.c
endif
+
+if NEED_CHACHA
+libcrypto_la_SOURCES += \
+ chacha/chacha-core-internal.c chacha/chacha-crypt.c \
+ chacha/chacha-internal.h chacha/chacha-poly1305.c \
+ chacha/chacha-poly1305.h chacha/chacha-set-key.c \
+ chacha/chacha-set-nonce.c chacha/chacha.h
+endif