summaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/src/lib/crypto/Makefile.am
blob: f65e0a4a24f816eeaaa4c1a1f6a5490a48f146f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
MAINTAINERCLEANFILES = 		$(srcdir)/Makefile.in

AM_CPPFLAGS =			-I$(srcdir)/.. \
				-I$(srcdir)/../common \
				-I$(srcdir)/../data_mgr \
				-I$(srcdir)/../pkcs11 \
				@CRYPTO_INCLUDES@

noinst_LTLIBRARIES =		libsofthsm_crypto.la
libsofthsm_crypto_la_SOURCES =	AESKey.cpp \
				AsymmetricAlgorithm.cpp \
				AsymmetricKeyPair.cpp \
				CryptoFactory.cpp \
				DESKey.cpp \
				DHParameters.cpp \
				DHPublicKey.cpp \
				DHPrivateKey.cpp \
				DSAParameters.cpp \
				DSAPublicKey.cpp \
				DSAPrivateKey.cpp \
				ECParameters.cpp \
				ECPublicKey.cpp \
				ECPrivateKey.cpp \
				GOSTPublicKey.cpp \
				GOSTPrivateKey.cpp \
				HashAlgorithm.cpp \
				MacAlgorithm.cpp \
				RSAParameters.cpp \
				RSAPrivateKey.cpp \
				RSAPublicKey.cpp \
				SymmetricAlgorithm.cpp \
				SymmetricKey.cpp
libsofthsm_crypto_la_LIBADD =	@CRYPTO_LIBS@

SUBDIRS =			test

EXTRA_DIST =			$(srcdir)/*.h $(srcdir)/*.cpp

# Compile with support of OpenSSL
if WITH_OPENSSL
libsofthsm_crypto_la_SOURCES +=	OSSLAES.cpp \
				OSSLComp.cpp \
				OSSLCryptoFactory.cpp \
				OSSLDES.cpp \
				OSSLDH.cpp \
				OSSLDHKeyPair.cpp \
				OSSLDHPrivateKey.cpp \
				OSSLDHPublicKey.cpp \
				OSSLDSA.cpp \
				OSSLDSAKeyPair.cpp \
				OSSLDSAPrivateKey.cpp \
				OSSLDSAPublicKey.cpp \
				OSSLECDH.cpp \
				OSSLECDSA.cpp \
				OSSLECKeyPair.cpp \
				OSSLECPrivateKey.cpp \
				OSSLECPublicKey.cpp \
				OSSLEVPHashAlgorithm.cpp \
				OSSLEVPMacAlgorithm.cpp \
				OSSLEVPCMacAlgorithm.cpp \
				OSSLEVPSymmetricAlgorithm.cpp \
				OSSLGOST.cpp \
				OSSLGOSTKeyPair.cpp \
				OSSLGOSTPrivateKey.cpp \
				OSSLGOSTPublicKey.cpp \
				OSSLGOSTR3411.cpp \
				OSSLCMAC.cpp \
				OSSLHMAC.cpp \
				OSSLMD5.cpp \
				OSSLRNG.cpp \
				OSSLRSA.cpp \
				OSSLRSAKeyPair.cpp \
				OSSLRSAPrivateKey.cpp \
				OSSLRSAPublicKey.cpp \
				OSSLSHA1.cpp \
				OSSLSHA224.cpp \
				OSSLSHA256.cpp \
				OSSLSHA384.cpp \
				OSSLSHA512.cpp \
				OSSLUtil.cpp
endif

# Compile with support of Botan
if WITH_BOTAN
libsofthsm_crypto_la_SOURCES +=	BotanAES.cpp \
				BotanCryptoFactory.cpp \
				BotanDES.cpp \
				BotanDH.cpp \
				BotanDHKeyPair.cpp \
				BotanDHPrivateKey.cpp \
				BotanDHPublicKey.cpp \
				BotanDSA.cpp \
				BotanDSAKeyPair.cpp \
				BotanDSAPrivateKey.cpp \
				BotanDSAPublicKey.cpp \
				BotanECDH.cpp \
				BotanECDHKeyPair.cpp \
				BotanECDHPrivateKey.cpp \
				BotanECDHPublicKey.cpp \
				BotanECDSA.cpp \
				BotanECDSAKeyPair.cpp \
				BotanECDSAPrivateKey.cpp \
				BotanECDSAPublicKey.cpp \
				BotanGOST.cpp \
				BotanGOSTKeyPair.cpp \
				BotanGOSTPrivateKey.cpp \
				BotanGOSTPublicKey.cpp \
				BotanGOSTR3411.cpp \
				BotanHashAlgorithm.cpp \
				BotanMAC.cpp \
				BotanMacAlgorithm.cpp \
				BotanMD5.cpp \
				BotanRNG.cpp \
				BotanRSA.cpp \
				BotanRSAKeyPair.cpp \
				BotanRSAPrivateKey.cpp \
				BotanRSAPublicKey.cpp \
				BotanSHA1.cpp \
				BotanSHA224.cpp \
				BotanSHA256.cpp \
				BotanSHA384.cpp \
				BotanSHA512.cpp \
				BotanSymmetricAlgorithm.cpp \
				BotanUtil.cpp \
				Botan_ecb.cpp
endif