@@ -21,7 +21,15 @@ SIGN_LEAF_DEFAULTS = $(DAYS_DEFAULT) $(HASH_DEFAULT) req_v3_usr
21
21
# These variables will keep track of all chain targets.
22
22
CHAINS_PROD =
23
23
# These are chains that we can't get public versions of (usually due to Baseline Requirements).
24
- CHAINS_LOCAL_ONLY =
24
+ CHAINS_LOCAL_ONLY =
25
+
26
+ # Common dhparams
27
+ DHPARAMS_MAIN =
28
+ # dhparams for tolerance boundary testing
29
+ # https://github.com/chromium/badssl.com/issues/208
30
+ DHPARAMS_BOUNDARY =
31
+ # Ludicrously large values.
32
+ DHPARAMS_LARGE_POWERS_OF_2 =
25
33
26
34
O = sets/test
27
35
@@ -258,16 +266,81 @@ $(O)/gen/chain/subdomain-revoked.pem: $(O)/gen/crt/subdomain-revoked.crt $(O)/ge
258
266
# ###############################
259
267
$(O ) /gen/dhparam/dh480.pem :
260
268
./tool dhparam $@ $(D ) 480
269
+ DHPARAMS_MAIN += $(O ) /gen/dhparam/dh480.pem
261
270
$(O ) /gen/dhparam/dh512.pem :
262
271
./tool dhparam $@ $(D ) 512
272
+ DHPARAMS_MAIN += $(O ) /gen/dhparam/dh512.pem
263
273
$(O ) /gen/dhparam/dh1024.pem :
264
274
./tool dhparam $@ $(D ) 1024
275
+ DHPARAMS_MAIN += $(O ) /gen/dhparam/dh1024.pem
265
276
$(O ) /gen/dhparam/dh2048.pem :
266
277
./tool dhparam $@ $(D ) 2048
278
+ DHPARAMS_MAIN += $(O ) /gen/dhparam/dh2048.pem
267
279
$(O ) /gen/dhparam/dh-composite.pem : src/dhparam/dh-composite.pem
268
280
cp $^ $@
281
+ DHPARAMS_MAIN += $(O ) /gen/dhparam/dh-composite.pem
269
282
$(O ) /gen/dhparam/dh-small-subgroup.pem : src/dhparam/dh-small-subgroup.pem
270
283
cp $^ $@
284
+ DHPARAMS_MAIN += $(O ) /gen/dhparam/dh-small-subgroup.pem
285
+
286
+ $(O ) /gen/dhparam/dh448.pem :
287
+ ./tool dhparam $@ $(D ) 448
288
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh448.pem
289
+ $(O ) /gen/dhparam/dh511.pem :
290
+ ./tool dhparam $@ $(D ) 511
291
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh511.pem
292
+ $(O ) /gen/dhparam/dh513.pem :
293
+ ./tool dhparam $@ $(D ) 513
294
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh513.pem
295
+ $(O ) /gen/dhparam/dh576.pem :
296
+ ./tool dhparam $@ $(D ) 576
297
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh576.pem
298
+
299
+ $(O ) /gen/dhparam/dh960.pem :
300
+ ./tool dhparam $@ $(D ) 960
301
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh960.pem
302
+ $(O ) /gen/dhparam/dh1023.pem :
303
+ ./tool dhparam $@ $(D ) 1023
304
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh1023.pem
305
+ $(O ) /gen/dhparam/dh1025.pem :
306
+ ./tool dhparam $@ $(D ) 1025
307
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh1025.pem
308
+ $(O ) /gen/dhparam/dh1088.pem :
309
+ ./tool dhparam $@ $(D ) 1088
310
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh1088.pem
311
+
312
+ $(O ) /gen/dhparam/dh1984.pem :
313
+ ./tool dhparam $@ $(D ) 1984
314
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh1984.pem
315
+ $(O ) /gen/dhparam/dh2047.pem :
316
+ ./tool dhparam $@ $(D ) 2047
317
+ DHPARAMS_BOUNDARY += $(O ) /gen/dhparam/dh2047.pem
318
+
319
+ $(O ) /gen/dhparam/dh4096.pem :
320
+ ./tool dhparam $@ $(D ) 4096
321
+ DHPARAMS_LARGE_POWERS_OF_2 += $(O ) /gen/dhparam/dh4096.pem
322
+ $(O ) /gen/dhparam/dh8192.pem :
323
+ ./tool dhparam $@ $(D ) 8192
324
+ DHPARAMS_LARGE_POWERS_OF_2 += $(O ) /gen/dhparam/dh8192.pem
325
+ $(O ) /gen/dhparam/dh16384.pem :
326
+ ./tool dhparam $@ $(D ) 16384
327
+ DHPARAMS_LARGE_POWERS_OF_2 += $(O ) /gen/dhparam/dh16384.pem
328
+ $(O ) /gen/dhparam/dh32768.pem :
329
+ ./tool dhparam $@ $(D ) 32768
330
+ DHPARAMS_LARGE_POWERS_OF_2 += $(O ) /gen/dhparam/dh32768.pem
331
+ $(O ) /gen/dhparam/dh65536.pem :
332
+ ./tool dhparam $@ $(D ) 65536
333
+ DHPARAMS_LARGE_POWERS_OF_2 += $(O ) /gen/dhparam/dh65536.pem
334
+
335
+ # ###############################
336
+ .PHONY : dhparams-main
337
+ dhparams-extra : $(DHPARAMS_MAIN )
338
+
339
+ .PHONY : dhparams-extra
340
+ dhparams-extra : $(DHPARAMS_EXTRA )
341
+
342
+ .PHONY : dhparams-large-powers-of-2
343
+ dhparams-extra : $(DHPARAMS_LARGE_POWERS_OF_2 )
271
344
272
345
# ###############################
273
346
.PHONY : chains-prod
@@ -277,4 +350,4 @@ chains-prod: $(CHAINS_PROD)
277
350
chains-local : chains-prod $(CHAINS_LOCAL_ONLY )
278
351
279
352
.PHONY : dhparams
280
- dhparams : $( O ) /gen/dhparam/dh480.pem $( O ) /gen/dhparam/dh512.pem $( O ) /gen/dhparam/dh1024.pem $( O ) /gen/dhparam/dh2048.pem $( O ) /gen/dhparam/dh-composite.pem $( O ) /gen/dhparam/dh-small-subgroup.pem
353
+ dhparams : dhparams-main dhparams-extra dhparams-large-powers-of-2
0 commit comments