Use function name FIPS_drbg_health_check() for health check function.
[openssl.git] / fips / rand / Makefile
1 #
2 # OpenSSL/fips/rand/Makefile
3 #
4
5 DIR=    rand
6 TOP=    ../..
7 CC=     cc
8 INCLUDES=
9 CFLAG=-g
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKEDEPPROG=    makedepend
14 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15 MAKEFILE=       Makefile
16 AR=             ar r
17
18 CFLAGS= $(INCLUDES) $(CFLAG)
19
20 GENERAL=Makefile
21 TEST= fips_randtest.c fips_rngvs.c fips_drbgvs.c
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= fips_rand.c fips_rand_selftest.c fips_drbg_lib.c \
26         fips_drbg_hash.c fips_drbg_hmac.c fips_drbg_ctr.c fips_drbg_ec.c \
27         fips_drbg_selftest.c fips_drbg_rand.c fips_rand_lib.c
28 LIBOBJ= fips_rand.o fips_rand_selftest.o fips_drbg_lib.o \
29         fips_drbg_hash.o fips_drbg_hmac.o fips_drbg_ctr.o fips_drbg_ec.o \
30         fips_drbg_selftest.o fips_drbg_rand.o fips_rand_lib.o
31
32 SRC= $(LIBSRC)
33
34 EXHEADER= fips_rand.h
35 HEADER= $(EXHEADER) fips_rand_lcl.h fips_drbg_selftest.h
36
37 ALL=    $(GENERAL) $(SRC) $(HEADER)
38
39 top:
40         (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
41
42 all:    lib
43
44 lib:    $(LIBOBJ)
45         @echo $(LIBOBJ) > lib
46
47 files:
48         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
49
50 links:
51         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
52         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
53         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
54
55 install:
56         @headerlist="$(EXHEADER)"; for i in $$headerlist; \
57         do \
58           (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
59           chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
60         done
61
62 tags:
63         ctags $(SRC)
64
65 tests:
66
67 Q=../testvectors/rng/req
68 A=../testvectors/rng/rsp
69
70 fips_test:
71         -rm -rf $(A)
72         mkdir $(A)
73         if [ -f $(Q)/ANSI931_AES128MCT.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs mct < $(Q)/ANSI931_AES128MCT.req > $(A)/ANSI931_AES128MCT.rsp; fi
74         if [ -f $(Q)/ANSI931_AES192MCT.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs mct < $(Q)/ANSI931_AES192MCT.req > $(A)/ANSI931_AES192MCT.rsp; fi
75         if [ -f $(Q)/ANSI931_AES256MCT.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs mct < $(Q)/ANSI931_AES256MCT.req > $(A)/ANSI931_AES256MCT.rsp; fi
76         if [ -f $(Q)/ANSI931_AES128VST.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs vst < $(Q)/ANSI931_AES128VST.req > $(A)/ANSI931_AES128VST.rsp; fi
77         if [ -f $(Q)/ANSI931_AES192VST.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs vst < $(Q)/ANSI931_AES192VST.req > $(A)/ANSI931_AES192VST.rsp; fi
78         if [ -f $(Q)/ANSI931_AES256VST.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs vst < $(Q)/ANSI931_AES256VST.req > $(A)/ANSI931_AES256VST.rsp; fi
79
80 lint:
81         lint -DLINT $(INCLUDES) $(SRC)>fluff
82
83 depend:
84         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
85
86 dclean:
87         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
88         mv -f Makefile.new $(MAKEFILE)
89
90 clean:
91         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
92
93 # DO NOT DELETE THIS LINE -- make depend depends on it.
94
95 fips_drbg_ctr.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
96 fips_drbg_ctr.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
97 fips_drbg_ctr.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h
98 fips_drbg_ctr.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
99 fips_drbg_ctr.o: ../../include/openssl/hmac.h ../../include/openssl/obj_mac.h
100 fips_drbg_ctr.o: ../../include/openssl/objects.h
101 fips_drbg_ctr.o: ../../include/openssl/opensslconf.h
102 fips_drbg_ctr.o: ../../include/openssl/opensslv.h
103 fips_drbg_ctr.o: ../../include/openssl/ossl_typ.h
104 fips_drbg_ctr.o: ../../include/openssl/safestack.h
105 fips_drbg_ctr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
106 fips_drbg_ctr.o: fips_drbg_ctr.c fips_rand_lcl.h
107 fips_drbg_hash.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
108 fips_drbg_hash.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
109 fips_drbg_hash.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h
110 fips_drbg_hash.o: ../../include/openssl/fips.h
111 fips_drbg_hash.o: ../../include/openssl/fips_rand.h
112 fips_drbg_hash.o: ../../include/openssl/hmac.h ../../include/openssl/obj_mac.h
113 fips_drbg_hash.o: ../../include/openssl/objects.h
114 fips_drbg_hash.o: ../../include/openssl/opensslconf.h
115 fips_drbg_hash.o: ../../include/openssl/opensslv.h
116 fips_drbg_hash.o: ../../include/openssl/ossl_typ.h
117 fips_drbg_hash.o: ../../include/openssl/safestack.h
118 fips_drbg_hash.o: ../../include/openssl/stack.h
119 fips_drbg_hash.o: ../../include/openssl/symhacks.h fips_drbg_hash.c
120 fips_drbg_hash.o: fips_rand_lcl.h
121 fips_drbg_hmac.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
122 fips_drbg_hmac.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
123 fips_drbg_hmac.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h
124 fips_drbg_hmac.o: ../../include/openssl/fips.h
125 fips_drbg_hmac.o: ../../include/openssl/fips_rand.h
126 fips_drbg_hmac.o: ../../include/openssl/hmac.h ../../include/openssl/obj_mac.h
127 fips_drbg_hmac.o: ../../include/openssl/objects.h
128 fips_drbg_hmac.o: ../../include/openssl/opensslconf.h
129 fips_drbg_hmac.o: ../../include/openssl/opensslv.h
130 fips_drbg_hmac.o: ../../include/openssl/ossl_typ.h
131 fips_drbg_hmac.o: ../../include/openssl/safestack.h
132 fips_drbg_hmac.o: ../../include/openssl/stack.h
133 fips_drbg_hmac.o: ../../include/openssl/symhacks.h fips_drbg_hmac.c
134 fips_drbg_hmac.o: fips_rand_lcl.h
135 fips_drbg_lib.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
136 fips_drbg_lib.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
137 fips_drbg_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
138 fips_drbg_lib.o: ../../include/openssl/evp.h ../../include/openssl/fips_rand.h
139 fips_drbg_lib.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
140 fips_drbg_lib.o: ../../include/openssl/obj_mac.h
141 fips_drbg_lib.o: ../../include/openssl/objects.h
142 fips_drbg_lib.o: ../../include/openssl/opensslconf.h
143 fips_drbg_lib.o: ../../include/openssl/opensslv.h
144 fips_drbg_lib.o: ../../include/openssl/ossl_typ.h
145 fips_drbg_lib.o: ../../include/openssl/safestack.h
146 fips_drbg_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
147 fips_drbg_lib.o: fips_drbg_lib.c fips_rand_lcl.h
148 fips_drbg_rand.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
149 fips_drbg_rand.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
150 fips_drbg_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
151 fips_drbg_rand.o: ../../include/openssl/evp.h ../../include/openssl/fips_rand.h
152 fips_drbg_rand.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
153 fips_drbg_rand.o: ../../include/openssl/obj_mac.h
154 fips_drbg_rand.o: ../../include/openssl/objects.h
155 fips_drbg_rand.o: ../../include/openssl/opensslconf.h
156 fips_drbg_rand.o: ../../include/openssl/opensslv.h
157 fips_drbg_rand.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
158 fips_drbg_rand.o: ../../include/openssl/safestack.h
159 fips_drbg_rand.o: ../../include/openssl/stack.h
160 fips_drbg_rand.o: ../../include/openssl/symhacks.h fips_drbg_rand.c
161 fips_drbg_rand.o: fips_rand_lcl.h
162 fips_drbg_selftest.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
163 fips_drbg_selftest.o: ../../include/openssl/bio.h
164 fips_drbg_selftest.o: ../../include/openssl/crypto.h
165 fips_drbg_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
166 fips_drbg_selftest.o: ../../include/openssl/evp.h
167 fips_drbg_selftest.o: ../../include/openssl/fips_rand.h
168 fips_drbg_selftest.o: ../../include/openssl/hmac.h
169 fips_drbg_selftest.o: ../../include/openssl/lhash.h
170 fips_drbg_selftest.o: ../../include/openssl/obj_mac.h
171 fips_drbg_selftest.o: ../../include/openssl/objects.h
172 fips_drbg_selftest.o: ../../include/openssl/opensslconf.h
173 fips_drbg_selftest.o: ../../include/openssl/opensslv.h
174 fips_drbg_selftest.o: ../../include/openssl/ossl_typ.h
175 fips_drbg_selftest.o: ../../include/openssl/safestack.h
176 fips_drbg_selftest.o: ../../include/openssl/stack.h
177 fips_drbg_selftest.o: ../../include/openssl/symhacks.h ../fips_locl.h
178 fips_drbg_selftest.o: fips_drbg_selftest.c fips_drbg_selftest.h fips_rand_lcl.h
179 fips_drbgvs.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
180 fips_drbgvs.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
181 fips_drbgvs.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
182 fips_drbgvs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
183 fips_drbgvs.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
184 fips_drbgvs.o: ../../include/openssl/fips_rand.h ../../include/openssl/hmac.h
185 fips_drbgvs.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
186 fips_drbgvs.o: ../../include/openssl/objects.h
187 fips_drbgvs.o: ../../include/openssl/opensslconf.h
188 fips_drbgvs.o: ../../include/openssl/opensslv.h
189 fips_drbgvs.o: ../../include/openssl/ossl_typ.h
190 fips_drbgvs.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
191 fips_drbgvs.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_drbgvs.c
192 fips_rand.o: ../../e_os.h ../../include/openssl/aes.h
193 fips_rand.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
194 fips_rand.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
195 fips_rand.o: ../../include/openssl/err.h ../../include/openssl/evp.h
196 fips_rand.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
197 fips_rand.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
198 fips_rand.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
199 fips_rand.o: ../../include/openssl/opensslconf.h
200 fips_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
201 fips_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
202 fips_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
203 fips_rand.o: ../fips_locl.h fips_rand.c
204 fips_rand_lib.o: ../../e_os.h ../../include/openssl/aes.h
205 fips_rand_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
206 fips_rand_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
207 fips_rand_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
208 fips_rand_lib.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
209 fips_rand_lib.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
210 fips_rand_lib.o: ../../include/openssl/obj_mac.h
211 fips_rand_lib.o: ../../include/openssl/objects.h
212 fips_rand_lib.o: ../../include/openssl/opensslconf.h
213 fips_rand_lib.o: ../../include/openssl/opensslv.h
214 fips_rand_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
215 fips_rand_lib.o: ../../include/openssl/safestack.h
216 fips_rand_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
217 fips_rand_lib.o: fips_rand_lib.c
218 fips_rand_selftest.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
219 fips_rand_selftest.o: ../../include/openssl/bio.h
220 fips_rand_selftest.o: ../../include/openssl/crypto.h
221 fips_rand_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
222 fips_rand_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
223 fips_rand_selftest.o: ../../include/openssl/fips_rand.h
224 fips_rand_selftest.o: ../../include/openssl/hmac.h
225 fips_rand_selftest.o: ../../include/openssl/lhash.h
226 fips_rand_selftest.o: ../../include/openssl/obj_mac.h
227 fips_rand_selftest.o: ../../include/openssl/objects.h
228 fips_rand_selftest.o: ../../include/openssl/opensslconf.h
229 fips_rand_selftest.o: ../../include/openssl/opensslv.h
230 fips_rand_selftest.o: ../../include/openssl/ossl_typ.h
231 fips_rand_selftest.o: ../../include/openssl/rand.h
232 fips_rand_selftest.o: ../../include/openssl/safestack.h
233 fips_rand_selftest.o: ../../include/openssl/stack.h
234 fips_rand_selftest.o: ../../include/openssl/symhacks.h ../fips_locl.h
235 fips_rand_selftest.o: fips_rand_selftest.c
236 fips_randtest.o: ../../e_os.h ../../include/openssl/aes.h
237 fips_randtest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
238 fips_randtest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
239 fips_randtest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
240 fips_randtest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
241 fips_randtest.o: ../../include/openssl/fips_rand.h ../../include/openssl/hmac.h
242 fips_randtest.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
243 fips_randtest.o: ../../include/openssl/objects.h
244 fips_randtest.o: ../../include/openssl/opensslconf.h
245 fips_randtest.o: ../../include/openssl/opensslv.h
246 fips_randtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
247 fips_randtest.o: ../../include/openssl/safestack.h
248 fips_randtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
249 fips_randtest.o: ../fips_utl.h fips_randtest.c
250 fips_rngvs.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
251 fips_rngvs.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
252 fips_rngvs.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
253 fips_rngvs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
254 fips_rngvs.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
255 fips_rngvs.o: ../../include/openssl/fips_rand.h ../../include/openssl/hmac.h
256 fips_rngvs.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
257 fips_rngvs.o: ../../include/openssl/objects.h
258 fips_rngvs.o: ../../include/openssl/opensslconf.h
259 fips_rngvs.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
260 fips_rngvs.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
261 fips_rngvs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
262 fips_rngvs.o: ../fips_utl.h fips_rngvs.c