summaryrefslogtreecommitdiff
path: root/src/lib/libssl/test
diff options
context:
space:
mode:
authordjm <>2005-04-29 05:37:32 +0000
committerdjm <>2005-04-29 05:37:32 +0000
commit588543a0946f1dbf0f1dd5135f8f6447486dc183 (patch)
treef74e14f98abfec33221f0f2e15cc88a34a3df7e5 /src/lib/libssl/test
parent00b426069b0dfa8f0d9b87308646e9684f45c515 (diff)
downloadopenbsd-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/Makefile788
-rw-r--r--src/lib/libssl/test/evptests.txt107
-rw-r--r--src/lib/libssl/test/maketests.com6
-rw-r--r--src/lib/libssl/test/testenc.com2
-rw-r--r--src/lib/libssl/test/testfipsssl113
-rw-r--r--src/lib/libssl/test/tverify.com9
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
5DIR= test
6TOP= ..
7CC= cc
8INCLUDES= -I$(TOP) -I../include $(KRB5_INCLUDES)
9CFLAG= -g
10INSTALL_PREFIX=
11OPENSSLDIR= /usr/local/ssl
12INSTALLTOP= /usr/local/ssl
13MAKEFILE= Makefile
14MAKEDEPPROG= makedepend
15MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16PERL= perl
17# KRB5 stuff
18KRB5_INCLUDES=
19LIBKRB5=
20
21PEX_LIBS=
22EX_LIBS= #-lnsl -lsocket
23
24CFLAGS= $(INCLUDES) $(CFLAG)
25
26GENERAL=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
31DLIBCRYPTO= ../libcrypto.a
32DLIBSSL= ../libssl.a
33LIBCRYPTO= -L.. -lcrypto
34LIBSSL= -L.. -lssl
35
36BNTEST= bntest
37ECTEST= ectest
38EXPTEST= exptest
39IDEATEST= ideatest
40SHATEST= shatest
41SHA1TEST= sha1test
42FIPS_SHA1TEST= fips_sha1test
43MDC2TEST= mdc2test
44RMDTEST= rmdtest
45MD2TEST= md2test
46MD4TEST= md4test
47MD5TEST= md5test
48HMACTEST= hmactest
49RC2TEST= rc2test
50RC4TEST= rc4test
51RC5TEST= rc5test
52BFTEST= bftest
53CASTTEST= casttest
54DESTEST= destest
55FIPS_DESTEST= fips_desmovs
56RANDTEST= randtest
57FIPS_RANDTEST= fips_randtest
58DHTEST= dhtest
59DSATEST= dsatest
60FIPS_DSATEST= fips_dsatest
61METHTEST= methtest
62SSLTEST= ssltest
63RSATEST= rsa_test
64ENGINETEST= enginetest
65EVPTEST= evp_test
66FIPS_AESTEST= fips_aesavs
67
68TESTS= alltests
69
70EXE= $(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
79OBJ= $(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
86SRC= $(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
94EXHEADER=
95HEADER= $(EXHEADER)
96
97ALL= $(GENERAL) $(SRC) $(HEADER)
98
99top:
100 (cd ..; $(MAKE) DIRS=$(DIR) TESTS=$(TESTS) all)
101
102all: exe
103
104exe: $(EXE) dummytest$(EXE_EXT)
105
106files:
107 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
108
109links:
110
111generate: $(SRC)
112$(SRC):
113 @sh $(TOP)/util/point.sh dummytest.c $@
114
115errors:
116
117install:
118
119tags:
120 ctags $(SRC)
121
122tests: exe apps $(TESTS)
123
124apps:
125 @(cd ..; $(MAKE) DIRS=apps all)
126
127alltests: \
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
137fips_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
143test_evp:
144 ../util/shlib_wrap.sh ./$(EVPTEST) evptests.txt
145
146test_des:
147 ../util/shlib_wrap.sh ./$(DESTEST)
148
149test_idea:
150 ../util/shlib_wrap.sh ./$(IDEATEST)
151
152test_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
159test_mdc2:
160 ../util/shlib_wrap.sh ./$(MDC2TEST)
161
162test_md5:
163 ../util/shlib_wrap.sh ./$(MD5TEST)
164
165test_md4:
166 ../util/shlib_wrap.sh ./$(MD4TEST)
167
168test_hmac:
169 ../util/shlib_wrap.sh ./$(HMACTEST)
170
171test_md2:
172 ../util/shlib_wrap.sh ./$(MD2TEST)
173
174test_rmd:
175 ../util/shlib_wrap.sh ./$(RMDTEST)
176
177test_bf:
178 ../util/shlib_wrap.sh ./$(BFTEST)
179
180test_cast:
181 ../util/shlib_wrap.sh ./$(CASTTEST)
182
183test_rc2:
184 ../util/shlib_wrap.sh ./$(RC2TEST)
185
186test_rc4:
187 ../util/shlib_wrap.sh ./$(RC4TEST)
188
189test_rc5:
190 ../util/shlib_wrap.sh ./$(RC5TEST)
191
192test_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
198test_enc:
199 @sh ./testenc
200
201test_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
209test_rsa:
210 @sh ./trsa 2>/dev/null
211 ../util/shlib_wrap.sh ./$(RSATEST)
212
213test_crl:
214 @sh ./tcrl 2>/dev/null
215
216test_sid:
217 @sh ./tsid 2>/dev/null
218
219test_req:
220 @sh ./treq 2>/dev/null
221 @sh ./treq testreq2.pem 2>/dev/null
222
223test_pkcs7:
224 @sh ./tpkcs7 2>/dev/null
225 @sh ./tpkcs7d 2>/dev/null
226
227test_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
236test_ec:
237 @echo 'test elliptic curves'
238 ../util/shlib_wrap.sh ./$(ECTEST)
239
240test_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
245test_dh:
246 @echo "Generate a set of DH parameters"
247 ../util/shlib_wrap.sh ./$(DHTEST)
248
249test_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
258test_gen:
259 @echo "Generate and verify a certificate request"
260 @sh ./testgen
261
262test_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
269test_engine:
270 @echo "Manipulate the ENGINE structures"
271 ../util/shlib_wrap.sh ./$(ENGINETEST)
272
273test_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
283test_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
291test_aes: #$(AESTEST)
292# @echo "test Rijndael"
293# ../util/shlib_wrap.sh ./$(AESTEST)
294
295lint:
296 lint -DLINT $(INCLUDES) $(SRC)>fluff
297
298depend:
299 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC)
300
301dclean:
302 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
303 mv -f Makefile.new $(MAKEFILE)
304
305clean:
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
314BUILD_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
440dummytest$(EXE_EXT): dummytest.o $(DLIBCRYPTO)
441 @target=dummytest; $(BUILD_CMD)
442
443# DO NOT DELETE THIS LINE -- make depend depends on it.
444
445bftest.o: ../e_os.h ../include/openssl/blowfish.h ../include/openssl/e_os2.h
446bftest.o: ../include/openssl/opensslconf.h bftest.c
447bntest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
448bntest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
449bntest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
450bntest.o: ../include/openssl/cast.h ../include/openssl/crypto.h
451bntest.o: ../include/openssl/des.h ../include/openssl/des_old.h
452bntest.o: ../include/openssl/dh.h ../include/openssl/dsa.h
453bntest.o: ../include/openssl/e_os2.h ../include/openssl/err.h
454bntest.o: ../include/openssl/evp.h ../include/openssl/idea.h
455bntest.o: ../include/openssl/lhash.h ../include/openssl/md2.h
456bntest.o: ../include/openssl/md4.h ../include/openssl/md5.h
457bntest.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
458bntest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
459bntest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
460bntest.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
461bntest.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
462bntest.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
463bntest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
464bntest.o: ../include/openssl/sha.h ../include/openssl/stack.h
465bntest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
466bntest.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
467bntest.o: ../include/openssl/x509_vfy.h bntest.c
468casttest.o: ../e_os.h ../include/openssl/cast.h ../include/openssl/e_os2.h
469casttest.o: ../include/openssl/opensslconf.h casttest.c
470destest.o: ../include/openssl/crypto.h ../include/openssl/des.h
471destest.o: ../include/openssl/des_old.h ../include/openssl/e_os2.h
472destest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
473destest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
474destest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
475destest.o: ../include/openssl/ui_compat.h destest.c
476dhtest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
477dhtest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
478dhtest.o: ../include/openssl/e_os2.h ../include/openssl/err.h
479dhtest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
480dhtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
481dhtest.o: ../include/openssl/rand.h ../include/openssl/safestack.h
482dhtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h dhtest.c
483dsatest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
484dsatest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
485dsatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
486dsatest.o: ../include/openssl/err.h ../include/openssl/lhash.h
487dsatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
488dsatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
489dsatest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
490dsatest.o: ../include/openssl/symhacks.h dsatest.c
491ectest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
492ectest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
493ectest.o: ../include/openssl/dh.h ../include/openssl/dsa.h
494ectest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
495ectest.o: ../include/openssl/engine.h ../include/openssl/err.h
496ectest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
497ectest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
498ectest.o: ../include/openssl/rand.h ../include/openssl/rsa.h
499ectest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
500ectest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h ectest.c
501enginetest.o: ../include/openssl/asn1.h ../include/openssl/bio.h
502enginetest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
503enginetest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
504enginetest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
505enginetest.o: ../include/openssl/engine.h ../include/openssl/err.h
506enginetest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
507enginetest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
508enginetest.o: ../include/openssl/rand.h ../include/openssl/rsa.h
509enginetest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
510enginetest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
511enginetest.o: enginetest.c
512evp_test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
513evp_test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
514evp_test.o: ../include/openssl/bn.h ../include/openssl/cast.h
515evp_test.o: ../include/openssl/conf.h ../include/openssl/crypto.h
516evp_test.o: ../include/openssl/des.h ../include/openssl/des_old.h
517evp_test.o: ../include/openssl/dh.h ../include/openssl/dsa.h
518evp_test.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
519evp_test.o: ../include/openssl/err.h ../include/openssl/evp.h
520evp_test.o: ../include/openssl/idea.h ../include/openssl/lhash.h
521evp_test.o: ../include/openssl/md2.h ../include/openssl/md4.h
522evp_test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
523evp_test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
524evp_test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
525evp_test.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
526evp_test.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
527evp_test.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
528evp_test.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
529evp_test.o: ../include/openssl/sha.h ../include/openssl/stack.h
530evp_test.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
531evp_test.o: ../include/openssl/ui_compat.h evp_test.c
532exptest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
533exptest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
534exptest.o: ../include/openssl/err.h ../include/openssl/lhash.h
535exptest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
536exptest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
537exptest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
538exptest.o: ../include/openssl/symhacks.h exptest.c
539fips_aesavs.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
540fips_aesavs.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
541fips_aesavs.o: ../include/openssl/bn.h ../include/openssl/cast.h
542fips_aesavs.o: ../include/openssl/crypto.h ../include/openssl/des.h
543fips_aesavs.o: ../include/openssl/des_old.h ../include/openssl/dh.h
544fips_aesavs.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
545fips_aesavs.o: ../include/openssl/err.h ../include/openssl/evp.h
546fips_aesavs.o: ../include/openssl/fips.h ../include/openssl/idea.h
547fips_aesavs.o: ../include/openssl/lhash.h ../include/openssl/md2.h
548fips_aesavs.o: ../include/openssl/md4.h ../include/openssl/md5.h
549fips_aesavs.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
550fips_aesavs.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
551fips_aesavs.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
552fips_aesavs.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
553fips_aesavs.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
554fips_aesavs.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
555fips_aesavs.o: ../include/openssl/sha.h ../include/openssl/stack.h
556fips_aesavs.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
557fips_aesavs.o: ../include/openssl/ui_compat.h fips_aesavs.c
558fips_desmovs.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
559fips_desmovs.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
560fips_desmovs.o: ../include/openssl/bn.h ../include/openssl/cast.h
561fips_desmovs.o: ../include/openssl/crypto.h ../include/openssl/des.h
562fips_desmovs.o: ../include/openssl/des_old.h ../include/openssl/dh.h
563fips_desmovs.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
564fips_desmovs.o: ../include/openssl/err.h ../include/openssl/evp.h
565fips_desmovs.o: ../include/openssl/fips.h ../include/openssl/idea.h
566fips_desmovs.o: ../include/openssl/lhash.h ../include/openssl/md2.h
567fips_desmovs.o: ../include/openssl/md4.h ../include/openssl/md5.h
568fips_desmovs.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
569fips_desmovs.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
570fips_desmovs.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
571fips_desmovs.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
572fips_desmovs.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
573fips_desmovs.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
574fips_desmovs.o: ../include/openssl/sha.h ../include/openssl/stack.h
575fips_desmovs.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
576fips_desmovs.o: ../include/openssl/ui_compat.h fips_desmovs.c
577fips_dsatest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
578fips_dsatest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
579fips_dsatest.o: ../include/openssl/des.h ../include/openssl/des_old.h
580fips_dsatest.o: ../include/openssl/dh.h ../include/openssl/dsa.h
581fips_dsatest.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
582fips_dsatest.o: ../include/openssl/err.h ../include/openssl/fips.h
583fips_dsatest.o: ../include/openssl/fips_rand.h ../include/openssl/lhash.h
584fips_dsatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
585fips_dsatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
586fips_dsatest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
587fips_dsatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
588fips_dsatest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
589fips_dsatest.o: fips_dsatest.c
590fips_randtest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/crypto.h
591fips_randtest.o: ../include/openssl/des.h ../include/openssl/des_old.h
592fips_randtest.o: ../include/openssl/e_os2.h ../include/openssl/err.h
593fips_randtest.o: ../include/openssl/fips_rand.h ../include/openssl/lhash.h
594fips_randtest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
595fips_randtest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
596fips_randtest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
597fips_randtest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
598fips_randtest.o: ../include/openssl/ui_compat.h fips_randtest.c
599fips_sha1test.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/crypto.h
600fips_sha1test.o: ../include/openssl/e_os2.h ../include/openssl/err.h
601fips_sha1test.o: ../include/openssl/fips.h ../include/openssl/lhash.h
602fips_sha1test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
603fips_sha1test.o: ../include/openssl/safestack.h ../include/openssl/sha.h
604fips_sha1test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
605fips_sha1test.o: fips_sha1test.c
606hmactest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
607hmactest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
608hmactest.o: ../include/openssl/bn.h ../include/openssl/cast.h
609hmactest.o: ../include/openssl/crypto.h ../include/openssl/des.h
610hmactest.o: ../include/openssl/des_old.h ../include/openssl/dh.h
611hmactest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
612hmactest.o: ../include/openssl/evp.h ../include/openssl/hmac.h
613hmactest.o: ../include/openssl/idea.h ../include/openssl/md2.h
614hmactest.o: ../include/openssl/md4.h ../include/openssl/md5.h
615hmactest.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
616hmactest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
617hmactest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
618hmactest.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
619hmactest.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
620hmactest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
621hmactest.o: ../include/openssl/sha.h ../include/openssl/stack.h
622hmactest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
623hmactest.o: ../include/openssl/ui_compat.h hmactest.c
624ideatest.o: ../e_os.h ../include/openssl/e_os2.h ../include/openssl/idea.h
625ideatest.o: ../include/openssl/opensslconf.h ideatest.c
626md2test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
627md2test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
628md2test.o: ../include/openssl/bn.h ../include/openssl/cast.h
629md2test.o: ../include/openssl/crypto.h ../include/openssl/des.h
630md2test.o: ../include/openssl/des_old.h ../include/openssl/dh.h
631md2test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
632md2test.o: ../include/openssl/evp.h ../include/openssl/idea.h
633md2test.o: ../include/openssl/md2.h ../include/openssl/md4.h
634md2test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
635md2test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
636md2test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
637md2test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h
638md2test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
639md2test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
640md2test.o: ../include/openssl/safestack.h ../include/openssl/sha.h
641md2test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
642md2test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h md2test.c
643md4test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
644md4test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
645md4test.o: ../include/openssl/bn.h ../include/openssl/cast.h
646md4test.o: ../include/openssl/crypto.h ../include/openssl/des.h
647md4test.o: ../include/openssl/des_old.h ../include/openssl/dh.h
648md4test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
649md4test.o: ../include/openssl/evp.h ../include/openssl/idea.h
650md4test.o: ../include/openssl/md2.h ../include/openssl/md4.h
651md4test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
652md4test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
653md4test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
654md4test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h
655md4test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
656md4test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
657md4test.o: ../include/openssl/safestack.h ../include/openssl/sha.h
658md4test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
659md4test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h md4test.c
660md5test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
661md5test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
662md5test.o: ../include/openssl/bn.h ../include/openssl/cast.h
663md5test.o: ../include/openssl/crypto.h ../include/openssl/des.h
664md5test.o: ../include/openssl/des_old.h ../include/openssl/dh.h
665md5test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
666md5test.o: ../include/openssl/evp.h ../include/openssl/idea.h
667md5test.o: ../include/openssl/md2.h ../include/openssl/md4.h
668md5test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
669md5test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
670md5test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
671md5test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h
672md5test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
673md5test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
674md5test.o: ../include/openssl/safestack.h ../include/openssl/sha.h
675md5test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
676md5test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h md5test.c
677mdc2test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
678mdc2test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
679mdc2test.o: ../include/openssl/bn.h ../include/openssl/cast.h
680mdc2test.o: ../include/openssl/crypto.h ../include/openssl/des.h
681mdc2test.o: ../include/openssl/des_old.h ../include/openssl/dh.h
682mdc2test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
683mdc2test.o: ../include/openssl/evp.h ../include/openssl/idea.h
684mdc2test.o: ../include/openssl/md2.h ../include/openssl/md4.h
685mdc2test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
686mdc2test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
687mdc2test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
688mdc2test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h
689mdc2test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
690mdc2test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
691mdc2test.o: ../include/openssl/safestack.h ../include/openssl/sha.h
692mdc2test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
693mdc2test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h mdc2test.c
694randtest.o: ../e_os.h ../include/openssl/e_os2.h
695randtest.o: ../include/openssl/opensslconf.h ../include/openssl/ossl_typ.h
696randtest.o: ../include/openssl/rand.h randtest.c
697rc2test.o: ../e_os.h ../include/openssl/e_os2.h
698rc2test.o: ../include/openssl/opensslconf.h ../include/openssl/rc2.h rc2test.c
699rc4test.o: ../e_os.h ../include/openssl/e_os2.h
700rc4test.o: ../include/openssl/opensslconf.h ../include/openssl/rc4.h rc4test.c
701rc5test.o: ../e_os.h ../include/openssl/e_os2.h
702rc5test.o: ../include/openssl/opensslconf.h ../include/openssl/rc5.h rc5test.c
703rmdtest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
704rmdtest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
705rmdtest.o: ../include/openssl/bn.h ../include/openssl/cast.h
706rmdtest.o: ../include/openssl/crypto.h ../include/openssl/des.h
707rmdtest.o: ../include/openssl/des_old.h ../include/openssl/dh.h
708rmdtest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
709rmdtest.o: ../include/openssl/evp.h ../include/openssl/idea.h
710rmdtest.o: ../include/openssl/md2.h ../include/openssl/md4.h
711rmdtest.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
712rmdtest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
713rmdtest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
714rmdtest.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h
715rmdtest.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
716rmdtest.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
717rmdtest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
718rmdtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
719rmdtest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h rmdtest.c
720rsa_test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
721rsa_test.o: ../include/openssl/bn.h ../include/openssl/crypto.h
722rsa_test.o: ../include/openssl/e_os2.h ../include/openssl/err.h
723rsa_test.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
724rsa_test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
725rsa_test.o: ../include/openssl/rand.h ../include/openssl/rsa.h
726rsa_test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
727rsa_test.o: ../include/openssl/symhacks.h rsa_test.c
728sha1test.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
729sha1test.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
730sha1test.o: ../include/openssl/bn.h ../include/openssl/cast.h
731sha1test.o: ../include/openssl/crypto.h ../include/openssl/des.h
732sha1test.o: ../include/openssl/des_old.h ../include/openssl/dh.h
733sha1test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
734sha1test.o: ../include/openssl/evp.h ../include/openssl/idea.h
735sha1test.o: ../include/openssl/md2.h ../include/openssl/md4.h
736sha1test.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
737sha1test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
738sha1test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
739sha1test.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h
740sha1test.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
741sha1test.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
742sha1test.o: ../include/openssl/safestack.h ../include/openssl/sha.h
743sha1test.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
744sha1test.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h sha1test.c
745shatest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
746shatest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
747shatest.o: ../include/openssl/bn.h ../include/openssl/cast.h
748shatest.o: ../include/openssl/crypto.h ../include/openssl/des.h
749shatest.o: ../include/openssl/des_old.h ../include/openssl/dh.h
750shatest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
751shatest.o: ../include/openssl/evp.h ../include/openssl/idea.h
752shatest.o: ../include/openssl/md2.h ../include/openssl/md4.h
753shatest.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
754shatest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
755shatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
756shatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rc2.h
757shatest.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
758shatest.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
759shatest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
760shatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
761shatest.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h shatest.c
762ssltest.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
763ssltest.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
764ssltest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
765ssltest.o: ../include/openssl/cast.h ../include/openssl/comp.h
766ssltest.o: ../include/openssl/conf.h ../include/openssl/crypto.h
767ssltest.o: ../include/openssl/des.h ../include/openssl/des_old.h
768ssltest.o: ../include/openssl/dh.h ../include/openssl/dsa.h
769ssltest.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
770ssltest.o: ../include/openssl/err.h ../include/openssl/evp.h
771ssltest.o: ../include/openssl/fips.h ../include/openssl/idea.h
772ssltest.o: ../include/openssl/kssl.h ../include/openssl/lhash.h
773ssltest.o: ../include/openssl/md2.h ../include/openssl/md4.h
774ssltest.o: ../include/openssl/md5.h ../include/openssl/mdc2.h
775ssltest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
776ssltest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
777ssltest.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h
778ssltest.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
779ssltest.o: ../include/openssl/rand.h ../include/openssl/rc2.h
780ssltest.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
781ssltest.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
782ssltest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
783ssltest.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h
784ssltest.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h
785ssltest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
786ssltest.o: ../include/openssl/tls1.h ../include/openssl/ui.h
787ssltest.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
788ssltest.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
92AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:F58C4C04D6E5F1BA779EABFB5F7BFBD6:AE2D8A571E03AC9C9EB76FAC45AF8E51:9CFC4E967EDB808D679F777BC6702C7D 92AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:F58C4C04D6E5F1BA779EABFB5F7BFBD6:AE2D8A571E03AC9C9EB76FAC45AF8E51:9CFC4E967EDB808D679F777BC6702C7D
93AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:9CFC4E967EDB808D679F777BC6702C7D:30C81C46A35CE411E5FBC1191A0A52EF:39F23369A9D9BACFA530E26304231461 93AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:9CFC4E967EDB808D679F777BC6702C7D:30C81C46A35CE411E5FBC1191A0A52EF:39F23369A9D9BACFA530E26304231461
94AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:39F23369A9D9BACFA530E26304231461:F69F2445DF4F9B17AD2B417BE66C3710:B2EB05E2C39BE9FCDA6C19078C6A9D1B 94AES-256-CBC:603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4:39F23369A9D9BACFA530E26304231461:F69F2445DF4F9B17AD2B417BE66C3710:B2EB05E2C39BE9FCDA6C19078C6A9D1B
95# We don't support CFB{1,8}-AESxxx.{En,De}crypt 95
96# CFB1-AES128.Encrypt
97
98AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:00:00:1
99AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00020406080a0c0e10121416181a1c1e:80:80:1
100AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0004080c1014181c2024282c3034383d:80:80:1
101AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0008101820283038404850586068707b:00:00:1
102AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00102030405060708090a0b0c0d0e0f6:80:80:1
103AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0020406080a0c0e10121416181a1c1ed:00:00:1
104AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:004080c1014181c2024282c3034383da:80:00:1
105AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:008101820283038404850586068707b4:80:00:1
106AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f68:80:80:1
107AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:020406080a0c0e10121416181a1c1ed1:80:00:1
108AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:04080c1014181c2024282c3034383da2:00:80:1
109AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:08101820283038404850586068707b45:00:80:1
110AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:102030405060708090a0b0c0d0e0f68b:00:00:1
111AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:20406080a0c0e10121416181a1c1ed16:00:00:1
112AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:4080c1014181c2024282c3034383da2c:00:80:1
113AES-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
117AES-128-CFB1*8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1:68b3:1
118
119# CFB1-AES128.Decrypt
120AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:00:00:0
121AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00020406080a0c0e10121416181a1c1e:80:80:0
122AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0004080c1014181c2024282c3034383d:80:80:0
123AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0008101820283038404850586068707b:00:00:0
124AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:00102030405060708090a0b0c0d0e0f6:80:80:0
125AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0020406080a0c0e10121416181a1c1ed:00:00:0
126AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:004080c1014181c2024282c3034383da:80:00:0
127AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:008101820283038404850586068707b4:80:00:0
128AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f68:80:80:0
129AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:020406080a0c0e10121416181a1c1ed1:80:00:0
130AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:04080c1014181c2024282c3034383da2:00:80:0
131AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:08101820283038404850586068707b45:00:80:0
132AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:102030405060708090a0b0c0d0e0f68b:00:00:0
133AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:20406080a0c0e10121416181a1c1ed16:00:00:0
134AES-128-CFB1:2b7e151628aed2a6abf7158809cf4f3c:4080c1014181c2024282c3034383da2c:00:80:0
135AES-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
139AES-128-CFB1*8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1:68b3:0
140
141# TODO: CFB1-AES192 and 256
142
143# CFB8-AES128.Encrypt
144
145AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6b:3b:1
146AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f3b:c1:79:1
147AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:02030405060708090a0b0c0d0e0f3b79:be:42:1
148AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:030405060708090a0b0c0d0e0f3b7942:e2:4c:1
149AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0405060708090a0b0c0d0e0f3b79424c:2e:9c:1
150AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:05060708090a0b0c0d0e0f3b79424c9c:40:0d:1
151AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:060708090a0b0c0d0e0f3b79424c9c0d:9f:d4:1
152AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0708090a0b0c0d0e0f3b79424c9c0dd4:96:36:1
153AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:08090a0b0c0d0e0f3b79424c9c0dd436:e9:ba:1
154AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:090a0b0c0d0e0f3b79424c9c0dd436ba:3d:ce:1
155AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0a0b0c0d0e0f3b79424c9c0dd436bace:7e:9e:1
156AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0b0c0d0e0f3b79424c9c0dd436bace9e:11:0e:1
157AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0c0d0e0f3b79424c9c0dd436bace9e0e:73:d4:1
158AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0d0e0f3b79424c9c0dd436bace9e0ed4:93:58:1
159AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0e0f3b79424c9c0dd436bace9e0ed458:17:6a:1
160AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0f3b79424c9c0dd436bace9e0ed4586a:2a:4f:1
161AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:3b79424c9c0dd436bace9e0ed4586a4f:ae:32:1
162AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:79424c9c0dd436bace9e0ed4586a4f32:2d:b9:1
163# all of the above packed into one
164AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6bc1bee22e409f96e93d7e117393172aae2d:3b79424c9c0dd436bace9e0ed4586a4f32b9:1
165
166# CFB8-AES128.Decrypt
167
168AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:000102030405060708090a0b0c0d0e0f:6b:3b:0
169AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0102030405060708090a0b0c0d0e0f3b:c1:79:0
170AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:02030405060708090a0b0c0d0e0f3b79:be:42:0
171AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:030405060708090a0b0c0d0e0f3b7942:e2:4c:0
172AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0405060708090a0b0c0d0e0f3b79424c:2e:9c:0
173AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:05060708090a0b0c0d0e0f3b79424c9c:40:0d:0
174AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:060708090a0b0c0d0e0f3b79424c9c0d:9f:d4:0
175AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0708090a0b0c0d0e0f3b79424c9c0dd4:96:36:0
176AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:08090a0b0c0d0e0f3b79424c9c0dd436:e9:ba:0
177AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:090a0b0c0d0e0f3b79424c9c0dd436ba:3d:ce:0
178AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0a0b0c0d0e0f3b79424c9c0dd436bace:7e:9e:0
179AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0b0c0d0e0f3b79424c9c0dd436bace9e:11:0e:0
180AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0c0d0e0f3b79424c9c0dd436bace9e0e:73:d4:0
181AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0d0e0f3b79424c9c0dd436bace9e0ed4:93:58:0
182AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0e0f3b79424c9c0dd436bace9e0ed458:17:6a:0
183AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:0f3b79424c9c0dd436bace9e0ed4586a:2a:4f:0
184AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:3b79424c9c0dd436bace9e0ed4586a4f:ae:32:0
185AES-128-CFB8:2b7e151628aed2a6abf7158809cf4f3c:79424c9c0dd436bace9e0ed4586a4f32:2d:b9:0
186# all of the above packed into one
187AES-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)
175DES-EDE3-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363534333231204E6F77206973207468652074696D6520666F722000000000:3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675 270DES-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
276DES-CFB1*8:0123456789abcdef:1234567890abcdef:4e6f77:cd1ec9
277
278# DES CFB8 from FIPS 81
279
280DES-CFB8:0123456789abcdef:1234567890abcdef:4e6f7720697320746865:f31fda07011462ee187f
281
177# RC4 tests (from rc4test) 282# RC4 tests (from rc4test)
178RC4:0123456789abcdef0123456789abcdef::0123456789abcdef:75b7878099e0c596 283RC4:0123456789abcdef0123456789abcdef::0123456789abcdef:75b7878099e0c596
179RC4:0123456789abcdef0123456789abcdef::0000000000000000:7494c2e7104b0879 284RC4: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
3if [ "$1" = "" ]; then
4 key=../apps/server.pem
5else
6 key="$1"
7fi
8if [ "$2" = "" ]; then
9 cert=../apps/server.pem
10else
11 cert="$2"
12fi
13
14ciphers="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
16ssltest="../util/shlib_wrap.sh ./ssltest -F -key $key -cert $cert -c_key $key -c_cert $cert -cipher $ciphers"
17
18if ../util/shlib_wrap.sh ../apps/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key' >/dev/null; then
19 dsa_cert=YES
20else
21 dsa_cert=NO
22fi
23
24if [ "$3" = "" ]; then
25 CA="-CApath ../certs"
26else
27 CA="-CAfile $3"
28fi
29
30if [ "$4" = "" ]; then
31 extra=""
32else
33 extra="$4"
34fi
35
36#############################################################################
37
38echo test ssl3 is forbidden in FIPS mode
39$ssltest -ssl3 $extra && exit 1
40
41echo test ssl2 is forbidden in FIPS mode
42$ssltest -ssl2 $extra && exit 1
43
44echo test tls1
45$ssltest -tls1 $extra || exit 1
46
47echo test tls1 with server authentication
48$ssltest -tls1 -server_auth $CA $extra || exit 1
49
50echo test tls1 with client authentication
51$ssltest -tls1 -client_auth $CA $extra || exit 1
52
53echo test tls1 with both client and server authentication
54$ssltest -tls1 -server_auth -client_auth $CA $extra || exit 1
55
56echo test tls1 via BIO pair
57$ssltest -bio_pair -tls1 $extra || exit 1
58
59echo test tls1 with server authentication via BIO pair
60$ssltest -bio_pair -tls1 -server_auth $CA $extra || exit 1
61
62echo test tls1 with client authentication via BIO pair
63$ssltest -bio_pair -tls1 -client_auth $CA $extra || exit 1
64
65echo 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
70if [ $dsa_cert = NO ]; then
71 echo test sslv2/sslv3 w/o DHE via BIO pair
72 $ssltest -bio_pair -no_dhe $extra || exit 1
73fi
74
75echo test sslv2/sslv3 with 1024bit DHE via BIO pair
76$ssltest -bio_pair -dhe1024dsa -v $extra || exit 1
77
78echo test sslv2/sslv3 with server authentication
79$ssltest -bio_pair -server_auth $CA $extra || exit 1
80
81echo test sslv2/sslv3 with client authentication via BIO pair
82$ssltest -bio_pair -client_auth $CA $extra || exit 1
83
84echo 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
87echo 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
92if ../util/shlib_wrap.sh ../apps/openssl no-dh; then
93 echo skipping anonymous DH tests
94else
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
97fi
98
99if ../util/shlib_wrap.sh ../apps/openssl no-rsa; then
100 echo skipping RSA tests
101else
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
111fi
112
113exit 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;*