diff options
author | djm <> | 2005-04-29 05:37:32 +0000 |
---|---|---|
committer | djm <> | 2005-04-29 05:37:32 +0000 |
commit | 588543a0946f1dbf0f1dd5135f8f6447486dc183 (patch) | |
tree | f74e14f98abfec33221f0f2e15cc88a34a3df7e5 /src/lib/libssl/test | |
parent | 00b426069b0dfa8f0d9b87308646e9684f45c515 (diff) | |
download | openbsd-588543a0946f1dbf0f1dd5135f8f6447486dc183.tar.gz openbsd-588543a0946f1dbf0f1dd5135f8f6447486dc183.tar.bz2 openbsd-588543a0946f1dbf0f1dd5135f8f6447486dc183.zip |
import of openssl-0.9.7g; tested on platforms from alpha to zaurus, ok deraadt@
Diffstat (limited to 'src/lib/libssl/test')
-rw-r--r-- | src/lib/libssl/test/Makefile | 788 | ||||
-rw-r--r-- | src/lib/libssl/test/evptests.txt | 107 | ||||
-rw-r--r-- | src/lib/libssl/test/maketests.com | 6 | ||||
-rw-r--r-- | src/lib/libssl/test/testenc.com | 2 | ||||
-rw-r--r-- | src/lib/libssl/test/testfipsssl | 113 | ||||
-rw-r--r-- | src/lib/libssl/test/tverify.com | 9 |
6 files changed, 1017 insertions, 8 deletions
diff --git a/src/lib/libssl/test/Makefile b/src/lib/libssl/test/Makefile new file mode 100644 index 0000000000..6aeedf7fa3 --- /dev/null +++ b/src/lib/libssl/test/Makefile | |||
@@ -0,0 +1,788 @@ | |||
1 | # | ||
2 | # test/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= test | ||
6 | TOP= .. | ||
7 | CC= cc | ||
8 | INCLUDES= -I$(TOP) -I../include $(KRB5_INCLUDES) | ||
9 | CFLAG= -g | ||
10 | INSTALL_PREFIX= | ||
11 | OPENSSLDIR= /usr/local/ssl | ||
12 | INSTALLTOP= /usr/local/ssl | ||
13 | MAKEFILE= Makefile | ||
14 | MAKEDEPPROG= makedepend | ||
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
16 | PERL= perl | ||
17 | # KRB5 stuff | ||
18 | KRB5_INCLUDES= | ||
19 | LIBKRB5= | ||
20 | |||
21 | PEX_LIBS= | ||
22 | EX_LIBS= #-lnsl -lsocket | ||
23 | |||
24 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
25 | |||
26 | GENERAL=Makefile maketests.com \ | ||
27 | tests.com testenc.com tx509.com trsa.com tcrl.com tsid.com treq.com \ | ||
28 | tpkcs7.com tpkcs7d.com tverify.com testgen.com testss.com testssl.com \ | ||
29 | testca.com VMSca-response.1 VMSca-response.2 | ||
30 | |||
31 | DLIBCRYPTO= ../libcrypto.a | ||
32 | DLIBSSL= ../libssl.a | ||
33 | LIBCRYPTO= -L.. -lcrypto | ||
34 | LIBSSL= -L.. -lssl | ||
35 | |||
36 | BNTEST= bntest | ||
37 | ECTEST= ectest | ||
38 | EXPTEST= exptest | ||
39 | IDEATEST= ideatest | ||
40 | SHATEST= shatest | ||
41 | SHA1TEST= sha1test | ||
42 | FIPS_SHA1TEST= fips_sha1test | ||
43 | MDC2TEST= mdc2test | ||
44 | RMDTEST= rmdtest | ||
45 | MD2TEST= md2test | ||
46 | MD4TEST= md4test | ||
47 | MD5TEST= md5test | ||
48 | HMACTEST= hmactest | ||
49 | RC2TEST= rc2test | ||
50 | RC4TEST= rc4test | ||
51 | RC5TEST= rc5test | ||
52 | BFTEST= bftest | ||
53 | CASTTEST= casttest | ||
54 | DESTEST= destest | ||
55 | FIPS_DESTEST= fips_desmovs | ||
56 | RANDTEST= randtest | ||
57 | FIPS_RANDTEST= fips_randtest | ||
58 | DHTEST= dhtest | ||
59 | DSATEST= dsatest | ||
60 | FIPS_DSATEST= fips_dsatest | ||
61 | METHTEST= methtest | ||
62 | SSLTEST= ssltest | ||
63 | RSATEST= rsa_test | ||
64 | ENGINETEST= enginetest | ||
65 | EVPTEST= evp_test | ||
66 | FIPS_AESTEST= fips_aesavs | ||
67 | |||
68 | TESTS= alltests | ||
69 | |||
70 | EXE= $(BNTEST)$(EXE_EXT) $(ECTEST)$(EXE_EXT) $(IDEATEST)$(EXE_EXT) $(MD2TEST)$(EXE_EXT) $(MD4TEST)$(EXE_EXT) $(MD5TEST)$(EXE_EXT) $(HMACTEST)$(EXE_EXT) \ | ||
71 | $(RC2TEST)$(EXE_EXT) $(RC4TEST)$(EXE_EXT) $(RC5TEST)$(EXE_EXT) \ | ||
72 | $(DESTEST)$(EXE_EXT) $(FIPS_DESTEST)$(EXE_EXT) $(SHATEST)$(EXE_EXT) $(SHA1TEST)$(EXE_EXT) $(FIPS_SHA1TEST)$(EXE_EXT) $(MDC2TEST)$(EXE_EXT) $(RMDTEST)$(EXE_EXT) \ | ||
73 | $(RANDTEST)$(EXE_EXT) $(FIPS_RANDTEST)$(EXE_EXT) $(DHTEST)$(EXE_EXT) $(ENGINETEST)$(EXE_EXT) \ | ||
74 | $(BFTEST)$(EXE_EXT) $(CASTTEST)$(EXE_EXT) $(SSLTEST)$(EXE_EXT) $(EXPTEST)$(EXE_EXT) $(DSATEST)$(EXE_EXT) $(FIPS_DSATEST)$(EXE_EXT) $(RSATEST)$(EXE_EXT) \ | ||
75 | $(EVPTEST)$(EXE_EXT) $(FIPS_AESTEST)$(EXE_EXT) | ||
76 | |||
77 | # $(METHTEST)$(EXE_EXT) | ||
78 | |||
79 | OBJ= $(BNTEST).o $(ECTEST).o $(IDEATEST).o $(MD2TEST).o $(MD4TEST).o $(MD5TEST).o \ | ||
80 | $(HMACTEST).o \ | ||
81 | $(RC2TEST).o $(RC4TEST).o $(RC5TEST).o \ | ||
82 | $(DESTEST).o $(FIPS_DESTEST).o $(SHATEST).o $(SHA1TEST).o $(FIPS_SHA1TEST).o $(MDC2TEST).o $(RMDTEST).o \ | ||
83 | $(RANDTEST).o $(FIPS_RANDTEST).o $(DHTEST).o $(ENGINETEST).o $(CASTTEST).o \ | ||
84 | $(BFTEST).o $(SSLTEST).o $(DSATEST).o $(FIPS_DSATEST).o $(EXPTEST).o $(RSATEST).o \ | ||
85 | $(EVPTEST).o $(FIPS_AESTEST).o | ||
86 | SRC= $(BNTEST).c $(ECTEST).c $(IDEATEST).c $(MD2TEST).c $(MD4TEST).c $(MD5TEST).c \ | ||
87 | $(HMACTEST).c \ | ||
88 | $(RC2TEST).c $(RC4TEST).c $(RC5TEST).c \ | ||
89 | $(DESTEST).c $(FIPS_DESTEST).c $(SHATEST).c $(SHA1TEST).c $(FIPS_SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \ | ||
90 | $(RANDTEST).c $(FIPS_RANDTEST).c $(DHTEST).c $(ENGINETEST).c $(CASTTEST).c \ | ||
91 | $(BFTEST).c $(SSLTEST).c $(DSATEST).c $(FIPS_DSATEST).c $(EXPTEST).c $(RSATEST).c \ | ||
92 | $(EVPTEST).c $(FIPS_AESTEST).c | ||
93 | |||
94 | EXHEADER= | ||
95 | HEADER= $(EXHEADER) | ||
96 | |||
97 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
98 | |||
99 | top: | ||
100 | (cd ..; $(MAKE) DIRS=$(DIR) TESTS=$(TESTS) all) | ||
101 | |||
102 | all: exe | ||
103 | |||
104 | exe: $(EXE) dummytest$(EXE_EXT) | ||
105 | |||
106 | files: | ||
107 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
108 | |||
109 | links: | ||
110 | |||
111 | generate: $(SRC) | ||
112 | $(SRC): | ||
113 | @sh $(TOP)/util/point.sh dummytest.c $@ | ||
114 | |||
115 | errors: | ||
116 | |||
117 | install: | ||
118 | |||
119 | tags: | ||
120 | ctags $(SRC) | ||
121 | |||
122 | tests: exe apps $(TESTS) | ||
123 | |||
124 | apps: | ||
125 | @(cd ..; $(MAKE) DIRS=apps all) | ||
126 | |||
127 | alltests: \ | ||
128 | test_des test_idea test_sha test_md4 test_md5 test_hmac \ | ||
129 | test_md2 test_mdc2 \ | ||
130 | test_rmd test_rc2 test_rc4 test_rc5 test_bf test_cast test_aes \ | ||
131 | test_rand test_bn test_ec test_enc test_x509 test_rsa test_crl test_sid \ | ||
132 | test_gen test_req test_pkcs7 test_verify test_dh test_dsa \ | ||
133 | test_ss test_ca test_engine test_evp test_ssl | ||
134 | # temporarily removed | ||
135 | # fips_test_aes | ||
136 | |||
137 | fips_test_aes: | ||
138 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
139 | mkdir -p fips_aes_data/rsp; \ | ||
140 | ../util/shlib_wrap.sh ./$(FIPS_AESTEST) -d fips_aes_data/list; \ | ||
141 | fi | ||
142 | |||
143 | test_evp: | ||
144 | ../util/shlib_wrap.sh ./$(EVPTEST) evptests.txt | ||
145 | |||
146 | test_des: | ||
147 | ../util/shlib_wrap.sh ./$(DESTEST) | ||
148 | |||
149 | test_idea: | ||
150 | ../util/shlib_wrap.sh ./$(IDEATEST) | ||
151 | |||
152 | test_sha: | ||
153 | ../util/shlib_wrap.sh ./$(SHATEST) | ||
154 | ../util/shlib_wrap.sh ./$(SHA1TEST) | ||
155 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
156 | ../util/shlib_wrap.sh ./$(FIPS_SHA1TEST) sha1vectors.txt | sed s/Strings/Hashes/ | cmp sha1hashes.txt - ; \ | ||
157 | fi | ||
158 | |||
159 | test_mdc2: | ||
160 | ../util/shlib_wrap.sh ./$(MDC2TEST) | ||
161 | |||
162 | test_md5: | ||
163 | ../util/shlib_wrap.sh ./$(MD5TEST) | ||
164 | |||
165 | test_md4: | ||
166 | ../util/shlib_wrap.sh ./$(MD4TEST) | ||
167 | |||
168 | test_hmac: | ||
169 | ../util/shlib_wrap.sh ./$(HMACTEST) | ||
170 | |||
171 | test_md2: | ||
172 | ../util/shlib_wrap.sh ./$(MD2TEST) | ||
173 | |||
174 | test_rmd: | ||
175 | ../util/shlib_wrap.sh ./$(RMDTEST) | ||
176 | |||
177 | test_bf: | ||
178 | ../util/shlib_wrap.sh ./$(BFTEST) | ||
179 | |||
180 | test_cast: | ||
181 | ../util/shlib_wrap.sh ./$(CASTTEST) | ||
182 | |||
183 | test_rc2: | ||
184 | ../util/shlib_wrap.sh ./$(RC2TEST) | ||
185 | |||
186 | test_rc4: | ||
187 | ../util/shlib_wrap.sh ./$(RC4TEST) | ||
188 | |||
189 | test_rc5: | ||
190 | ../util/shlib_wrap.sh ./$(RC5TEST) | ||
191 | |||
192 | test_rand: | ||
193 | ../util/shlib_wrap.sh ./$(RANDTEST) | ||
194 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
195 | ../util/shlib_wrap.sh ./$(FIPS_RANDTEST); \ | ||
196 | fi | ||
197 | |||
198 | test_enc: | ||
199 | @sh ./testenc | ||
200 | |||
201 | test_x509: | ||
202 | echo test normal x509v1 certificate | ||
203 | sh ./tx509 2>/dev/null | ||
204 | echo test first x509v3 certificate | ||
205 | sh ./tx509 v3-cert1.pem 2>/dev/null | ||
206 | echo test second x509v3 certificate | ||
207 | sh ./tx509 v3-cert2.pem 2>/dev/null | ||
208 | |||
209 | test_rsa: | ||
210 | @sh ./trsa 2>/dev/null | ||
211 | ../util/shlib_wrap.sh ./$(RSATEST) | ||
212 | |||
213 | test_crl: | ||
214 | @sh ./tcrl 2>/dev/null | ||
215 | |||
216 | test_sid: | ||
217 | @sh ./tsid 2>/dev/null | ||
218 | |||
219 | test_req: | ||
220 | @sh ./treq 2>/dev/null | ||
221 | @sh ./treq testreq2.pem 2>/dev/null | ||
222 | |||
223 | test_pkcs7: | ||
224 | @sh ./tpkcs7 2>/dev/null | ||
225 | @sh ./tpkcs7d 2>/dev/null | ||
226 | |||
227 | test_bn: | ||
228 | @echo starting big number library test, could take a while... | ||
229 | @../util/shlib_wrap.sh ./$(BNTEST) >tmp.bntest | ||
230 | @echo quit >>tmp.bntest | ||
231 | @echo "running bc" | ||
232 | @<tmp.bntest sh -c "`sh ./bctest ignore`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"' | ||
233 | @echo 'test a^b%c implementations' | ||
234 | ../util/shlib_wrap.sh ./$(EXPTEST) | ||
235 | |||
236 | test_ec: | ||
237 | @echo 'test elliptic curves' | ||
238 | ../util/shlib_wrap.sh ./$(ECTEST) | ||
239 | |||
240 | test_verify: | ||
241 | @echo "The following command should have some OK's and some failures" | ||
242 | @echo "There are definitly a few expired certificates" | ||
243 | -../util/shlib_wrap.sh ../apps/openssl verify -CApath ../certs ../certs/*.pem | ||
244 | |||
245 | test_dh: | ||
246 | @echo "Generate a set of DH parameters" | ||
247 | ../util/shlib_wrap.sh ./$(DHTEST) | ||
248 | |||
249 | test_dsa: | ||
250 | @echo "Generate a set of DSA parameters" | ||
251 | ../util/shlib_wrap.sh ./$(DSATEST) | ||
252 | ../util/shlib_wrap.sh ./$(DSATEST) -app2_1 | ||
253 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
254 | ../util/shlib_wrap.sh ./$(FIPS_DSATEST); \ | ||
255 | ../util/shlib_wrap.sh ./$(FIPS_DSATEST) -app2_1; \ | ||
256 | fi | ||
257 | |||
258 | test_gen: | ||
259 | @echo "Generate and verify a certificate request" | ||
260 | @sh ./testgen | ||
261 | |||
262 | test_ss keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \ | ||
263 | intP1.ss intP2.ss: testss | ||
264 | @echo "Generate and certify a test certificate" | ||
265 | @sh ./testss | ||
266 | @cat certCA.ss certU.ss > intP1.ss | ||
267 | @cat certCA.ss certU.ss certP1.ss > intP2.ss | ||
268 | |||
269 | test_engine: | ||
270 | @echo "Manipulate the ENGINE structures" | ||
271 | ../util/shlib_wrap.sh ./$(ENGINETEST) | ||
272 | |||
273 | test_ssl: keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \ | ||
274 | intP1.ss intP2.ss | ||
275 | @echo "test SSL protocol" | ||
276 | @if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
277 | sh ./testfipsssl keyU.ss certU.ss certCA.ss; \ | ||
278 | fi | ||
279 | @sh ./testssl keyU.ss certU.ss certCA.ss | ||
280 | @sh ./testsslproxy keyP1.ss certP1.ss intP1.ss | ||
281 | @sh ./testsslproxy keyP2.ss certP2.ss intP2.ss | ||
282 | |||
283 | test_ca: | ||
284 | @if ../util/shlib_wrap.sh ../apps/openssl no-rsa; then \ | ||
285 | echo "skipping CA.sh test -- requires RSA"; \ | ||
286 | else \ | ||
287 | echo "Generate and certify a test certificate via the 'ca' program"; \ | ||
288 | sh ./testca; \ | ||
289 | fi | ||
290 | |||
291 | test_aes: #$(AESTEST) | ||
292 | # @echo "test Rijndael" | ||
293 | # ../util/shlib_wrap.sh ./$(AESTEST) | ||
294 | |||
295 | lint: | ||
296 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
297 | |||
298 | depend: | ||
299 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC) | ||
300 | |||
301 | dclean: | ||
302 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
303 | mv -f Makefile.new $(MAKEFILE) | ||
304 | |||
305 | clean: | ||
306 | rm -f .rnd tmp.bntest tmp.bctest *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) *.ss *.srl log | ||
307 | |||
308 | $(DLIBSSL): | ||
309 | (cd ..; $(MAKE) DIRS=ssl all) | ||
310 | |||
311 | $(DLIBCRYPTO): | ||
312 | (cd ..; $(MAKE) DIRS=crypto all) | ||
313 | |||
314 | BUILD_CMD=if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \ | ||
315 | set -x; $${CC:-$(CC)} -o $$target$(EXE_EXT) $(CFLAGS) $$target.o $(PEX_LIBS) $(DLIBSSL) $(LIBKRB5) $(DLIBCRYPTO) $(EX_LIBS) ; \ | ||
316 | elif [ -z "$(SHARED_LIBS)" ]; then \ | ||
317 | set -x; $${CC:-$(CC)} -o $$target$(EXE_EXT) $(CFLAGS) $$target.o $(PEX_LIBS) $(LIBSSL) $(LIBKRB5) $(LIBCRYPTO) $(EX_LIBS) ; \ | ||
318 | else \ | ||
319 | set -x; LD_LIBRARY_PATH=..:$$LD_LIBRARY_PATH \ | ||
320 | $(CC) -o $$target$(EXE_EXT) $(CFLAGS) $$target.o $(PEX_LIBS) $(LIBSSL) $(LIBKRB5) $(LIBCRYPTO) $(EX_LIBS) ; \ | ||
321 | fi; | ||
322 | |||
323 | $(FIPS_AESTEST)$(EXE_EXT): $(FIPS_AESTEST).o $(DLIBCRYPTO) | ||
324 | @target=$(FIPS_AESTEST); $(BUILD_CMD) | ||
325 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
326 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_AESTEST); \ | ||
327 | fi | ||
328 | |||
329 | $(RSATEST)$(EXE_EXT): $(RSATEST).o $(DLIBCRYPTO) | ||
330 | @target=$(RSATEST); $(BUILD_CMD) | ||
331 | |||
332 | $(BNTEST)$(EXE_EXT): $(BNTEST).o $(DLIBCRYPTO) | ||
333 | @target=$(BNTEST); $(BUILD_CMD) | ||
334 | |||
335 | $(ECTEST)$(EXE_EXT): $(ECTEST).o $(DLIBCRYPTO) | ||
336 | @target=$(ECTEST); $(BUILD_CMD) | ||
337 | |||
338 | $(EXPTEST)$(EXE_EXT): $(EXPTEST).o $(DLIBCRYPTO) | ||
339 | @target=$(EXPTEST); $(BUILD_CMD) | ||
340 | |||
341 | $(IDEATEST)$(EXE_EXT): $(IDEATEST).o $(DLIBCRYPTO) | ||
342 | @target=$(IDEATEST); $(BUILD_CMD) | ||
343 | |||
344 | $(MD2TEST)$(EXE_EXT): $(MD2TEST).o $(DLIBCRYPTO) | ||
345 | @target=$(MD2TEST); $(BUILD_CMD) | ||
346 | |||
347 | $(SHATEST)$(EXE_EXT): $(SHATEST).o $(DLIBCRYPTO) | ||
348 | @target=$(SHATEST); $(BUILD_CMD) | ||
349 | |||
350 | $(SHA1TEST)$(EXE_EXT): $(SHA1TEST).o $(DLIBCRYPTO) | ||
351 | @target=$(SHA1TEST); $(BUILD_CMD) | ||
352 | |||
353 | $(FIPS_SHA1TEST)$(EXE_EXT): $(FIPS_SHA1TEST).o $(DLIBCRYPTO) | ||
354 | @target=$(FIPS_SHA1TEST); $(BUILD_CMD) | ||
355 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
356 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_SHA1TEST); \ | ||
357 | fi | ||
358 | |||
359 | $(RMDTEST)$(EXE_EXT): $(RMDTEST).o $(DLIBCRYPTO) | ||
360 | @target=$(RMDTEST); $(BUILD_CMD) | ||
361 | |||
362 | $(MDC2TEST)$(EXE_EXT): $(MDC2TEST).o $(DLIBCRYPTO) | ||
363 | @target=$(MDC2TEST); $(BUILD_CMD) | ||
364 | |||
365 | $(MD4TEST)$(EXE_EXT): $(MD4TEST).o $(DLIBCRYPTO) | ||
366 | @target=$(MD4TEST); $(BUILD_CMD) | ||
367 | |||
368 | $(MD5TEST)$(EXE_EXT): $(MD5TEST).o $(DLIBCRYPTO) | ||
369 | @target=$(MD5TEST); $(BUILD_CMD) | ||
370 | |||
371 | $(HMACTEST)$(EXE_EXT): $(HMACTEST).o $(DLIBCRYPTO) | ||
372 | @target=$(HMACTEST); $(BUILD_CMD) | ||
373 | |||
374 | $(RC2TEST)$(EXE_EXT): $(RC2TEST).o $(DLIBCRYPTO) | ||
375 | @target=$(RC2TEST); $(BUILD_CMD) | ||
376 | |||
377 | $(BFTEST)$(EXE_EXT): $(BFTEST).o $(DLIBCRYPTO) | ||
378 | @target=$(BFTEST); $(BUILD_CMD) | ||
379 | |||
380 | $(CASTTEST)$(EXE_EXT): $(CASTTEST).o $(DLIBCRYPTO) | ||
381 | @target=$(CASTTEST); $(BUILD_CMD) | ||
382 | |||
383 | $(RC4TEST)$(EXE_EXT): $(RC4TEST).o $(DLIBCRYPTO) | ||
384 | @target=$(RC4TEST); $(BUILD_CMD) | ||
385 | |||
386 | $(RC5TEST)$(EXE_EXT): $(RC5TEST).o $(DLIBCRYPTO) | ||
387 | @target=$(RC5TEST); $(BUILD_CMD) | ||
388 | |||
389 | $(DESTEST)$(EXE_EXT): $(DESTEST).o $(DLIBCRYPTO) | ||
390 | @target=$(DESTEST); $(BUILD_CMD) | ||
391 | |||
392 | $(FIPS_DESTEST)$(EXE_EXT): $(FIPS_DESTEST).o $(DLIBCRYPTO) | ||
393 | @target=$(FIPS_DESTEST); $(BUILD_CMD) | ||
394 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
395 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_DESTEST); \ | ||
396 | fi | ||
397 | |||
398 | $(RANDTEST)$(EXE_EXT): $(RANDTEST).o $(DLIBCRYPTO) | ||
399 | @target=$(RANDTEST); $(BUILD_CMD) | ||
400 | |||
401 | $(FIPS_RANDTEST)$(EXE_EXT): $(FIPS_RANDTEST).o $(DLIBCRYPTO) | ||
402 | @target=$(FIPS_RANDTEST); $(BUILD_CMD) | ||
403 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
404 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_RANDTEST); \ | ||
405 | fi | ||
406 | |||
407 | $(DHTEST)$(EXE_EXT): $(DHTEST).o $(DLIBCRYPTO) | ||
408 | @target=$(DHTEST); $(BUILD_CMD) | ||
409 | |||
410 | $(DSATEST)$(EXE_EXT): $(DSATEST).o $(DLIBCRYPTO) | ||
411 | @target=$(DSATEST); $(BUILD_CMD) | ||
412 | |||
413 | $(FIPS_DSATEST)$(EXE_EXT): $(FIPS_DSATEST).o $(DLIBCRYPTO) | ||
414 | @target=$(FIPS_DSATEST); $(BUILD_CMD) | ||
415 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
416 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(FIPS_DSATEST); \ | ||
417 | fi | ||
418 | |||
419 | $(METHTEST)$(EXE_EXT): $(METHTEST).o $(DLIBCRYPTO) | ||
420 | @target=$(METHTEST); $(BUILD_CMD) | ||
421 | |||
422 | $(SSLTEST)$(EXE_EXT): $(SSLTEST).o $(DLIBSSL) $(DLIBCRYPTO) | ||
423 | @target=$(SSLTEST); $(BUILD_CMD) | ||
424 | if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ | ||
425 | TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(SSLTEST); \ | ||
426 | fi | ||
427 | |||
428 | $(ENGINETEST)$(EXE_EXT): $(ENGINETEST).o $(DLIBCRYPTO) | ||
429 | @target=$(ENGINETEST); $(BUILD_CMD) | ||
430 | |||
431 | $(EVPTEST)$(EXE_EXT): $(EVPTEST).o $(DLIBCRYPTO) | ||
432 | @target=$(EVPTEST); $(BUILD_CMD) | ||
433 | |||
434 | #$(AESTEST).o: $(AESTEST).c | ||
435 | # $(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c | ||
436 | |||
437 | #$(AESTEST)$(EXE_EXT): $(AESTEST).o $(DLIBCRYPTO) | ||
438 | # @target=$(AESTEST); $(BUILD_CMD) | ||
439 | |||
440 | dummytest$(EXE_EXT): dummytest.o $(DLIBCRYPTO) | ||
441 | @target=dummytest; $(BUILD_CMD) | ||
442 | |||
443 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
444 | |||
445 | bftest.o: ../e_os.h ../include/openssl/blowfish.h ../include/openssl/e_os2.h | ||
446 | bftest.o: ../include/openssl/opensslconf.h bftest.c | ||
447 | bntest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
448 | bntest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
449 | bntest.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
450 | bntest.o: ../include/openssl/cast.h ../include/openssl/crypto.h | ||
451 | bntest.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
452 | bntest.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
453 | bntest.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
454 | bntest.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
455 | bntest.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
456 | bntest.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
457 | bntest.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
458 | bntest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
459 | bntest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
460 | bntest.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | ||
461 | bntest.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
462 | bntest.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
463 | bntest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
464 | bntest.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
465 | bntest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
466 | bntest.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
467 | bntest.o: ../include/openssl/x509_vfy.h bntest.c | ||
468 | casttest.o: ../e_os.h ../include/openssl/cast.h ../include/openssl/e_os2.h | ||
469 | casttest.o: ../include/openssl/opensslconf.h casttest.c | ||
470 | destest.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
471 | destest.o: ../include/openssl/des_old.h ../include/openssl/e_os2.h | ||
472 | destest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
473 | destest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
474 | destest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
475 | destest.o: ../include/openssl/ui_compat.h destest.c | ||
476 | dhtest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h | ||
477 | dhtest.o: ../include/openssl/crypto.h ../include/openssl/dh.h | ||
478 | dhtest.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
479 | dhtest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h | ||
480 | dhtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
481 | dhtest.o: ../include/openssl/rand.h ../include/openssl/safestack.h | ||
482 | dhtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h dhtest.c | ||
483 | dsatest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h | ||
484 | dsatest.o: ../include/openssl/crypto.h ../include/openssl/dh.h | ||
485 | dsatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
486 | dsatest.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
487 | dsatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
488 | dsatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
489 | dsatest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
490 | dsatest.o: ../include/openssl/symhacks.h dsatest.c | ||
491 | ectest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h | ||
492 | ectest.o: ../include/openssl/bn.h ../include/openssl/crypto.h | ||
493 | ectest.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
494 | ectest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h | ||
495 | ectest.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
496 | ectest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h | ||
497 | ectest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
498 | ectest.o: ../include/openssl/rand.h ../include/openssl/rsa.h | ||
499 | ectest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
500 | ectest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h ectest.c | ||
501 | enginetest.o: ../include/openssl/asn1.h ../include/openssl/bio.h | ||
502 | enginetest.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
503 | enginetest.o: ../include/openssl/crypto.h ../include/openssl/dh.h | ||
504 | enginetest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
505 | enginetest.o: ../include/openssl/engine.h ../include/openssl/err.h | ||
506 | enginetest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h | ||
507 | enginetest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
508 | enginetest.o: ../include/openssl/rand.h ../include/openssl/rsa.h | ||
509 | enginetest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
510 | enginetest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
511 | enginetest.o: enginetest.c | ||
512 | evp_test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
513 | evp_test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
514 | evp_test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
515 | evp_test.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
516 | evp_test.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
517 | evp_test.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
518 | evp_test.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
519 | evp_test.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
520 | evp_test.o: ../include/openssl/idea.h ../include/openssl/lhash.h | ||
521 | evp_test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
522 | evp_test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
523 | evp_test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
524 | evp_test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
525 | evp_test.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
526 | evp_test.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
527 | evp_test.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
528 | evp_test.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
529 | evp_test.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
530 | evp_test.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
531 | evp_test.o: ../include/openssl/ui_compat.h evp_test.c | ||
532 | exptest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h | ||
533 | exptest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
534 | exptest.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
535 | exptest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
536 | exptest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
537 | exptest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
538 | exptest.o: ../include/openssl/symhacks.h exptest.c | ||
539 | fips_aesavs.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
540 | fips_aesavs.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
541 | fips_aesavs.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
542 | fips_aesavs.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
543 | fips_aesavs.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
544 | fips_aesavs.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
545 | fips_aesavs.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
546 | fips_aesavs.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
547 | fips_aesavs.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
548 | fips_aesavs.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
549 | fips_aesavs.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
550 | fips_aesavs.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
551 | fips_aesavs.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
552 | fips_aesavs.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
553 | fips_aesavs.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
554 | fips_aesavs.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
555 | fips_aesavs.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
556 | fips_aesavs.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
557 | fips_aesavs.o: ../include/openssl/ui_compat.h fips_aesavs.c | ||
558 | fips_desmovs.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
559 | fips_desmovs.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
560 | fips_desmovs.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
561 | fips_desmovs.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
562 | fips_desmovs.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
563 | fips_desmovs.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
564 | fips_desmovs.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
565 | fips_desmovs.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
566 | fips_desmovs.o: ../include/openssl/lhash.h ../include/openssl/md2.h | ||
567 | fips_desmovs.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
568 | fips_desmovs.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
569 | fips_desmovs.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
570 | fips_desmovs.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
571 | fips_desmovs.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
572 | fips_desmovs.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
573 | fips_desmovs.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
574 | fips_desmovs.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
575 | fips_desmovs.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
576 | fips_desmovs.o: ../include/openssl/ui_compat.h fips_desmovs.c | ||
577 | fips_dsatest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h | ||
578 | fips_dsatest.o: ../include/openssl/bn.h ../include/openssl/crypto.h | ||
579 | fips_dsatest.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
580 | fips_dsatest.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
581 | fips_dsatest.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
582 | fips_dsatest.o: ../include/openssl/err.h ../include/openssl/fips.h | ||
583 | fips_dsatest.o: ../include/openssl/fips_rand.h ../include/openssl/lhash.h | ||
584 | fips_dsatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
585 | fips_dsatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
586 | fips_dsatest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
587 | fips_dsatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
588 | fips_dsatest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h | ||
589 | fips_dsatest.o: fips_dsatest.c | ||
590 | fips_randtest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/crypto.h | ||
591 | fips_randtest.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
592 | fips_randtest.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
593 | fips_randtest.o: ../include/openssl/fips_rand.h ../include/openssl/lhash.h | ||
594 | fips_randtest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
595 | fips_randtest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
596 | fips_randtest.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
597 | fips_randtest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
598 | fips_randtest.o: ../include/openssl/ui_compat.h fips_randtest.c | ||
599 | fips_sha1test.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/crypto.h | ||
600 | fips_sha1test.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
601 | fips_sha1test.o: ../include/openssl/fips.h ../include/openssl/lhash.h | ||
602 | fips_sha1test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
603 | fips_sha1test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
604 | fips_sha1test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
605 | fips_sha1test.o: fips_sha1test.c | ||
606 | hmactest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
607 | hmactest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
608 | hmactest.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
609 | hmactest.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
610 | hmactest.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
611 | hmactest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
612 | hmactest.o: ../include/openssl/evp.h ../include/openssl/hmac.h | ||
613 | hmactest.o: ../include/openssl/idea.h ../include/openssl/md2.h | ||
614 | hmactest.o: ../include/openssl/md4.h ../include/openssl/md5.h | ||
615 | hmactest.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h | ||
616 | hmactest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | ||
617 | hmactest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
618 | hmactest.o: ../include/openssl/rc2.h ../include/openssl/rc4.h | ||
619 | hmactest.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h | ||
620 | hmactest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | ||
621 | hmactest.o: ../include/openssl/sha.h ../include/openssl/stack.h | ||
622 | hmactest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h | ||
623 | hmactest.o: ../include/openssl/ui_compat.h hmactest.c | ||
624 | ideatest.o: ../e_os.h ../include/openssl/e_os2.h ../include/openssl/idea.h | ||
625 | ideatest.o: ../include/openssl/opensslconf.h ideatest.c | ||
626 | md2test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
627 | md2test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
628 | md2test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
629 | md2test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
630 | md2test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
631 | md2test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
632 | md2test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
633 | md2test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
634 | md2test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
635 | md2test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
636 | md2test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
637 | md2test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
638 | md2test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
639 | md2test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
640 | md2test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
641 | md2test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
642 | md2test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h md2test.c | ||
643 | md4test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
644 | md4test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
645 | md4test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
646 | md4test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
647 | md4test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
648 | md4test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
649 | md4test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
650 | md4test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
651 | md4test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
652 | md4test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
653 | md4test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
654 | md4test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
655 | md4test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
656 | md4test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
657 | md4test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
658 | md4test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
659 | md4test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h md4test.c | ||
660 | md5test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
661 | md5test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
662 | md5test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
663 | md5test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
664 | md5test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
665 | md5test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
666 | md5test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
667 | md5test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
668 | md5test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
669 | md5test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
670 | md5test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
671 | md5test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
672 | md5test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
673 | md5test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
674 | md5test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
675 | md5test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
676 | md5test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h md5test.c | ||
677 | mdc2test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
678 | mdc2test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
679 | mdc2test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
680 | mdc2test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
681 | mdc2test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
682 | mdc2test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
683 | mdc2test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
684 | mdc2test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
685 | mdc2test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
686 | mdc2test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
687 | mdc2test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
688 | mdc2test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
689 | mdc2test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
690 | mdc2test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
691 | mdc2test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
692 | mdc2test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
693 | mdc2test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h mdc2test.c | ||
694 | randtest.o: ../e_os.h ../include/openssl/e_os2.h | ||
695 | randtest.o: ../include/openssl/opensslconf.h ../include/openssl/ossl_typ.h | ||
696 | randtest.o: ../include/openssl/rand.h randtest.c | ||
697 | rc2test.o: ../e_os.h ../include/openssl/e_os2.h | ||
698 | rc2test.o: ../include/openssl/opensslconf.h ../include/openssl/rc2.h rc2test.c | ||
699 | rc4test.o: ../e_os.h ../include/openssl/e_os2.h | ||
700 | rc4test.o: ../include/openssl/opensslconf.h ../include/openssl/rc4.h rc4test.c | ||
701 | rc5test.o: ../e_os.h ../include/openssl/e_os2.h | ||
702 | rc5test.o: ../include/openssl/opensslconf.h ../include/openssl/rc5.h rc5test.c | ||
703 | rmdtest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
704 | rmdtest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
705 | rmdtest.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
706 | rmdtest.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
707 | rmdtest.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
708 | rmdtest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
709 | rmdtest.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
710 | rmdtest.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
711 | rmdtest.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
712 | rmdtest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
713 | rmdtest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
714 | rmdtest.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
715 | rmdtest.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
716 | rmdtest.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
717 | rmdtest.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
718 | rmdtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
719 | rmdtest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h rmdtest.c | ||
720 | rsa_test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h | ||
721 | rsa_test.o: ../include/openssl/bn.h ../include/openssl/crypto.h | ||
722 | rsa_test.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
723 | rsa_test.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h | ||
724 | rsa_test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | ||
725 | rsa_test.o: ../include/openssl/rand.h ../include/openssl/rsa.h | ||
726 | rsa_test.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
727 | rsa_test.o: ../include/openssl/symhacks.h rsa_test.c | ||
728 | sha1test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
729 | sha1test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
730 | sha1test.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
731 | sha1test.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
732 | sha1test.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
733 | sha1test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
734 | sha1test.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
735 | sha1test.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
736 | sha1test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
737 | sha1test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
738 | sha1test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
739 | sha1test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
740 | sha1test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
741 | sha1test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
742 | sha1test.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
743 | sha1test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
744 | sha1test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h sha1test.c | ||
745 | shatest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
746 | shatest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
747 | shatest.o: ../include/openssl/bn.h ../include/openssl/cast.h | ||
748 | shatest.o: ../include/openssl/crypto.h ../include/openssl/des.h | ||
749 | shatest.o: ../include/openssl/des_old.h ../include/openssl/dh.h | ||
750 | shatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h | ||
751 | shatest.o: ../include/openssl/evp.h ../include/openssl/idea.h | ||
752 | shatest.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
753 | shatest.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
754 | shatest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
755 | shatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
756 | shatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h | ||
757 | shatest.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
758 | shatest.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
759 | shatest.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
760 | shatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
761 | shatest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h shatest.c | ||
762 | ssltest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h | ||
763 | ssltest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h | ||
764 | ssltest.o: ../include/openssl/bn.h ../include/openssl/buffer.h | ||
765 | ssltest.o: ../include/openssl/cast.h ../include/openssl/comp.h | ||
766 | ssltest.o: ../include/openssl/conf.h ../include/openssl/crypto.h | ||
767 | ssltest.o: ../include/openssl/des.h ../include/openssl/des_old.h | ||
768 | ssltest.o: ../include/openssl/dh.h ../include/openssl/dsa.h | ||
769 | ssltest.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | ||
770 | ssltest.o: ../include/openssl/err.h ../include/openssl/evp.h | ||
771 | ssltest.o: ../include/openssl/fips.h ../include/openssl/idea.h | ||
772 | ssltest.o: ../include/openssl/kssl.h ../include/openssl/lhash.h | ||
773 | ssltest.o: ../include/openssl/md2.h ../include/openssl/md4.h | ||
774 | ssltest.o: ../include/openssl/md5.h ../include/openssl/mdc2.h | ||
775 | ssltest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h | ||
776 | ssltest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
777 | ssltest.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | ||
778 | ssltest.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | ||
779 | ssltest.o: ../include/openssl/rand.h ../include/openssl/rc2.h | ||
780 | ssltest.o: ../include/openssl/rc4.h ../include/openssl/rc5.h | ||
781 | ssltest.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h | ||
782 | ssltest.o: ../include/openssl/safestack.h ../include/openssl/sha.h | ||
783 | ssltest.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h | ||
784 | ssltest.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h | ||
785 | ssltest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h | ||
786 | ssltest.o: ../include/openssl/tls1.h ../include/openssl/ui.h | ||
787 | ssltest.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h | ||
788 | ssltest.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h ssltest.c | ||
diff --git a/src/lib/libssl/test/evptests.txt b/src/lib/libssl/test/evptests.txt index 80bd9c7765..dfe91a5bc0 100644 --- a/src/lib/libssl/test/evptests.txt +++ b/src/lib/libssl/test/evptests.txt | |||
@@ -92,7 +92,102 @@ AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:000 | |||
92 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:F58C4C04D6E5F1BA779EABFB5F7BFBD6:AE2D8A571E03AC9C9EB76FAC45AF8E51:9CFC4E967EDB808D679F777BC6702C7D | 92 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:F58C4C04D6E5F1BA779EABFB5F7BFBD6:AE2D8A571E03AC9C9EB76FAC45AF8E51:9CFC4E967EDB808D679F777BC6702C7D |
93 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:9CFC4E967EDB808D679F777BC6702C7D:30C81C46A35CE411E5FBC1191A0A52EF:39F23369A9D9BACFA530E26304231461 | 93 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:9CFC4E967EDB808D679F777BC6702C7D:30C81C46A35CE411E5FBC1191A0A52EF:39F23369A9D9BACFA530E26304231461 |
94 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:39F23369A9D9BACFA530E26304231461:F69F2445DF4F9B17AD2B417BE66C3710:B2EB05E2C39BE9FCDA6C19078C6A9D1B | 94 | AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:39F23369A9D9BACFA530E26304231461:F69F2445DF4F9B17AD2B417BE66C3710:B2EB05E2C39BE9FCDA6C19078C6A9D1B |
95 | # We don't support CFB{1,8}-AESxxx.{En,De}crypt | 95 | |
96 | # CFB1-AES128.Encrypt | ||
97 | |||
98 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:00:00:1 | ||
99 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00020406080a0c0e10121416181a1c1e:80:80:1 | ||
100 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0004080c1014181c2024282c3034383d:80:80:1 | ||
101 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0008101820283038404850586068707b:00:00:1 | ||
102 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00102030405060708090a0b0c0d0e0f6:80:80:1 | ||
103 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0020406080a0c0e10121416181a1c1ed:00:00:1 | ||
104 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:004080c1014181c2024282c3034383da:80:00:1 | ||
105 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:008101820283038404850586068707b4:80:00:1 | ||
106 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f68:80:80:1 | ||
107 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:020406080a0c0e10121416181a1c1ed1:80:00:1 | ||
108 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:04080c1014181c2024282c3034383da2:00:80:1 | ||
109 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:08101820283038404850586068707b45:00:80:1 | ||
110 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:102030405060708090a0b0c0d0e0f68b:00:00:1 | ||
111 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:20406080a0c0e10121416181a1c1ed16:00:00:1 | ||
112 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:4080c1014181c2024282c3034383da2c:00:80:1 | ||
113 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:8101820283038404850586068707b459:80:80:1 | ||
114 | # all of the above packed into one... | ||
115 | # in: 0110 1011 1100 0001 = 6bc1 | ||
116 | # out: 0110 1000 1011 0011 = 68b3 | ||
117 | AES-128-CFB1*8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1:68b3:1 | ||
118 | |||
119 | # CFB1-AES128.Decrypt | ||
120 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:00:00:0 | ||
121 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00020406080a0c0e10121416181a1c1e:80:80:0 | ||
122 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0004080c1014181c2024282c3034383d:80:80:0 | ||
123 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0008101820283038404850586068707b:00:00:0 | ||
124 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00102030405060708090a0b0c0d0e0f6:80:80:0 | ||
125 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0020406080a0c0e10121416181a1c1ed:00:00:0 | ||
126 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:004080c1014181c2024282c3034383da:80:00:0 | ||
127 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:008101820283038404850586068707b4:80:00:0 | ||
128 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f68:80:80:0 | ||
129 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:020406080a0c0e10121416181a1c1ed1:80:00:0 | ||
130 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:04080c1014181c2024282c3034383da2:00:80:0 | ||
131 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:08101820283038404850586068707b45:00:80:0 | ||
132 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:102030405060708090a0b0c0d0e0f68b:00:00:0 | ||
133 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:20406080a0c0e10121416181a1c1ed16:00:00:0 | ||
134 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:4080c1014181c2024282c3034383da2c:00:80:0 | ||
135 | AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:8101820283038404850586068707b459:80:80:0 | ||
136 | # all of the above packed into one... | ||
137 | # in: 0110 1000 1011 0011 = 68b3 | ||
138 | # out: 0110 1011 1100 0001 = 6bc1 | ||
139 | AES-128-CFB1*8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1:68b3:0 | ||
140 | |||
141 | # TODO: CFB1-AES192 and 256 | ||
142 | |||
143 | # CFB8-AES128.Encrypt | ||
144 | |||
145 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6b:3b:1 | ||
146 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f3b:c1:79:1 | ||
147 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:02030405060708090a0b0c0d0e0f3b79:be:42:1 | ||
148 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:030405060708090a0b0c0d0e0f3b7942:e2:4c:1 | ||
149 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0405060708090a0b0c0d0e0f3b79424c:2e:9c:1 | ||
150 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:05060708090a0b0c0d0e0f3b79424c9c:40:0d:1 | ||
151 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:060708090a0b0c0d0e0f3b79424c9c0d:9f:d4:1 | ||
152 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0708090a0b0c0d0e0f3b79424c9c0dd4:96:36:1 | ||
153 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:08090a0b0c0d0e0f3b79424c9c0dd436:e9:ba:1 | ||
154 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:090a0b0c0d0e0f3b79424c9c0dd436ba:3d:ce:1 | ||
155 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0a0b0c0d0e0f3b79424c9c0dd436bace:7e:9e:1 | ||
156 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0b0c0d0e0f3b79424c9c0dd436bace9e:11:0e:1 | ||
157 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0c0d0e0f3b79424c9c0dd436bace9e0e:73:d4:1 | ||
158 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0d0e0f3b79424c9c0dd436bace9e0ed4:93:58:1 | ||
159 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0e0f3b79424c9c0dd436bace9e0ed458:17:6a:1 | ||
160 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0f3b79424c9c0dd436bace9e0ed4586a:2a:4f:1 | ||
161 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:3b79424c9c0dd436bace9e0ed4586a4f:ae:32:1 | ||
162 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:79424c9c0dd436bace9e0ed4586a4f32:2d:b9:1 | ||
163 | # all of the above packed into one | ||
164 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1bee22e409f96e93d7e117393172aae2d:3b79424c9c0dd436bace9e0ed4586a4f32b9:1 | ||
165 | |||
166 | # CFB8-AES128.Decrypt | ||
167 | |||
168 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6b:3b:0 | ||
169 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f3b:c1:79:0 | ||
170 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:02030405060708090a0b0c0d0e0f3b79:be:42:0 | ||
171 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:030405060708090a0b0c0d0e0f3b7942:e2:4c:0 | ||
172 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0405060708090a0b0c0d0e0f3b79424c:2e:9c:0 | ||
173 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:05060708090a0b0c0d0e0f3b79424c9c:40:0d:0 | ||
174 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:060708090a0b0c0d0e0f3b79424c9c0d:9f:d4:0 | ||
175 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0708090a0b0c0d0e0f3b79424c9c0dd4:96:36:0 | ||
176 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:08090a0b0c0d0e0f3b79424c9c0dd436:e9:ba:0 | ||
177 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:090a0b0c0d0e0f3b79424c9c0dd436ba:3d:ce:0 | ||
178 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0a0b0c0d0e0f3b79424c9c0dd436bace:7e:9e:0 | ||
179 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0b0c0d0e0f3b79424c9c0dd436bace9e:11:0e:0 | ||
180 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0c0d0e0f3b79424c9c0dd436bace9e0e:73:d4:0 | ||
181 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0d0e0f3b79424c9c0dd436bace9e0ed4:93:58:0 | ||
182 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0e0f3b79424c9c0dd436bace9e0ed458:17:6a:0 | ||
183 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0f3b79424c9c0dd436bace9e0ed4586a:2a:4f:0 | ||
184 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:3b79424c9c0dd436bace9e0ed4586a4f:ae:32:0 | ||
185 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:79424c9c0dd436bace9e0ed4586a4f32:2d:b9:0 | ||
186 | # all of the above packed into one | ||
187 | AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1bee22e409f96e93d7e117393172aae2d:3b79424c9c0dd436bace9e0ed4586a4f32b9:0 | ||
188 | |||
189 | # TODO: 192 and 256 bit keys | ||
190 | |||
96 | # For all CFB128 encrypts and decrypts, the transformed sequence is | 191 | # For all CFB128 encrypts and decrypts, the transformed sequence is |
97 | # AES-bits-CFB:key:IV/ciphertext':plaintext:ciphertext:encdec | 192 | # AES-bits-CFB:key:IV/ciphertext':plaintext:ciphertext:encdec |
98 | # CFB128-AES128.Encrypt | 193 | # CFB128-AES128.Encrypt |
@@ -174,6 +269,16 @@ DESX-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363 | |||
174 | # DES EDE3 CBC tests (from destest) | 269 | # DES EDE3 CBC tests (from destest) |
175 | DES-EDE3-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363534333231204E6F77206973207468652074696D6520666F722000000000:3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675 | 270 | DES-EDE3-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363534333231204E6F77206973207468652074696D6520666F722000000000:3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675 |
176 | 271 | ||
272 | # DES CFB1 from FIPS 81 | ||
273 | # plaintext: 0100 1110 0110 1111 0111 0111 = 4e6f77 | ||
274 | # ciphertext: 1100 1101 0001 1110 1100 1001 = cd1ec9 | ||
275 | |||
276 | DES-CFB1*8:0123456789abcdef:1234567890abcdef:4e6f77:cd1ec9 | ||
277 | |||
278 | # DES CFB8 from FIPS 81 | ||
279 | |||
280 | DES-CFB8:0123456789abcdef:1234567890abcdef:4e6f7720697320746865:f31fda07011462ee187f | ||
281 | |||
177 | # RC4 tests (from rc4test) | 282 | # RC4 tests (from rc4test) |
178 | RC4:0123456789abcdef0123456789abcdef::0123456789abcdef:75b7878099e0c596 | 283 | RC4:0123456789abcdef0123456789abcdef::0123456789abcdef:75b7878099e0c596 |
179 | RC4:0123456789abcdef0123456789abcdef::0000000000000000:7494c2e7104b0879 | 284 | RC4:0123456789abcdef0123456789abcdef::0000000000000000:7494c2e7104b0879 |
diff --git a/src/lib/libssl/test/maketests.com b/src/lib/libssl/test/maketests.com index 7c44e4545a..dfbfef7b1b 100644 --- a/src/lib/libssl/test/maketests.com +++ b/src/lib/libssl/test/maketests.com | |||
@@ -615,7 +615,7 @@ $ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" - | |||
615 | THEN CC = "CC/DECC" | 615 | THEN CC = "CC/DECC" |
616 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + - | 616 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + - |
617 | "/NOLIST/PREFIX=ALL" + - | 617 | "/NOLIST/PREFIX=ALL" + - |
618 | "/INCLUDE=(SYS$DISK:[-])" + CCEXTRAFLAGS | 618 | "/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CRYPTO])" + CCEXTRAFLAGS |
619 | $! | 619 | $! |
620 | $! Define The Linker Options File Name. | 620 | $! Define The Linker Options File Name. |
621 | $! | 621 | $! |
@@ -648,7 +648,7 @@ $ EXIT | |||
648 | $ ENDIF | 648 | $ ENDIF |
649 | $ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC" | 649 | $ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC" |
650 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - | 650 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - |
651 | "/INCLUDE=(SYS$DISK:[-])" + CCEXTRAFLAGS | 651 | "/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CRYPTO])" + CCEXTRAFLAGS |
652 | $ CCDEFS = CCDEFS + ",""VAXC""" | 652 | $ CCDEFS = CCDEFS + ",""VAXC""" |
653 | $! | 653 | $! |
654 | $! Define <sys> As SYS$COMMON:[SYSLIB] | 654 | $! Define <sys> As SYS$COMMON:[SYSLIB] |
@@ -679,7 +679,7 @@ $! | |||
679 | $! Use GNU C... | 679 | $! Use GNU C... |
680 | $! | 680 | $! |
681 | $ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - | 681 | $ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - |
682 | "/INCLUDE=(SYS$DISK:[-])" + CCEXTRAFLAGS | 682 | "/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CRYPTO])" + CCEXTRAFLAGS |
683 | $! | 683 | $! |
684 | $! Define The Linker Options File Name. | 684 | $! Define The Linker Options File Name. |
685 | $! | 685 | $! |
diff --git a/src/lib/libssl/test/testenc.com b/src/lib/libssl/test/testenc.com index c24fa388c0..5e6f521f9d 100644 --- a/src/lib/libssl/test/testenc.com +++ b/src/lib/libssl/test/testenc.com | |||
@@ -4,7 +4,7 @@ $ __arch := VAX | |||
4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP | 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP |
5 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] | 5 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] |
6 | $ | 6 | $ |
7 | $ testsrc := makefile.ssl | 7 | $ testsrc := makefile. |
8 | $ test := p.txt | 8 | $ test := p.txt |
9 | $ cmd := mcr 'exe_dir'openssl | 9 | $ cmd := mcr 'exe_dir'openssl |
10 | $ | 10 | $ |
diff --git a/src/lib/libssl/test/testfipsssl b/src/lib/libssl/test/testfipsssl new file mode 100644 index 0000000000..c4836edc25 --- /dev/null +++ b/src/lib/libssl/test/testfipsssl | |||
@@ -0,0 +1,113 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ "$1" = "" ]; then | ||
4 | key=../apps/server.pem | ||
5 | else | ||
6 | key="$1" | ||
7 | fi | ||
8 | if [ "$2" = "" ]; then | ||
9 | cert=../apps/server.pem | ||
10 | else | ||
11 | cert="$2" | ||
12 | fi | ||
13 | |||
14 | ciphers="DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA:EDH-RSA-DES-CBC3-SHA:EDH-DSS-DES-CBC3-SHA:DES-CBC3-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:AES128-SHA:EXP1024-DHE-DSS-DES-CBC-SHA:EXP1024-DES-CBC-SHA:EDH-RSA-DES-CBC-SHA:EDH-DSS-DES-CBC-SHA:DES-CBC-SHA:EXP-EDH-RSA-DES-CBC-SHA:EXP-EDH-DSS-DES-CBC-SHA:EXP-DES-CBC-SHA" | ||
15 | |||
16 | ssltest="../util/shlib_wrap.sh ./ssltest -F -key $key -cert $cert -c_key $key -c_cert $cert -cipher $ciphers" | ||
17 | |||
18 | if ../util/shlib_wrap.sh ../apps/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key' >/dev/null; then | ||
19 | dsa_cert=YES | ||
20 | else | ||
21 | dsa_cert=NO | ||
22 | fi | ||
23 | |||
24 | if [ "$3" = "" ]; then | ||
25 | CA="-CApath ../certs" | ||
26 | else | ||
27 | CA="-CAfile $3" | ||
28 | fi | ||
29 | |||
30 | if [ "$4" = "" ]; then | ||
31 | extra="" | ||
32 | else | ||
33 | extra="$4" | ||
34 | fi | ||
35 | |||
36 | ############################################################################# | ||
37 | |||
38 | echo test ssl3 is forbidden in FIPS mode | ||
39 | $ssltest -ssl3 $extra && exit 1 | ||
40 | |||
41 | echo test ssl2 is forbidden in FIPS mode | ||
42 | $ssltest -ssl2 $extra && exit 1 | ||
43 | |||
44 | echo test tls1 | ||
45 | $ssltest -tls1 $extra || exit 1 | ||
46 | |||
47 | echo test tls1 with server authentication | ||
48 | $ssltest -tls1 -server_auth $CA $extra || exit 1 | ||
49 | |||
50 | echo test tls1 with client authentication | ||
51 | $ssltest -tls1 -client_auth $CA $extra || exit 1 | ||
52 | |||
53 | echo test tls1 with both client and server authentication | ||
54 | $ssltest -tls1 -server_auth -client_auth $CA $extra || exit 1 | ||
55 | |||
56 | echo test tls1 via BIO pair | ||
57 | $ssltest -bio_pair -tls1 $extra || exit 1 | ||
58 | |||
59 | echo test tls1 with server authentication via BIO pair | ||
60 | $ssltest -bio_pair -tls1 -server_auth $CA $extra || exit 1 | ||
61 | |||
62 | echo test tls1 with client authentication via BIO pair | ||
63 | $ssltest -bio_pair -tls1 -client_auth $CA $extra || exit 1 | ||
64 | |||
65 | echo test tls1 with both client and server authentication via BIO pair | ||
66 | $ssltest -bio_pair -tls1 -server_auth -client_auth $CA $extra || exit 1 | ||
67 | |||
68 | # note that all the below actually choose TLS... | ||
69 | |||
70 | if [ $dsa_cert = NO ]; then | ||
71 | echo test sslv2/sslv3 w/o DHE via BIO pair | ||
72 | $ssltest -bio_pair -no_dhe $extra || exit 1 | ||
73 | fi | ||
74 | |||
75 | echo test sslv2/sslv3 with 1024bit DHE via BIO pair | ||
76 | $ssltest -bio_pair -dhe1024dsa -v $extra || exit 1 | ||
77 | |||
78 | echo test sslv2/sslv3 with server authentication | ||
79 | $ssltest -bio_pair -server_auth $CA $extra || exit 1 | ||
80 | |||
81 | echo test sslv2/sslv3 with client authentication via BIO pair | ||
82 | $ssltest -bio_pair -client_auth $CA $extra || exit 1 | ||
83 | |||
84 | echo test sslv2/sslv3 with both client and server authentication via BIO pair | ||
85 | $ssltest -bio_pair -server_auth -client_auth $CA $extra || exit 1 | ||
86 | |||
87 | echo test sslv2/sslv3 with both client and server authentication via BIO pair and app verify | ||
88 | $ssltest -bio_pair -server_auth -client_auth -app_verify $CA $extra || exit 1 | ||
89 | |||
90 | ############################################################################# | ||
91 | |||
92 | if ../util/shlib_wrap.sh ../apps/openssl no-dh; then | ||
93 | echo skipping anonymous DH tests | ||
94 | else | ||
95 | echo test tls1 with 1024bit anonymous DH, multiple handshakes | ||
96 | $ssltest -v -bio_pair -tls1 -cipher ADH -dhe1024dsa -num 10 -f -time $extra || exit 1 | ||
97 | fi | ||
98 | |||
99 | if ../util/shlib_wrap.sh ../apps/openssl no-rsa; then | ||
100 | echo skipping RSA tests | ||
101 | else | ||
102 | echo test tls1 with 1024bit RSA, no DHE, multiple handshakes | ||
103 | ../util/shlib_wrap.sh ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -no_dhe -num 10 -f -time $extra || exit 1 | ||
104 | |||
105 | if ../util/shlib_wrap.sh ../apps/openssl no-dh; then | ||
106 | echo skipping RSA+DHE tests | ||
107 | else | ||
108 | echo test tls1 with 1024bit RSA, 1024bit DHE, multiple handshakes | ||
109 | ../util/shlib_wrap.sh ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -dhe1024dsa -num 10 -f -time $extra || exit 1 | ||
110 | fi | ||
111 | fi | ||
112 | |||
113 | exit 0 | ||
diff --git a/src/lib/libssl/test/tverify.com b/src/lib/libssl/test/tverify.com index f97e71478f..2060184d1e 100644 --- a/src/lib/libssl/test/tverify.com +++ b/src/lib/libssl/test/tverify.com | |||
@@ -15,12 +15,15 @@ $ f = f$search("[-.certs]*.pem") | |||
15 | $ if f .nes. "" .and. f .nes. old_f | 15 | $ if f .nes. "" .and. f .nes. old_f |
16 | $ then | 16 | $ then |
17 | $ certs = certs + " [-.certs]" + f$parse(f,,,"NAME") + ".pem" | 17 | $ certs = certs + " [-.certs]" + f$parse(f,,,"NAME") + ".pem" |
18 | $ if f$length(certs) .lt. 180 then goto loop_certs2 | ||
19 | $ c := YES | 18 | $ c := YES |
19 | $ if f$length(certs) .lt. 180 then goto loop_certs2 | ||
20 | $ endif | 20 | $ endif |
21 | $ certs = certs - " " | 21 | $ certs = certs - " " |
22 | $ | 22 | $ |
23 | $ mcr 'exe_dir'openssl verify "-CAfile" certs.tmp 'certs' | 23 | $ if c |
24 | $ if c then goto loop_certs | 24 | $ then |
25 | $ mcr 'exe_dir'openssl verify "-CAfile" certs.tmp 'certs' | ||
26 | $ goto loop_certs | ||
27 | $ endif | ||
25 | $ | 28 | $ |
26 | $ delete certs.tmp;* | 29 | $ delete certs.tmp;* |