From dc4b5372e3f576a0ce412aab8feeaec9b56894b7 Mon Sep 17 00:00:00 2001 From: Till Klocke Date: Mon, 2 Aug 2021 15:19:44 +0200 Subject: [PATCH] Since noise-c might fall back to the reference aes gcm implementation if libsodium reports that aes gcm is not available at runtime, we need to include the necessary files for the reference implementation --- src/protocol/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/protocol/Makefile.am b/src/protocol/Makefile.am index 47246595..18d1971b 100644 --- a/src/protocol/Makefile.am +++ b/src/protocol/Makefile.am @@ -69,7 +69,8 @@ libnoiseprotocol_a_SOURCES += \ else !USE_OPENSSL if USE_LIBSODIUM libnoiseprotocol_a_SOURCES += \ - ../backend/sodium/cipher-aesgcm.c + ../backend/sodium/cipher-aesgcm.c \ + ../backend/ref/cipher-aesgcm.c else libnoiseprotocol_a_SOURCES += \ ../backend/ref/cipher-aesgcm.c @@ -79,6 +80,7 @@ endif if USE_LIBSODIUM libnoiseprotocol_a_SOURCES += \ rand_sodium.c \ + ../crypto/ghash/ghash.c \ ../backend/sodium/cipher-aesgcm.c \ ../backend/sodium/cipher-chachapoly.c \ ../backend/sodium/dh-curve25519.c \