|
1 /* |
|
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Cryptographic algorithms - en/decryption, signing, verification, hashing |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 */ |
|
23 |
|
24 #include "../test/kms/bld.inf" |
|
25 |
|
26 PRJ_PLATFORMS |
|
27 default |
|
28 |
|
29 PRJ_EXPORTS |
|
30 ./plug-ins.txt z:/resource/cryptospi/plug-ins.txt |
|
31 ./h4-plug-ins.txt z:/resource/cryptospi/h4-plug-ins.txt |
|
32 |
|
33 // Hashes and random are not export controlled; export these |
|
34 ../inc/spi/cryptospidef.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(cryptospi/cryptospidef.h) |
|
35 ../inc/spi/cryptorandomapi.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/cryptorandomapi.h) |
|
36 ../inc/spi/cryptohashapi.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/cryptohashapi.h) |
|
37 ../inc/spi/pluginentrydef.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(cryptospi/pluginentrydef.h) |
|
38 ../inc/spi/hashplugin.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(cryptospi/hashplugin.h) |
|
39 ../inc/spi/randomplugin.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(cryptospi/randomplugin.h) |
|
40 ../inc/spi/cryptoparams.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/cryptoparams.h) |
|
41 ../inc/spi/cryptobaseapi.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/cryptobaseapi.h) |
|
42 ../inc/spi/cryptoplugin.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(cryptospi/cryptoplugin.h) |
|
43 ../inc/spi/plugincharacteristics.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/plugincharacteristics.h) |
|
44 ../inc/spi/ruleselector.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/ruleselector.h) |
|
45 ../inc/spi/pluginselectorbase.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(cryptospi/pluginselectorbase.h) |
|
46 ../inc/spi/romlit.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(cryptospi/romlit.h) |
|
47 ../inc/spi/extendedcharacteristics.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/extendedcharacteristics.h) |
|
48 ../inc/spi/cryptocharacteristics.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/cryptocharacteristics.h) |
|
49 ../inc/spi/cryptospistateapi.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/cryptospistateapi.h) |
|
50 |
|
51 #ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT |
|
52 ../inc/spi/cryptomacapi.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptospi/cryptomacapi.h) |
|
53 ../inc/spi/macplugin.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(cryptospi/macplugin.h) |
|
54 #endif |
|
55 |
|
56 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
57 #ifdef SYMBIAN_OLD_EXPORT_LOCATION |
|
58 ../inc/spi/rulecharacteristics.h /epoc32/include/rulecharacteristics.h |
|
59 #endif |
|
60 #ifdef SYMBIAN_OLD_EXPORT_LOCATION |
|
61 ../inc/randsvrimpl.h /epoc32/include/randsvrimpl.h |
|
62 #endif |
|
63 #endif |
|
64 |
|
65 |
|
66 // Everything else is subject to export control; do not export them |
|
67 //../inc/spi/asymmetriccipherplugin.h /epoc32/include/cryptospi/asymmetriccipherplugin.h |
|
68 //../inc/spi/cryptosymmetriccipherapi.h /epoc32/include/cryptospi/cryptosymmetriccipherapi.h |
|
69 //../inc/spi/cryptoasymmetriccipherapi.h /epoc32/include/cryptospi/cryptoasymmetriccipherapi.h |
|
70 //../inc/spi/cryptosignatureapi.h /epoc32/include/cryptospi/cryptosignatureapi.h |
|
71 //../inc/spi/cryptokeypairgeneratorapi.h /epoc32/include/cryptospi/cryptokeypairgeneratorapi.h |
|
72 //../inc/spi/keys.h /epoc32/include/cryptospi/keys.h |
|
73 //../inc/spi/keypair.h /epoc32/include/cryptospi/keypair.h |
|
74 //../inc/spi/keypairgeneratorplugin.h /epoc32/include/cryptospi/keypairgeneratorplugin.h |
|
75 //../inc/spi/signerplugin.h /epoc32/include/cryptospi/signerplugin.h |
|
76 //../inc/spi/symmetriccipherplugin.h /epoc32/include/cryptospi/symmetriccipherplugin.h |
|
77 //../inc/spi/verifierplugin.h /epoc32/include/cryptospi/verifierplugin.h |
|
78 //../inc/spi/cryptokeyagreementapi.h /epoc32/include/cryptospi/cryptokeyagreementapi.h |
|
79 //../inc/spi/keyagreementplugin.h /epoc32/include/cryptospi/keyagreementplugin.h |
|
80 |
|
81 ../inc/cryptopanic.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(cryptopanic.h) |
|
82 ../inc/hash.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(hash.h) |
|
83 ../inc/random.h SYMBIAN_OS_LAYER_PUBLIC_EXPORT_PATH(random.h) |
|
84 ../inc/keyidentifierutil.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(keyidentifierutil.h) |
|
85 ../inc/randsvr.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(randsvr.h) |
|
86 ../inc/randcliserv.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(randcliserv.h) |
|
87 ../inc/pkcs5kdf.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(pkcs5kdf.h) |
|
88 ../inc/pkcs12kdf.h SYMBIAN_OS_LAYER_PLATFORM_EXPORT_PATH(pkcs12kdf.h) |
|
89 |
|
90 ../inc/crypto.iby /epoc32/rom/include/crypto.iby |
|
91 ../inc/hash.iby /epoc32/rom/include/hash.iby |
|
92 ../inc/random.iby /epoc32/rom/include/random.iby |
|
93 ../inc/pbe.iby /epoc32/rom/include/pbe.iby |
|
94 |
|
95 |
|
96 |
|
97 #ifndef TOOLS // Don't build anything for tools |
|
98 #ifndef TOOLS2 // Don't build anything for tools2 |
|
99 |
|
100 // For EKA1 arm builds, things that use long long support don't get built for thumb |
|
101 |
|
102 PRJ_MMPFILES |
|
103 |
|
104 cryptospi.mmp |
|
105 cryptolib.mmp |
|
106 #ifndef MARM_THUMB |
|
107 crypto.mmp BUILD_AS_ARM // Don't build for thumb |
|
108 #endif |
|
109 hash.mmp |
|
110 randsvr.mmp |
|
111 random.mmp |
|
112 pbe.mmp |
|
113 cryptospisetup.mmp |
|
114 |
|
115 #ifdef WINS |
|
116 cryptoswitch.mmp |
|
117 #endif |
|
118 |
|
119 PRJ_TESTMMPFILES |
|
120 tasymmetric.mmp |
|
121 #ifndef MARM_THUMB |
|
122 tbigint.mmp BUILD_AS_ARM // Don't build for thumb |
|
123 #endif |
|
124 tcryptospi.mmp |
|
125 dumpcryptoplugin.mmp |
|
126 tpkcs5kdf.mmp |
|
127 tpbe.mmp |
|
128 tsymmetric.mmp |
|
129 thash.mmp |
|
130 trandom.mmp |
|
131 tpaddingServer.mmp |
|
132 |
|
133 #endif // TOOLS2 |
|
134 #endif //TOOLS |
|
135 |
|
136 |
|
137 PRJ_TESTEXPORTS |
|
138 |
|
139 // bigint |
|
140 ../test/tbigint/scripts/tbasicmathstests.script /epoc32/winscw/c/tbigint/tbasicmathstests.script |
|
141 ../test/tbigint/scripts/tbasicmathstests.ini /epoc32/winscw/c/tbigint/tbasicmathstests.ini |
|
142 |
|
143 ../test/tbigint/scripts/tconstructiontests.script /epoc32/winscw/c/tbigint/tconstructiontests.script |
|
144 ../test/tbigint/scripts/tconstructiontests.ini /epoc32/winscw/c/tbigint/tconstructiontests.ini |
|
145 |
|
146 ../test/tbigint/scripts/tprimegen.script /epoc32/winscw/c/tbigint/tprimegen.script |
|
147 ../test/tbigint/scripts/tprimegen.ini /epoc32/winscw/c/tbigint/tprimegen.ini |
|
148 |
|
149 ../test/tbigint/scripts/tmontgomerytests.script /epoc32/winscw/c/tbigint/tmontgomerytests.script |
|
150 ../test/tbigint/scripts/tmontgomerytests.ini /epoc32/winscw/c/tbigint/tmontgomerytests.ini |
|
151 |
|
152 ../test/tbigint/scripts/tprimetests.script /epoc32/winscw/c/tbigint/tprimetests.script |
|
153 ../test/tbigint/scripts/tprimetests.ini /epoc32/winscw/c/tbigint/tprimetests.ini |
|
154 |
|
155 ../test/tbigint/scripts/tprimetests2.script /epoc32/winscw/c/tbigint/tprimetests2.script |
|
156 ../test/tbigint/scripts/tprimetests2.ini /epoc32/winscw/c/tbigint/tprimetests2.ini |
|
157 |
|
158 ../test/tbigint/scripts/tprimefailuretests.script /epoc32/winscw/c/tbigint/tprimefailuretests.script |
|
159 ../test/tbigint/scripts/tprimefailuretests.ini /epoc32/winscw/c/tbigint/tprimefailuretests.ini |
|
160 |
|
161 ../test/tbigint/scripts/tperformancetests.txt /epoc32/winscw/c/tbigint/tperformancetests.txt |
|
162 |
|
163 |
|
164 ../test/tpkcs5kdf/scripts/tpkcs12kdftests.script /epoc32/winscw/c/tpkcs5kdf/tpkcs12kdftests.script |
|
165 ../test/tpkcs5kdf/scripts/tpkcs12kdftests.ini /epoc32/winscw/c/tpkcs5kdf/tpkcs12kdftests.ini |
|
166 |
|
167 |
|
168 // pbe |
|
169 ../test/tpbe/scripts/tpbetests_v2.script /epoc32/winscw/c/tpbe/tpbetests_v2.script |
|
170 ../test/tpbe/scripts/tpbetests_v2.ini /epoc32/winscw/c/tpbe/tpbetests_v2.ini |
|
171 |
|
172 ../test/tpbe/Data/strong.dat /epoc32/winscw/c/tpbe/strong.dat |
|
173 ../test/tpbe/Data/weak.dat /epoc32/winscw/c/tpbe/weak.dat |
|
174 ../test/tpbe/Data/pkcs5-orig.dat /epoc32/winscw/c/tpbe/pkcs5-orig.dat |
|
175 ../test/tpbe/Data/pkcs12-first.dat /epoc32/winscw/c/tpbe/pkcs12-first.dat |
|
176 |
|
177 // Asymmetric |
|
178 ../test/tasymmetric/scripts/tasymmetrictests.script /epoc32/winscw/c/tasymmetric/tasymmetrictests.script |
|
179 ../test/tasymmetric/scripts/tasymmetrictests.ini /epoc32/winscw/c/tasymmetric/tasymmetrictests.ini |
|
180 |
|
181 ../test/tasymmetric/scripts/asymmetricPerformance.txt /epoc32/winscw/c/tasymmetric/asymmetricperformance.txt |
|
182 |
|
183 // Symmetric |
|
184 ../test/tsymmetric/scripts/tsymmetrictests.script /epoc32/winscw/c/tsymmetric/tsymmetrictests.script |
|
185 ../test/tsymmetric/scripts/tsymmetrictests.ini /epoc32/winscw/c/tsymmetric/tsymmetrictests.ini |
|
186 |
|
187 ../test/tsymmetric/scripts/tsymmetricperformancetests.txt /epoc32/winscw/c/tsymmetric/tsymmetricperformancetests.txt |
|
188 |
|
189 ../test/tsymmetric/scripts/symmetricOOMtests.script /epoc32/winscw/c/tsymmetric/symmetricoomtests.script |
|
190 ../test/tsymmetric/scripts/symmetricOOMtests.ini /epoc32/winscw/c/tsymmetric/symmetricoomtests.ini |
|
191 |
|
192 ../test/tsymmetric/scripts/AESECBVectorsScript.script /epoc32/winscw/c/tsymmetric/aesecbvectorsscript.script |
|
193 ../test/tsymmetric/scripts/AESECBVectorsScript.ini /epoc32/winscw/c/tsymmetric/aesecbvectorsscript.ini |
|
194 |
|
195 ../test/tsymmetric/scripts/AESECB_KAT_VT.script /epoc32/winscw/c/tsymmetric/aesecb_kat_vt.script |
|
196 ../test/tsymmetric/scripts/AESECB_KAT_VT.ini /epoc32/winscw/c/tsymmetric/aesecb_kat_vt.ini |
|
197 |
|
198 ../test/tsymmetric/scripts/AESECB_KAT_VK.ini /epoc32/winscw/c/tsymmetric/aesecb_kat_vk.ini |
|
199 ../test/tsymmetric/scripts/AESECB_KAT_VK.script /epoc32/winscw/c/tsymmetric/aesecb_kat_vk.script |
|
200 |
|
201 ../test/tsymmetric/scripts/AESMonteCarloEncryptECB128.script /epoc32/winscw/c/tsymmetric/aesmontecarloencryptecb128.script |
|
202 ../test/tsymmetric/scripts/AESMonteCarloEncryptECB128.ini /epoc32/winscw/c/tsymmetric/aesmontecarloencryptecb128.ini |
|
203 ../test/tsymmetric/scripts/AESMonteCarloEncryptECB192.script /epoc32/winscw/c/tsymmetric/aesmontecarloencryptecb192.script |
|
204 ../test/tsymmetric/scripts/AESMonteCarloEncryptECB192.ini /epoc32/winscw/c/tsymmetric/aesmontecarloencryptecb192.ini |
|
205 ../test/tsymmetric/scripts/AESMonteCarloEncryptECB256.script /epoc32/winscw/c/tsymmetric/aesmontecarloencryptecb256.script |
|
206 ../test/tsymmetric/scripts/AESMonteCarloEncryptECB256.ini /epoc32/winscw/c/tsymmetric/aesmontecarloencryptecb256.ini |
|
207 |
|
208 |
|
209 ../test/tsymmetric/scripts/AESMonteCarloDecryptECB128.script /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptecb128.script |
|
210 ../test/tsymmetric/scripts/AESMonteCarloDecryptECB128.ini /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptecb128.ini |
|
211 ../test/tsymmetric/scripts/AESMonteCarloDecryptECB192.script /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptecb192.script |
|
212 ../test/tsymmetric/scripts/AESMonteCarloDecryptECB192.ini /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptecb192.ini |
|
213 ../test/tsymmetric/scripts/AESMonteCarloDecryptECB256.script /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptecb256.script |
|
214 ../test/tsymmetric/scripts/AESMonteCarloDecryptECB256.ini /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptecb256.ini |
|
215 |
|
216 ../test/tsymmetric/scripts/AESMonteCarloEncryptCBC128.script /epoc32/winscw/c/tsymmetric/aesmontecarloencryptcbc128.script |
|
217 ../test/tsymmetric/scripts/AESMonteCarloEncryptCBC128.ini /epoc32/winscw/c/tsymmetric/aesmontecarloencryptcbc128.ini |
|
218 ../test/tsymmetric/scripts/AESMonteCarloEncryptCBC192A.script /epoc32/winscw/c/tsymmetric/aesmontecarloencryptcbc192A.script |
|
219 ../test/tsymmetric/scripts/AESMonteCarloEncryptCBC192B.script /epoc32/winscw/c/tsymmetric/aesmontecarloencryptcbc192B.script |
|
220 ../test/tsymmetric/scripts/AESMonteCarloEncryptCBC192.ini /epoc32/winscw/c/tsymmetric/aesmontecarloencryptcbc192.ini |
|
221 ../test/tsymmetric/scripts/AESMonteCarloEncryptCBC256.script /epoc32/winscw/c/tsymmetric/aesmontecarloencryptcbc256.script |
|
222 ../test/tsymmetric/scripts/AESMonteCarloEncryptCBC256.ini /epoc32/winscw/c/tsymmetric/aesmontecarloencryptcbc256.ini |
|
223 |
|
224 |
|
225 ../test/tsymmetric/scripts/AESMonteCarloDecryptCBC128.script /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptcbc128.script |
|
226 ../test/tsymmetric/scripts/AESMonteCarloDecryptCBC128.ini /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptcbc128.ini |
|
227 ../test/tsymmetric/scripts/AESMonteCarloDecryptCBC192.script /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptcbc192.script |
|
228 ../test/tsymmetric/scripts/AESMonteCarloDecryptCBC192.ini /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptcbc192.ini |
|
229 ../test/tsymmetric/scripts/AESMonteCarloDecryptCBC256.script /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptcbc256.script |
|
230 ../test/tsymmetric/scripts/AESMonteCarloDecryptCBC256.ini /epoc32/winscw/c/tsymmetric/aesmontecarlodecryptcbc256.ini |
|
231 |
|
232 // Hash |
|
233 ../test/thash/testdata/hmacmd2.dat /epoc32/winscw/c/thash/hmacmd2.dat |
|
234 ../test/thash/testdata/hmacmd5.dat /epoc32/winscw/c/thash/hmacmd5.dat |
|
235 ../test/thash/testdata/hmacmd4.dat /epoc32/winscw/c/thash/hmacmd4.dat |
|
236 ../test/thash/testdata/hmacsha1.dat /epoc32/winscw/c/thash/hmacsha1.dat |
|
237 ../test/thash/testdata/hmacsha224.dat /epoc32/winscw/c/thash/hmacsha224.dat |
|
238 ../test/thash/testdata/hmacsha256.dat /epoc32/winscw/c/thash/hmacsha256.dat |
|
239 ../test/thash/testdata/hmacsha384.dat /epoc32/winscw/c/thash/hmacsha384.dat |
|
240 ../test/thash/testdata/hmacsha512.dat /epoc32/winscw/c/thash/hmacsha512.dat |
|
241 ../test/thash/testdata/md2.dat /epoc32/winscw/c/thash/md2.dat |
|
242 ../test/thash/testdata/md5.dat /epoc32/winscw/c/thash/md5.dat |
|
243 ../test/thash/testdata/sha1.dat /epoc32/winscw/c/thash/sha1.dat |
|
244 ../test/thash/testdata/md4.dat /epoc32/winscw/c/thash/md4.dat |
|
245 ../test/thash/testdata/md4_largedata1.txt /epoc32/winscw/c/thash/md4_largedata1.txt |
|
246 ../test/thash/testdata/md4_largedata2.txt /epoc32/winscw/c/thash/md4_largedata2.txt |
|
247 ../test/thash/testdata/md4_largedata3.txt /epoc32/winscw/c/thash/md4_largedata3.txt |
|
248 ../test/thash/testdata/448bit_data.txt /epoc32/winscw/c/thash/448bit_data.txt |
|
249 ../test/thash/testdata/512bit_data.txt /epoc32/winscw/c/thash/512bit_data.txt |
|
250 ../test/thash/testdata/512bitdata_largerkey.txt /epoc32/winscw/c/thash/512bitdata_largerkey.txt |
|
251 ../test/thash/testdata/largerthanblocksizedata_key.txt /epoc32/winscw/c/thash/largerthanblocksizedata_key.txt |
|
252 ../test/thash/testdata/sha224.dat /epoc32/winscw/c/thash/sha224.dat |
|
253 ../test/thash/testdata/sha256.dat /epoc32/winscw/c/thash/sha256.dat |
|
254 ../test/thash/testdata/sha384.dat /epoc32/winscw/c/thash/sha384.dat |
|
255 ../test/thash/testdata/sha512.dat /epoc32/winscw/c/thash/sha512.dat |
|
256 |
|
257 |
|
258 // Padding |
|
259 ../test/tpadding/scripts/tpadSSLv3.ini /epoc32/winscw/c/tpadding/tpadsslv3.ini |
|
260 ../test/tpadding/scripts/tpadpkcs7.ini /epoc32/winscw/c/tpadding/tpadpkcs7.ini |
|
261 ../test/tpadding/scripts/tpaddingnone.ini /epoc32/winscw/c/tpadding/tpaddingnone.ini |
|
262 ../test/tpadding/scripts/tpadding.script /epoc32/winscw/c/tpadding/tpadding.script |
|
263 ../test/tpadding/scripts/tpaddingudeb.script /epoc32/winscw/c/tpadding/tpaddingudeb.script |
|
264 |
|
265 #include "../test/tcryptospi/group/bld.inf" |
|
266 |
|
267 // ROMKIT includes |
|
268 ../inc/cryptotests.iby /epoc32/rom/include/cryptotests.iby |
|
269 ../inc/hashtests.iby /epoc32/rom/include/hashtests.iby |
|
270 ../inc/pbetests.iby /epoc32/rom/include/pbetests.iby |
|
271 ../inc/randomtests.iby /epoc32/rom/include/randomtests.iby |
|
272 ../inc/pkcs5kdftests.iby /epoc32/rom/include/pkcs5kdftests.iby |
|
273 ../inc/paddingtests.iby /epoc32/rom/include/paddingtests.iby |
|
274 ../inc/tcryptospi.iby /epoc32/rom/include/tcryptospi.iby |
|
275 |
|
276 #ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT |
|
277 #include "../examples/bld.inf" |
|
278 #endif |