include.am 2.09 KB
Newer Older
1
2
3
4
5
6
7
8

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 =			\
9
	src/lib/crypt_ops/crypto_cipher.c		\
10
11
	src/lib/crypt_ops/crypto_curve25519.c		\
	src/lib/crypt_ops/crypto_dh.c			\
12
	src/lib/crypt_ops/crypto_dh_openssl.c		\
13
14
15
16
	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			\
17
	src/lib/crypt_ops/crypto_init.c			\
18
19
20
21
	src/lib/crypt_ops/crypto_pwbox.c		\
	src/lib/crypt_ops/crypto_rand.c			\
	src/lib/crypt_ops/crypto_rsa.c			\
	src/lib/crypt_ops/crypto_s2k.c			\
22
23
	src/lib/crypt_ops/crypto_util.c                 \
	src/lib/crypt_ops/digestset.c
24

Nick Mathewson's avatar
Nick Mathewson committed
25
26
if USE_NSS
src_lib_libtor_crypt_ops_a_SOURCES +=			\
Nick Mathewson's avatar
Nick Mathewson committed
27
	src/lib/crypt_ops/aes_nss.c			\
Nick Mathewson's avatar
Nick Mathewson committed
28
	src/lib/crypt_ops/crypto_dh_nss.c		\
Nick Mathewson's avatar
Nick Mathewson committed
29
	src/lib/crypt_ops/crypto_nss_mgt.c
Nick Mathewson's avatar
Nick Mathewson committed
30
31
else
src_lib_libtor_crypt_ops_a_SOURCES +=			\
32
	src/lib/crypt_ops/aes_openssl.c
Nick Mathewson's avatar
Nick Mathewson committed
33
endif
Nick Mathewson's avatar
Nick Mathewson committed
34

Nick Mathewson's avatar
Nick Mathewson committed
35
36
37
38
39
if USE_OPENSSL
src_lib_libtor_crypt_ops_a_SOURCES +=			\
	src/lib/crypt_ops/crypto_openssl_mgt.c
endif

40
41
src_lib_libtor_crypt_ops_a_CFLAGS = $(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB)

42
43
44
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)
45
46
src_lib_libtor_crypt_ops_testing_a_CFLAGS = \
	$(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB) $(TEST_CFLAGS)
47
48
49
50
51
52
53
54
55

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		\
56
	src/lib/crypt_ops/crypto_cipher.h		\
57
	src/lib/crypt_ops/crypto_hkdf.h			\
58
	src/lib/crypt_ops/crypto_init.h			\
Nick Mathewson's avatar
Nick Mathewson committed
59
	src/lib/crypt_ops/crypto_nss_mgt.h		\
60
61
62
63
64
	src/lib/crypt_ops/crypto_openssl_mgt.h		\
	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			\
65
66
	src/lib/crypt_ops/crypto_util.h                 \
	src/lib/crypt_ops/digestset.h