blob: f65e0a4a24f816eeaaa4c1a1f6a5490a48f146f3 [file] [log] [blame]
NingSun0c89b3c2018-02-08 08:34:03 -08001MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
2
3AM_CPPFLAGS = -I$(srcdir)/.. \
4 -I$(srcdir)/../common \
5 -I$(srcdir)/../data_mgr \
6 -I$(srcdir)/../pkcs11 \
7 @CRYPTO_INCLUDES@
8
9noinst_LTLIBRARIES = libsofthsm_crypto.la
10libsofthsm_crypto_la_SOURCES = AESKey.cpp \
11 AsymmetricAlgorithm.cpp \
12 AsymmetricKeyPair.cpp \
13 CryptoFactory.cpp \
14 DESKey.cpp \
15 DHParameters.cpp \
16 DHPublicKey.cpp \
17 DHPrivateKey.cpp \
18 DSAParameters.cpp \
19 DSAPublicKey.cpp \
20 DSAPrivateKey.cpp \
21 ECParameters.cpp \
22 ECPublicKey.cpp \
23 ECPrivateKey.cpp \
24 GOSTPublicKey.cpp \
25 GOSTPrivateKey.cpp \
26 HashAlgorithm.cpp \
27 MacAlgorithm.cpp \
28 RSAParameters.cpp \
29 RSAPrivateKey.cpp \
30 RSAPublicKey.cpp \
31 SymmetricAlgorithm.cpp \
32 SymmetricKey.cpp
33libsofthsm_crypto_la_LIBADD = @CRYPTO_LIBS@
34
35SUBDIRS = test
36
37EXTRA_DIST = $(srcdir)/*.h $(srcdir)/*.cpp
38
39# Compile with support of OpenSSL
40if WITH_OPENSSL
41libsofthsm_crypto_la_SOURCES += OSSLAES.cpp \
42 OSSLComp.cpp \
43 OSSLCryptoFactory.cpp \
44 OSSLDES.cpp \
45 OSSLDH.cpp \
46 OSSLDHKeyPair.cpp \
47 OSSLDHPrivateKey.cpp \
48 OSSLDHPublicKey.cpp \
49 OSSLDSA.cpp \
50 OSSLDSAKeyPair.cpp \
51 OSSLDSAPrivateKey.cpp \
52 OSSLDSAPublicKey.cpp \
53 OSSLECDH.cpp \
54 OSSLECDSA.cpp \
55 OSSLECKeyPair.cpp \
56 OSSLECPrivateKey.cpp \
57 OSSLECPublicKey.cpp \
58 OSSLEVPHashAlgorithm.cpp \
59 OSSLEVPMacAlgorithm.cpp \
60 OSSLEVPCMacAlgorithm.cpp \
61 OSSLEVPSymmetricAlgorithm.cpp \
62 OSSLGOST.cpp \
63 OSSLGOSTKeyPair.cpp \
64 OSSLGOSTPrivateKey.cpp \
65 OSSLGOSTPublicKey.cpp \
66 OSSLGOSTR3411.cpp \
67 OSSLCMAC.cpp \
68 OSSLHMAC.cpp \
69 OSSLMD5.cpp \
70 OSSLRNG.cpp \
71 OSSLRSA.cpp \
72 OSSLRSAKeyPair.cpp \
73 OSSLRSAPrivateKey.cpp \
74 OSSLRSAPublicKey.cpp \
75 OSSLSHA1.cpp \
76 OSSLSHA224.cpp \
77 OSSLSHA256.cpp \
78 OSSLSHA384.cpp \
79 OSSLSHA512.cpp \
80 OSSLUtil.cpp
81endif
82
83# Compile with support of Botan
84if WITH_BOTAN
85libsofthsm_crypto_la_SOURCES += BotanAES.cpp \
86 BotanCryptoFactory.cpp \
87 BotanDES.cpp \
88 BotanDH.cpp \
89 BotanDHKeyPair.cpp \
90 BotanDHPrivateKey.cpp \
91 BotanDHPublicKey.cpp \
92 BotanDSA.cpp \
93 BotanDSAKeyPair.cpp \
94 BotanDSAPrivateKey.cpp \
95 BotanDSAPublicKey.cpp \
96 BotanECDH.cpp \
97 BotanECDHKeyPair.cpp \
98 BotanECDHPrivateKey.cpp \
99 BotanECDHPublicKey.cpp \
100 BotanECDSA.cpp \
101 BotanECDSAKeyPair.cpp \
102 BotanECDSAPrivateKey.cpp \
103 BotanECDSAPublicKey.cpp \
104 BotanGOST.cpp \
105 BotanGOSTKeyPair.cpp \
106 BotanGOSTPrivateKey.cpp \
107 BotanGOSTPublicKey.cpp \
108 BotanGOSTR3411.cpp \
109 BotanHashAlgorithm.cpp \
110 BotanMAC.cpp \
111 BotanMacAlgorithm.cpp \
112 BotanMD5.cpp \
113 BotanRNG.cpp \
114 BotanRSA.cpp \
115 BotanRSAKeyPair.cpp \
116 BotanRSAPrivateKey.cpp \
117 BotanRSAPublicKey.cpp \
118 BotanSHA1.cpp \
119 BotanSHA224.cpp \
120 BotanSHA256.cpp \
121 BotanSHA384.cpp \
122 BotanSHA512.cpp \
123 BotanSymmetricAlgorithm.cpp \
124 BotanUtil.cpp \
125 Botan_ecb.cpp
126endif