2018-06-21 18:46:11 +02:00
|
|
|
|
|
|
|
noinst_LIBRARIES += src/lib/libtor-crypt-ops.a
|
|
|
|
|
|
|
|
if UNITTESTS_ENABLED
|
|
|
|
noinst_LIBRARIES += src/lib/libtor-crypt-ops-testing.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
src_lib_libtor_crypt_ops_a_SOURCES = \
|
2018-07-11 20:08:22 +02:00
|
|
|
src/lib/crypt_ops/crypto_cipher.c \
|
2018-06-21 18:46:11 +02:00
|
|
|
src/lib/crypt_ops/crypto_curve25519.c \
|
|
|
|
src/lib/crypt_ops/crypto_dh.c \
|
|
|
|
src/lib/crypt_ops/crypto_digest.c \
|
|
|
|
src/lib/crypt_ops/crypto_ed25519.c \
|
|
|
|
src/lib/crypt_ops/crypto_format.c \
|
|
|
|
src/lib/crypt_ops/crypto_hkdf.c \
|
2018-07-11 19:44:35 +02:00
|
|
|
src/lib/crypt_ops/crypto_init.c \
|
2018-07-17 22:19:32 +02:00
|
|
|
src/lib/crypt_ops/crypto_ope.c \
|
2018-06-21 18:46:11 +02:00
|
|
|
src/lib/crypt_ops/crypto_pwbox.c \
|
|
|
|
src/lib/crypt_ops/crypto_rand.c \
|
2019-02-05 18:49:04 +01:00
|
|
|
src/lib/crypt_ops/crypto_rand_fast.c \
|
2019-02-06 18:40:01 +01:00
|
|
|
src/lib/crypt_ops/crypto_rand_numeric.c \
|
2018-06-21 18:46:11 +02:00
|
|
|
src/lib/crypt_ops/crypto_rsa.c \
|
|
|
|
src/lib/crypt_ops/crypto_s2k.c \
|
2018-06-26 19:18:23 +02:00
|
|
|
src/lib/crypt_ops/crypto_util.c \
|
|
|
|
src/lib/crypt_ops/digestset.c
|
2018-06-21 18:46:11 +02:00
|
|
|
|
2018-07-11 20:46:28 +02:00
|
|
|
if USE_NSS
|
|
|
|
src_lib_libtor_crypt_ops_a_SOURCES += \
|
2018-07-16 15:49:05 +02:00
|
|
|
src/lib/crypt_ops/aes_nss.c \
|
2019-01-18 11:26:13 +01:00
|
|
|
src/lib/crypt_ops/crypto_digest_nss.c \
|
2018-07-17 17:27:08 +02:00
|
|
|
src/lib/crypt_ops/crypto_dh_nss.c \
|
2018-07-19 18:03:01 +02:00
|
|
|
src/lib/crypt_ops/crypto_nss_mgt.c \
|
|
|
|
src/lib/crypt_ops/crypto_rsa_nss.c
|
2018-07-16 15:49:05 +02:00
|
|
|
else
|
|
|
|
src_lib_libtor_crypt_ops_a_SOURCES += \
|
2018-07-19 18:03:01 +02:00
|
|
|
src/lib/crypt_ops/aes_openssl.c \
|
2019-01-18 11:26:13 +01:00
|
|
|
src/lib/crypt_ops/crypto_digest_openssl.c \
|
2018-07-19 18:03:01 +02:00
|
|
|
src/lib/crypt_ops/crypto_rsa_openssl.c
|
2018-07-11 20:46:28 +02:00
|
|
|
endif
|
2018-07-16 15:49:05 +02:00
|
|
|
|
2018-07-11 20:46:28 +02:00
|
|
|
if USE_OPENSSL
|
|
|
|
src_lib_libtor_crypt_ops_a_SOURCES += \
|
2018-08-12 23:18:41 +02:00
|
|
|
src/lib/crypt_ops/crypto_dh_openssl.c \
|
2018-07-11 20:46:28 +02:00
|
|
|
src/lib/crypt_ops/crypto_openssl_mgt.c
|
|
|
|
endif
|
|
|
|
|
2018-07-11 18:57:30 +02:00
|
|
|
src_lib_libtor_crypt_ops_a_CFLAGS = $(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB)
|
|
|
|
|
2018-06-21 18:46:11 +02:00
|
|
|
src_lib_libtor_crypt_ops_testing_a_SOURCES = \
|
|
|
|
$(src_lib_libtor_crypt_ops_a_SOURCES)
|
|
|
|
src_lib_libtor_crypt_ops_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
2018-07-11 18:57:30 +02:00
|
|
|
src_lib_libtor_crypt_ops_testing_a_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB) $(TEST_CFLAGS)
|
2018-06-21 18:46:11 +02:00
|
|
|
|
|
|
|
noinst_HEADERS += \
|
|
|
|
src/lib/crypt_ops/aes.h \
|
|
|
|
src/lib/crypt_ops/compat_openssl.h \
|
|
|
|
src/lib/crypt_ops/crypto_curve25519.h \
|
|
|
|
src/lib/crypt_ops/crypto_dh.h \
|
|
|
|
src/lib/crypt_ops/crypto_digest.h \
|
|
|
|
src/lib/crypt_ops/crypto_ed25519.h \
|
|
|
|
src/lib/crypt_ops/crypto_format.h \
|
2018-07-11 20:08:22 +02:00
|
|
|
src/lib/crypt_ops/crypto_cipher.h \
|
2018-06-21 18:46:11 +02:00
|
|
|
src/lib/crypt_ops/crypto_hkdf.h \
|
2018-07-11 19:44:35 +02:00
|
|
|
src/lib/crypt_ops/crypto_init.h \
|
2018-07-18 15:52:47 +02:00
|
|
|
src/lib/crypt_ops/crypto_nss_mgt.h \
|
2018-06-21 18:46:11 +02:00
|
|
|
src/lib/crypt_ops/crypto_openssl_mgt.h \
|
2018-07-17 22:19:32 +02:00
|
|
|
src/lib/crypt_ops/crypto_ope.h \
|
2018-06-21 18:46:11 +02:00
|
|
|
src/lib/crypt_ops/crypto_pwbox.h \
|
|
|
|
src/lib/crypt_ops/crypto_rand.h \
|
|
|
|
src/lib/crypt_ops/crypto_rsa.h \
|
|
|
|
src/lib/crypt_ops/crypto_s2k.h \
|
2018-11-02 16:21:06 +01:00
|
|
|
src/lib/crypt_ops/crypto_sys.h \
|
2018-06-26 19:18:23 +02:00
|
|
|
src/lib/crypt_ops/crypto_util.h \
|
|
|
|
src/lib/crypt_ops/digestset.h
|