Skip to content

Commit 7844941

Browse files
committed
Add more DH sizes.
1 parent 991dcd8 commit 7844941

File tree

1 file changed

+75
-2
lines changed

1 file changed

+75
-2
lines changed

certs/Makefile

+75-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ SIGN_LEAF_DEFAULTS = $(DAYS_DEFAULT) $(HASH_DEFAULT) req_v3_usr
2121
# These variables will keep track of all chain targets.
2222
CHAINS_PROD =
2323
# 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 =
2533

2634
O = sets/test
2735

@@ -258,16 +266,81 @@ $(O)/gen/chain/subdomain-revoked.pem: $(O)/gen/crt/subdomain-revoked.crt $(O)/ge
258266
################################
259267
$(O)/gen/dhparam/dh480.pem:
260268
./tool dhparam $@ $(D) 480
269+
DHPARAMS_MAIN += $(O)/gen/dhparam/dh480.pem
261270
$(O)/gen/dhparam/dh512.pem:
262271
./tool dhparam $@ $(D) 512
272+
DHPARAMS_MAIN += $(O)/gen/dhparam/dh512.pem
263273
$(O)/gen/dhparam/dh1024.pem:
264274
./tool dhparam $@ $(D) 1024
275+
DHPARAMS_MAIN += $(O)/gen/dhparam/dh1024.pem
265276
$(O)/gen/dhparam/dh2048.pem:
266277
./tool dhparam $@ $(D) 2048
278+
DHPARAMS_MAIN += $(O)/gen/dhparam/dh2048.pem
267279
$(O)/gen/dhparam/dh-composite.pem: src/dhparam/dh-composite.pem
268280
cp $^ $@
281+
DHPARAMS_MAIN += $(O)/gen/dhparam/dh-composite.pem
269282
$(O)/gen/dhparam/dh-small-subgroup.pem: src/dhparam/dh-small-subgroup.pem
270283
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)
271344

272345
################################
273346
.PHONY: chains-prod
@@ -277,4 +350,4 @@ chains-prod: $(CHAINS_PROD)
277350
chains-local: chains-prod $(CHAINS_LOCAL_ONLY)
278351

279352
.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

Comments
 (0)