1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) Phil Pennock 2012, 2016
6 * Copyright (c) The Exim Maintainers 2017 - 2018
7 * But almost everything here is fixed published constants from RFCs, so also:
8 * Copyright (C) The Internet Society (2003)
9 * Copyright (C) The IETF Trust (2008)
10 * Most of the text in RFC referencing comments is copy/paste from RFC,
11 * as is undoubtedly the intention.
12 * The constants are generated from that text using util/gen_pkcs3.c invoked
16 /* See the file NOTICE for conditions of use and distribution. */
21 static void dummy(int x) { dummy(x-1); }
24 /* The IETF defines standard primes as "Modular Exponential (MODP) Groups" for
25 use in IKE in RFC 2409 and 3526, and then some more, "for Use with IETF
26 Standards" in RFC 5114. These have been thoroughly reviewed as meeting
27 certain eligibility criteria, which is more than can be said for primes
28 generated quickly on no particular criteria.
30 Any prime used in TLS is disclosed publicly, and if the security of your
31 session depends upon the prime being secret, then one of three situations
33 (1) the prime is too small
34 (2) the prime is flawed, use one of these instead
35 (3) you know of fundamental cryptanalytic breaks not currently publicly known
36 to the cryptographic community.
39 /* RFC 2409 MODP IKE_id=1 generator=2 bits=768
40 The prime is: 2^768 - 2 ^704 - 1 + 2^64 * { [2^638 pi] + 149686 }
41 Its hexadecimal value is
42 FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
43 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
44 EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
45 E485B576 625E7EC6 F44C42E9 A63A3620 FFFFFFFF FFFFFFFF
47 static const char dh_ike_1_pem[] =
48 "-----BEGIN DH PARAMETERS-----\n"
49 "MGYCYQD//////////8kP2qIhaMI0xMZii4DcHNEpAk4IimfMdAILvqY7E5siUUoI\n"
50 "eY40BN3vlRmzzTpDGzArCm3yXxQ3T+E1bW1RwkXkhbV2Yl5+xvRMQummOjYg////\n"
52 "-----END DH PARAMETERS-----\n";
54 /* RFC 2409 MODP IKE_id=2 generator=2 bits=1024
55 The prime is 2^1024 - 2^960 - 1 + 2^64 * { [2^894 pi] + 129093 }.
56 Its hexadecimal value is
58 FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
59 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
60 EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
61 E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED
62 EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381
65 static const char dh_ike_2_pem[] =
66 "-----BEGIN DH PARAMETERS-----\n"
67 "MIGHAoGBAP//////////yQ/aoiFowjTExmKLgNwc0SkCTgiKZ8x0Agu+pjsTmyJR\n"
68 "Sgh5jjQE3e+VGbPNOkMbMCsKbfJfFDdP4TVtbVHCReSFtXZiXn7G9ExC6aY37WsL\n"
69 "/1y29Aa37e44a/taiZ+lrp8kEXxLH+ZJKGZR7OZTgf//////////AgEC\n"
70 "-----END DH PARAMETERS-----\n";
72 /* RFC 2409; id=3 and id=4 are EC2N, not yet supported here */
74 /* RFC 3526 MODP IKE_id=5 generator=2 bits=1536
75 The prime is: 2^1536 - 2^1472 - 1 + 2^64 * { [2^1406 pi] + 741804 }
76 Its hexadecimal value is:
78 FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
79 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
80 EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
81 E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED
82 EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE45B3D
83 C2007CB8 A163BF05 98DA4836 1C55D39A 69163FA8 FD24CF5F
84 83655D23 DCA3AD96 1C62F356 208552BB 9ED52907 7096966D
85 670C354E 4ABC9804 F1746C08 CA237327 FFFFFFFF FFFFFFFF
87 static const char dh_ike_5_pem[] =
88 "-----BEGIN DH PARAMETERS-----\n"
89 "MIHHAoHBAP//////////yQ/aoiFowjTExmKLgNwc0SkCTgiKZ8x0Agu+pjsTmyJR\n"
90 "Sgh5jjQE3e+VGbPNOkMbMCsKbfJfFDdP4TVtbVHCReSFtXZiXn7G9ExC6aY37WsL\n"
91 "/1y29Aa37e44a/taiZ+lrp8kEXxLH+ZJKGZR7ORbPcIAfLihY78FmNpINhxV05pp\n"
92 "Fj+o/STPX4NlXSPco62WHGLzViCFUrue1SkHcJaWbWcMNU5KvJgE8XRsCMojcyf/\n"
94 "-----END DH PARAMETERS-----\n";
96 /* RFC 3526 MODP IKE_id=14 generator=2 bits=2048
97 This prime is: 2^2048 - 2^1984 - 1 + 2^64 * { [2^1918 pi] + 124476 }
98 Its hexadecimal value is:
100 FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
101 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
102 EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
103 E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED
104 EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE45B3D
105 C2007CB8 A163BF05 98DA4836 1C55D39A 69163FA8 FD24CF5F
106 83655D23 DCA3AD96 1C62F356 208552BB 9ED52907 7096966D
107 670C354E 4ABC9804 F1746C08 CA18217C 32905E46 2E36CE3B
108 E39E772C 180E8603 9B2783A2 EC07A28F B5C55DF0 6F4C52C9
109 DE2BCBF6 95581718 3995497C EA956AE5 15D22618 98FA0510
110 15728E5A 8AACAA68 FFFFFFFF FFFFFFFF
112 static const char dh_ike_14_pem[] =
113 "-----BEGIN DH PARAMETERS-----\n"
114 "MIIBCAKCAQEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb\n"
115 "IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft\n"
116 "awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT\n"
117 "mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh\n"
118 "fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq\n"
119 "5RXSJhiY+gUQFXKOWoqsqmj//////////wIBAg==\n"
120 "-----END DH PARAMETERS-----\n";
122 /* RFC 3526 MODP IKE_id=15 generator=2 bits=3072
123 This prime is: 2^3072 - 2^3008 - 1 + 2^64 * { [2^2942 pi] + 1690314 }
124 Its hexadecimal value is:
126 FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
127 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
128 EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
129 E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED
130 EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE45B3D
131 C2007CB8 A163BF05 98DA4836 1C55D39A 69163FA8 FD24CF5F
132 83655D23 DCA3AD96 1C62F356 208552BB 9ED52907 7096966D
133 670C354E 4ABC9804 F1746C08 CA18217C 32905E46 2E36CE3B
134 E39E772C 180E8603 9B2783A2 EC07A28F B5C55DF0 6F4C52C9
135 DE2BCBF6 95581718 3995497C EA956AE5 15D22618 98FA0510
136 15728E5A 8AAAC42D AD33170D 04507A33 A85521AB DF1CBA64
137 ECFB8504 58DBEF0A 8AEA7157 5D060C7D B3970F85 A6E1E4C7
138 ABF5AE8C DB0933D7 1E8C94E0 4A25619D CEE3D226 1AD2EE6B
139 F12FFA06 D98A0864 D8760273 3EC86A64 521F2B18 177B200C
140 BBE11757 7A615D6C 770988C0 BAD946E2 08E24FA0 74E5AB31
141 43DB5BFC E0FD108E 4B82D120 A93AD2CA FFFFFFFF FFFFFFFF
143 static const char dh_ike_15_pem[] =
144 "-----BEGIN DH PARAMETERS-----\n"
145 "MIIBiAKCAYEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb\n"
146 "IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft\n"
147 "awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT\n"
148 "mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh\n"
149 "fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq\n"
150 "5RXSJhiY+gUQFXKOWoqqxC2tMxcNBFB6M6hVIavfHLpk7PuFBFjb7wqK6nFXXQYM\n"
151 "fbOXD4Wm4eTHq/WujNsJM9cejJTgSiVhnc7j0iYa0u5r8S/6BtmKCGTYdgJzPshq\n"
152 "ZFIfKxgXeyAMu+EXV3phXWx3CYjAutlG4gjiT6B05asxQ9tb/OD9EI5LgtEgqTrS\n"
154 "-----END DH PARAMETERS-----\n";
156 /* RFC 3526 MODP IKE_id=16 generator=2 bits=4096
157 This prime is: 2^4096 - 2^4032 - 1 + 2^64 * { [2^3966 pi] + 240904 }
158 Its hexadecimal value is:
160 FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
161 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
162 EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
163 E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED
164 EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE45B3D
165 C2007CB8 A163BF05 98DA4836 1C55D39A 69163FA8 FD24CF5F
166 83655D23 DCA3AD96 1C62F356 208552BB 9ED52907 7096966D
167 670C354E 4ABC9804 F1746C08 CA18217C 32905E46 2E36CE3B
168 E39E772C 180E8603 9B2783A2 EC07A28F B5C55DF0 6F4C52C9
169 DE2BCBF6 95581718 3995497C EA956AE5 15D22618 98FA0510
170 15728E5A 8AAAC42D AD33170D 04507A33 A85521AB DF1CBA64
171 ECFB8504 58DBEF0A 8AEA7157 5D060C7D B3970F85 A6E1E4C7
172 ABF5AE8C DB0933D7 1E8C94E0 4A25619D CEE3D226 1AD2EE6B
173 F12FFA06 D98A0864 D8760273 3EC86A64 521F2B18 177B200C
174 BBE11757 7A615D6C 770988C0 BAD946E2 08E24FA0 74E5AB31
175 43DB5BFC E0FD108E 4B82D120 A9210801 1A723C12 A787E6D7
176 88719A10 BDBA5B26 99C32718 6AF4E23C 1A946834 B6150BDA
177 2583E9CA 2AD44CE8 DBBBC2DB 04DE8EF9 2E8EFC14 1FBECAA6
178 287C5947 4E6BC05D 99B2964F A090C3A2 233BA186 515BE7ED
179 1F612970 CEE2D7AF B81BDD76 2170481C D0069127 D5B05AA9
180 93B4EA98 8D8FDDC1 86FFB7DC 90A6C08F 4DF435C9 34063199
183 static const char dh_ike_16_pem[] =
184 "-----BEGIN DH PARAMETERS-----\n"
185 "MIICCAKCAgEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb\n"
186 "IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft\n"
187 "awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT\n"
188 "mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh\n"
189 "fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq\n"
190 "5RXSJhiY+gUQFXKOWoqqxC2tMxcNBFB6M6hVIavfHLpk7PuFBFjb7wqK6nFXXQYM\n"
191 "fbOXD4Wm4eTHq/WujNsJM9cejJTgSiVhnc7j0iYa0u5r8S/6BtmKCGTYdgJzPshq\n"
192 "ZFIfKxgXeyAMu+EXV3phXWx3CYjAutlG4gjiT6B05asxQ9tb/OD9EI5LgtEgqSEI\n"
193 "ARpyPBKnh+bXiHGaEL26WyaZwycYavTiPBqUaDS2FQvaJYPpyirUTOjbu8LbBN6O\n"
194 "+S6O/BQfvsqmKHxZR05rwF2ZspZPoJDDoiM7oYZRW+ftH2EpcM7i16+4G912IXBI\n"
195 "HNAGkSfVsFqpk7TqmI2P3cGG/7fckKbAj030Nck0BjGZ//////////8CAQI=\n"
196 "-----END DH PARAMETERS-----\n";
198 /* RFC 3526 MODP IKE_id=17 generator=2 bits=6144
199 This prime is: 2^6144 - 2^6080 - 1 + 2^64 * { [2^6014 pi] + 929484 }
200 Its hexadecimal value is:
202 FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 29024E08
203 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD EF9519B3 CD3A431B
204 302B0A6D F25F1437 4FE1356D 6D51C245 E485B576 625E7EC6 F44C42E9
205 A637ED6B 0BFF5CB6 F406B7ED EE386BFB 5A899FA5 AE9F2411 7C4B1FE6
206 49286651 ECE45B3D C2007CB8 A163BF05 98DA4836 1C55D39A 69163FA8
207 FD24CF5F 83655D23 DCA3AD96 1C62F356 208552BB 9ED52907 7096966D
208 670C354E 4ABC9804 F1746C08 CA18217C 32905E46 2E36CE3B E39E772C
209 180E8603 9B2783A2 EC07A28F B5C55DF0 6F4C52C9 DE2BCBF6 95581718
210 3995497C EA956AE5 15D22618 98FA0510 15728E5A 8AAAC42D AD33170D
211 04507A33 A85521AB DF1CBA64 ECFB8504 58DBEF0A 8AEA7157 5D060C7D
212 B3970F85 A6E1E4C7 ABF5AE8C DB0933D7 1E8C94E0 4A25619D CEE3D226
213 1AD2EE6B F12FFA06 D98A0864 D8760273 3EC86A64 521F2B18 177B200C
214 BBE11757 7A615D6C 770988C0 BAD946E2 08E24FA0 74E5AB31 43DB5BFC
215 E0FD108E 4B82D120 A9210801 1A723C12 A787E6D7 88719A10 BDBA5B26
216 99C32718 6AF4E23C 1A946834 B6150BDA 2583E9CA 2AD44CE8 DBBBC2DB
217 04DE8EF9 2E8EFC14 1FBECAA6 287C5947 4E6BC05D 99B2964F A090C3A2
218 233BA186 515BE7ED 1F612970 CEE2D7AF B81BDD76 2170481C D0069127
219 D5B05AA9 93B4EA98 8D8FDDC1 86FFB7DC 90A6C08F 4DF435C9 34028492
220 36C3FAB4 D27C7026 C1D4DCB2 602646DE C9751E76 3DBA37BD F8FF9406
221 AD9E530E E5DB382F 413001AE B06A53ED 9027D831 179727B0 865A8918
222 DA3EDBEB CF9B14ED 44CE6CBA CED4BB1B DB7F1447 E6CC254B 33205151
223 2BD7AF42 6FB8F401 378CD2BF 5983CA01 C64B92EC F032EA15 D1721D03
224 F482D7CE 6E74FEF6 D55E702F 46980C82 B5A84031 900B1C9E 59E7C97F
225 BEC7E8F3 23A97A7E 36CC88BE 0F1D45B7 FF585AC5 4BD407B2 2B4154AA
226 CC8F6D7E BF48E1D8 14CC5ED2 0F8037E0 A79715EE F29BE328 06A1D58B
227 B7C5DA76 F550AA3D 8A1FBFF0 EB19CCB1 A313D55C DA56C9EC 2EF29632
228 387FE8D7 6E3C0468 043E8F66 3F4860EE 12BF2D5B 0B7474D6 E694F91E
229 6DCC4024 FFFFFFFF FFFFFFFF
231 static const char dh_ike_17_pem[] =
232 "-----BEGIN DH PARAMETERS-----\n"
233 "MIIDCAKCAwEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb\n"
234 "IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft\n"
235 "awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT\n"
236 "mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh\n"
237 "fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq\n"
238 "5RXSJhiY+gUQFXKOWoqqxC2tMxcNBFB6M6hVIavfHLpk7PuFBFjb7wqK6nFXXQYM\n"
239 "fbOXD4Wm4eTHq/WujNsJM9cejJTgSiVhnc7j0iYa0u5r8S/6BtmKCGTYdgJzPshq\n"
240 "ZFIfKxgXeyAMu+EXV3phXWx3CYjAutlG4gjiT6B05asxQ9tb/OD9EI5LgtEgqSEI\n"
241 "ARpyPBKnh+bXiHGaEL26WyaZwycYavTiPBqUaDS2FQvaJYPpyirUTOjbu8LbBN6O\n"
242 "+S6O/BQfvsqmKHxZR05rwF2ZspZPoJDDoiM7oYZRW+ftH2EpcM7i16+4G912IXBI\n"
243 "HNAGkSfVsFqpk7TqmI2P3cGG/7fckKbAj030Nck0AoSSNsP6tNJ8cCbB1NyyYCZG\n"
244 "3sl1HnY9uje9+P+UBq2eUw7l2zgvQTABrrBqU+2QJ9gxF5cnsIZaiRjaPtvrz5sU\n"
245 "7UTObLrO1Lsb238UR+bMJUszIFFRK9evQm+49AE3jNK/WYPKAcZLkuzwMuoV0XId\n"
246 "A/SC185udP721V5wL0aYDIK1qEAxkAscnlnnyX++x+jzI6l6fjbMiL4PHUW3/1ha\n"
247 "xUvUB7IrQVSqzI9tfr9I4dgUzF7SD4A34KeXFe7ym+MoBqHVi7fF2nb1UKo9ih+/\n"
248 "8OsZzLGjE9Vc2lbJ7C7yljI4f+jXbjwEaAQ+j2Y/SGDuEr8tWwt0dNbmlPkebcxA\n"
250 "-----END DH PARAMETERS-----\n";
252 /* RFC 3526 MODP IKE_id=18 generator=2 bits=8192
253 This prime is: 2^8192 - 2^8128 - 1 + 2^64 * { [2^8062 pi] + 4743158 }
254 Its hexadecimal value is:
256 FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
257 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
258 EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
259 E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED
260 EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE45B3D
261 C2007CB8 A163BF05 98DA4836 1C55D39A 69163FA8 FD24CF5F
262 83655D23 DCA3AD96 1C62F356 208552BB 9ED52907 7096966D
263 670C354E 4ABC9804 F1746C08 CA18217C 32905E46 2E36CE3B
264 E39E772C 180E8603 9B2783A2 EC07A28F B5C55DF0 6F4C52C9
265 DE2BCBF6 95581718 3995497C EA956AE5 15D22618 98FA0510
266 15728E5A 8AAAC42D AD33170D 04507A33 A85521AB DF1CBA64
267 ECFB8504 58DBEF0A 8AEA7157 5D060C7D B3970F85 A6E1E4C7
268 ABF5AE8C DB0933D7 1E8C94E0 4A25619D CEE3D226 1AD2EE6B
269 F12FFA06 D98A0864 D8760273 3EC86A64 521F2B18 177B200C
270 BBE11757 7A615D6C 770988C0 BAD946E2 08E24FA0 74E5AB31
271 43DB5BFC E0FD108E 4B82D120 A9210801 1A723C12 A787E6D7
272 88719A10 BDBA5B26 99C32718 6AF4E23C 1A946834 B6150BDA
273 2583E9CA 2AD44CE8 DBBBC2DB 04DE8EF9 2E8EFC14 1FBECAA6
274 287C5947 4E6BC05D 99B2964F A090C3A2 233BA186 515BE7ED
275 1F612970 CEE2D7AF B81BDD76 2170481C D0069127 D5B05AA9
276 93B4EA98 8D8FDDC1 86FFB7DC 90A6C08F 4DF435C9 34028492
277 36C3FAB4 D27C7026 C1D4DCB2 602646DE C9751E76 3DBA37BD
278 F8FF9406 AD9E530E E5DB382F 413001AE B06A53ED 9027D831
279 179727B0 865A8918 DA3EDBEB CF9B14ED 44CE6CBA CED4BB1B
280 DB7F1447 E6CC254B 33205151 2BD7AF42 6FB8F401 378CD2BF
281 5983CA01 C64B92EC F032EA15 D1721D03 F482D7CE 6E74FEF6
282 D55E702F 46980C82 B5A84031 900B1C9E 59E7C97F BEC7E8F3
283 23A97A7E 36CC88BE 0F1D45B7 FF585AC5 4BD407B2 2B4154AA
284 CC8F6D7E BF48E1D8 14CC5ED2 0F8037E0 A79715EE F29BE328
285 06A1D58B B7C5DA76 F550AA3D 8A1FBFF0 EB19CCB1 A313D55C
286 DA56C9EC 2EF29632 387FE8D7 6E3C0468 043E8F66 3F4860EE
287 12BF2D5B 0B7474D6 E694F91E 6DBE1159 74A3926F 12FEE5E4
288 38777CB6 A932DF8C D8BEC4D0 73B931BA 3BC832B6 8D9DD300
289 741FA7BF 8AFC47ED 2576F693 6BA42466 3AAB639C 5AE4F568
290 3423B474 2BF1C978 238F16CB E39D652D E3FDB8BE FC848AD9
291 22222E04 A4037C07 13EB57A8 1A23F0C7 3473FC64 6CEA306B
292 4BCBC886 2F8385DD FA9D4B7F A2C087E8 79683303 ED5BDD3A
293 062B3CF5 B3A278A6 6D2A13F8 3F44F82D DF310EE0 74AB6A36
294 4597E899 A0255DC1 64F31CC5 0846851D F9AB4819 5DED7EA1
295 B1D510BD 7EE74D73 FAF36BC3 1ECFA268 359046F4 EB879F92
296 4009438B 481C6CD7 889A002E D5EE382B C9190DA6 FC026E47
297 9558E447 5677E9AA 9E3050E2 765694DF C81F56E8 80B96E71
298 60C980DD 98EDD3DF FFFFFFFF FFFFFFFF
300 static const char dh_ike_18_pem[] =
301 "-----BEGIN DH PARAMETERS-----\n"
302 "MIIECAKCBAEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb\n"
303 "IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft\n"
304 "awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT\n"
305 "mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh\n"
306 "fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq\n"
307 "5RXSJhiY+gUQFXKOWoqqxC2tMxcNBFB6M6hVIavfHLpk7PuFBFjb7wqK6nFXXQYM\n"
308 "fbOXD4Wm4eTHq/WujNsJM9cejJTgSiVhnc7j0iYa0u5r8S/6BtmKCGTYdgJzPshq\n"
309 "ZFIfKxgXeyAMu+EXV3phXWx3CYjAutlG4gjiT6B05asxQ9tb/OD9EI5LgtEgqSEI\n"
310 "ARpyPBKnh+bXiHGaEL26WyaZwycYavTiPBqUaDS2FQvaJYPpyirUTOjbu8LbBN6O\n"
311 "+S6O/BQfvsqmKHxZR05rwF2ZspZPoJDDoiM7oYZRW+ftH2EpcM7i16+4G912IXBI\n"
312 "HNAGkSfVsFqpk7TqmI2P3cGG/7fckKbAj030Nck0AoSSNsP6tNJ8cCbB1NyyYCZG\n"
313 "3sl1HnY9uje9+P+UBq2eUw7l2zgvQTABrrBqU+2QJ9gxF5cnsIZaiRjaPtvrz5sU\n"
314 "7UTObLrO1Lsb238UR+bMJUszIFFRK9evQm+49AE3jNK/WYPKAcZLkuzwMuoV0XId\n"
315 "A/SC185udP721V5wL0aYDIK1qEAxkAscnlnnyX++x+jzI6l6fjbMiL4PHUW3/1ha\n"
316 "xUvUB7IrQVSqzI9tfr9I4dgUzF7SD4A34KeXFe7ym+MoBqHVi7fF2nb1UKo9ih+/\n"
317 "8OsZzLGjE9Vc2lbJ7C7yljI4f+jXbjwEaAQ+j2Y/SGDuEr8tWwt0dNbmlPkebb4R\n"
318 "WXSjkm8S/uXkOHd8tqky34zYvsTQc7kxujvIMraNndMAdB+nv4r8R+0ldvaTa6Qk\n"
319 "ZjqrY5xa5PVoNCO0dCvxyXgjjxbL451lLeP9uL78hIrZIiIuBKQDfAcT61eoGiPw\n"
320 "xzRz/GRs6jBrS8vIhi+Dhd36nUt/osCH6HloMwPtW906Bis89bOieKZtKhP4P0T4\n"
321 "Ld8xDuB0q2o2RZfomaAlXcFk8xzFCEaFHfmrSBld7X6hsdUQvX7nTXP682vDHs+i\n"
322 "aDWQRvTrh5+SQAlDi0gcbNeImgAu1e44K8kZDab8Am5HlVjkR1Z36aqeMFDidlaU\n"
323 "38gfVuiAuW5xYMmA3Zjt09///////////wIBAg==\n"
324 "-----END DH PARAMETERS-----\n";
326 /* RFC 5114 IKE_id=22
327 2.1. 1024-bit MODP Group with 160-bit Prime Order Subgroup
329 The hexadecimal value of the prime is:
331 p = B10B8F96 A080E01D DE92DE5E AE5D54EC 52C99FBC FB06A3C6
332 9A6A9DCA 52D23B61 6073E286 75A23D18 9838EF1E 2EE652C0
333 13ECB4AE A9061123 24975C3C D49B83BF ACCBDD7D 90C4BD70
334 98488E9C 219A7372 4EFFD6FA E5644738 FAA31A4F F55BCCC0
335 A151AF5F 0DC8B4BD 45BF37DF 365C1A65 E68CFDA7 6D4DA708
338 The hexadecimal value of the generator is:
340 g = A4D1CBD5 C3FD3412 6765A442 EFB99905 F8104DD2 58AC507F
341 D6406CFF 14266D31 266FEA1E 5C41564B 777E690F 5504F213
342 160217B4 B01B886A 5E91547F 9E2749F4 D7FBD7D3 B9A92EE1
343 909D0D22 63F80A76 A6A24C08 7A091F53 1DBF0A01 69B6A28A
344 D662A4D1 8E73AFA3 2D779D59 18D08BC8 858F4DCE F97C2A24
347 The generator generates a prime-order subgroup of size:
349 q = F518AA87 81A8DF27 8ABA4E7D 64B7CB9D 49462353
351 static const char dh_ike_22_pem[] =
352 "-----BEGIN DH PARAMETERS-----\n"
353 "MIIBDAKBgQCxC4+WoIDgHd6S3l6uXVTsUsmfvPsGo8aaap3KUtI7YWBz4oZ1oj0Y\n"
354 "mDjvHi7mUsAT7LSuqQYRIySXXDzUm4O/rMvdfZDEvXCYSI6cIZpzck7/1vrlZEc4\n"
355 "+qMaT/VbzMChUa9fDci0vUW/N982XBpl5oz9p21NpwjfH7K8LkpDcQKBgQCk0cvV\n"
356 "w/00EmdlpELvuZkF+BBN0lisUH/WQGz/FCZtMSZv6h5cQVZLd35pD1UE8hMWAhe0\n"
357 "sBuIal6RVH+eJ0n01/vX07mpLuGQnQ0iY/gKdqaiTAh6CR9THb8KAWm2oorWYqTR\n"
358 "jnOvoy13nVkY0IvIhY9Nzvl8KiSFXm7rIrOy5QICAKA=\n"
359 "-----END DH PARAMETERS-----\n";
361 /* RFC 5114 IKE_id=23
362 2.2. 2048-bit MODP Group with 224-bit Prime Order Subgroup
364 The hexadecimal value of the prime is:
366 p = AD107E1E 9123A9D0 D660FAA7 9559C51F A20D64E5 683B9FD1
367 B54B1597 B61D0A75 E6FA141D F95A56DB AF9A3C40 7BA1DF15
368 EB3D688A 309C180E 1DE6B85A 1274A0A6 6D3F8152 AD6AC212
369 9037C9ED EFDA4DF8 D91E8FEF 55B7394B 7AD5B7D0 B6C12207
370 C9F98D11 ED34DBF6 C6BA0B2C 8BBC27BE 6A00E0A0 B9C49708
371 B3BF8A31 70918836 81286130 BC8985DB 1602E714 415D9330
372 278273C7 DE31EFDC 7310F712 1FD5A074 15987D9A DC0A486D
373 CDF93ACC 44328387 315D75E1 98C641A4 80CD86A1 B9E587E8
374 BE60E69C C928B2B9 C52172E4 13042E9B 23F10B0E 16E79763
375 C9B53DCF 4BA80A29 E3FB73C1 6B8E75B9 7EF363E2 FFA31F71
376 CF9DE538 4E71B81C 0AC4DFFE 0C10E64F
378 The hexadecimal value of the generator is:
380 g = AC4032EF 4F2D9AE3 9DF30B5C 8FFDAC50 6CDEBE7B 89998CAF
381 74866A08 CFE4FFE3 A6824A4E 10B9A6F0 DD921F01 A70C4AFA
382 AB739D77 00C29F52 C57DB17C 620A8652 BE5E9001 A8D66AD7
383 C1766910 1999024A F4D02727 5AC1348B B8A762D0 521BC98A
384 E2471504 22EA1ED4 09939D54 DA7460CD B5F6C6B2 50717CBE
385 F180EB34 118E98D1 19529A45 D6F83456 6E3025E3 16A330EF
386 BB77A86F 0C1AB15B 051AE3D4 28C8F8AC B70A8137 150B8EEB
387 10E183ED D19963DD D9E263E4 770589EF 6AA21E7F 5F2FF381
388 B539CCE3 409D13CD 566AFBB4 8D6C0191 81E1BCFE 94B30269
389 EDFE72FE 9B6AA4BD 7B5A0F1C 71CFFF4C 19C418E1 F6EC0179
390 81BC087F 2A7065B3 84B890D3 191F2BFA
392 The generator generates a prime-order subgroup of size:
394 q = 801C0D34 C58D93FE 99717710 1F80535A 4738CEBC BF389A99
397 static const char dh_ike_23_pem[] =
398 "-----BEGIN DH PARAMETERS-----\n"
399 "MIICDgKCAQEArRB+HpEjqdDWYPqnlVnFH6INZOVoO5/RtUsVl7YdCnXm+hQd+VpW\n"
400 "26+aPEB7od8V6z1oijCcGA4d5rhaEnSgpm0/gVKtasISkDfJ7e/aTfjZHo/vVbc5\n"
401 "S3rVt9C2wSIHyfmNEe002/bGugssi7wnvmoA4KC5xJcIs7+KMXCRiDaBKGEwvImF\n"
402 "2xYC5xRBXZMwJ4Jzx94x79xzEPcSH9WgdBWYfZrcCkhtzfk6zEQyg4cxXXXhmMZB\n"
403 "pIDNhqG55YfovmDmnMkosrnFIXLkEwQumyPxCw4W55djybU9z0uoCinj+3PBa451\n"
404 "uX7zY+L/ox9xz53lOE5xuBwKxN/+DBDmTwKCAQEArEAy708tmuOd8wtcj/2sUGze\n"
405 "vnuJmYyvdIZqCM/k/+OmgkpOELmm8N2SHwGnDEr6q3OddwDCn1LFfbF8YgqGUr5e\n"
406 "kAGo1mrXwXZpEBmZAkr00CcnWsE0i7inYtBSG8mK4kcVBCLqHtQJk51U2nRgzbX2\n"
407 "xrJQcXy+8YDrNBGOmNEZUppF1vg0Vm4wJeMWozDvu3eobwwasVsFGuPUKMj4rLcK\n"
408 "gTcVC47rEOGD7dGZY93Z4mPkdwWJ72qiHn9fL/OBtTnM40CdE81Wavu0jWwBkYHh\n"
409 "vP6UswJp7f5y/ptqpL17Wg8ccc//TBnEGOH27AF5gbwIfypwZbOEuJDTGR8r+gIC\n"
411 "-----END DH PARAMETERS-----\n";
413 /* RFC 5114 IKE_id=24
414 2.3. 2048-bit MODP Group with 256-bit Prime Order Subgroup
416 The hexadecimal value of the prime is:
418 p = 87A8E61D B4B6663C FFBBD19C 65195999 8CEEF608 660DD0F2
419 5D2CEED4 435E3B00 E00DF8F1 D61957D4 FAF7DF45 61B2AA30
420 16C3D911 34096FAA 3BF4296D 830E9A7C 209E0C64 97517ABD
421 5A8A9D30 6BCF67ED 91F9E672 5B4758C0 22E0B1EF 4275BF7B
422 6C5BFC11 D45F9088 B941F54E B1E59BB8 BC39A0BF 12307F5C
423 4FDB70C5 81B23F76 B63ACAE1 CAA6B790 2D525267 35488A0E
424 F13C6D9A 51BFA4AB 3AD83477 96524D8E F6A167B5 A41825D9
425 67E144E5 14056425 1CCACB83 E6B486F6 B3CA3F79 71506026
426 C0B857F6 89962856 DED4010A BD0BE621 C3A3960A 54E710C3
427 75F26375 D7014103 A4B54330 C198AF12 6116D227 6E11715F
428 693877FA D7EF09CA DB094AE9 1E1A1597
430 The hexadecimal value of the generator is:
432 g = 3FB32C9B 73134D0B 2E775066 60EDBD48 4CA7B18F 21EF2054
433 07F4793A 1A0BA125 10DBC150 77BE463F FF4FED4A AC0BB555
434 BE3A6C1B 0C6B47B1 BC3773BF 7E8C6F62 901228F8 C28CBB18
435 A55AE313 41000A65 0196F931 C77A57F2 DDF463E5 E9EC144B
436 777DE62A AAB8A862 8AC376D2 82D6ED38 64E67982 428EBC83
437 1D14348F 6F2F9193 B5045AF2 767164E1 DFC967C1 FB3F2E55
438 A4BD1BFF E83B9C80 D052B985 D182EA0A DB2A3B73 13D3FE14
439 C8484B1E 052588B9 B7D2BBD2 DF016199 ECD06E15 57CD0915
440 B3353BBB 64E0EC37 7FD02837 0DF92B52 C7891428 CDC67EB6
441 184B523D 1DB246C3 2F630784 90F00EF8 D647D148 D4795451
442 5E2327CF EF98C582 664B4C0F 6CC41659
444 The generator generates a prime-order subgroup of size:
446 q = 8CF83642 A709A097 B4479976 40129DA2 99B1A47D 1EB3750B
449 static const char dh_ike_24_pem[] =
450 "-----BEGIN DH PARAMETERS-----\n"
451 "MIICDQKCAQEAh6jmHbS2Zjz/u9GcZRlZmYzu9ghmDdDyXSzu1ENeOwDgDfjx1hlX\n"
452 "1Pr330VhsqowFsPZETQJb6o79Cltgw6afCCeDGSXUXq9WoqdMGvPZ+2R+eZyW0dY\n"
453 "wCLgse9Cdb97bFv8EdRfkIi5QfVOseWbuLw5oL8SMH9cT9twxYGyP3a2Osrhyqa3\n"
454 "kC1SUmc1SIoO8TxtmlG/pKs62DR3llJNjvahZ7WkGCXZZ+FE5RQFZCUcysuD5rSG\n"
455 "9rPKP3lxUGAmwLhX9omWKFbe1AEKvQvmIcOjlgpU5xDDdfJjddcBQQOktUMwwZiv\n"
456 "EmEW0iduEXFfaTh3+tfvCcrbCUrpHhoVlwKCAQA/syybcxNNCy53UGZg7b1ITKex\n"
457 "jyHvIFQH9Hk6GguhJRDbwVB3vkY//0/tSqwLtVW+OmwbDGtHsbw3c79+jG9ikBIo\n"
458 "+MKMuxilWuMTQQAKZQGW+THHelfy3fRj5ensFEt3feYqqrioYorDdtKC1u04ZOZ5\n"
459 "gkKOvIMdFDSPby+Rk7UEWvJ2cWTh38lnwfs/LlWkvRv/6DucgNBSuYXRguoK2yo7\n"
460 "cxPT/hTISEseBSWIubfSu9LfAWGZ7NBuFVfNCRWzNTu7ZODsN3/QKDcN+StSx4kU\n"
461 "KM3GfrYYS1I9HbJGwy9jB4SQ8A741kfRSNR5VFFeIyfP75jFgmZLTA9sxBZZAgIB\n"
463 "-----END DH PARAMETERS-----\n";
465 /* ------------------------------------------------------------------------- */
466 /* RFC 7919 Published August 2016, so strength estimates date from then.
470 The 2048-bit group has registry value 256 and is calculated from the
475 p = 2^2048 - 2^1984 + {[2^1918 * e] + 560316 } * 2^64 - 1
477 The hexadecimal representation of p is:
479 FFFFFFFF FFFFFFFF ADF85458 A2BB4A9A AFDC5620 273D3CF1
480 D8B9C583 CE2D3695 A9E13641 146433FB CC939DCE 249B3EF9
481 7D2FE363 630C75D8 F681B202 AEC4617A D3DF1ED5 D5FD6561
482 2433F51F 5F066ED0 85636555 3DED1AF3 B557135E 7F57C935
483 984F0C70 E0E68B77 E2A689DA F3EFE872 1DF158A1 36ADE735
484 30ACCA4F 483A797A BC0AB182 B324FB61 D108A94B B2C8E3FB
485 B96ADAB7 60D7F468 1D4F42A3 DE394DF4 AE56EDE7 6372BB19
486 0B07A7C8 EE0A6D70 9E02FCE1 CDF7E2EC C03404CD 28342F61
487 9172FE9C E98583FF 8E4F1232 EEF28183 C3FE3B1B 4C6FAD73
488 3BB5FCBC 2EC22005 C58EF183 7D1683B2 C6F34A26 C1B2EFFA
489 886B4238 61285C97 FFFFFFFF FFFFFFFF
491 The generator is: g = 2
493 The group size is: q = (p-1)/2
495 The hexadecimal representation of q is:
497 7FFFFFFF FFFFFFFF D6FC2A2C 515DA54D 57EE2B10 139E9E78
498 EC5CE2C1 E7169B4A D4F09B20 8A3219FD E649CEE7 124D9F7C
499 BE97F1B1 B1863AEC 7B40D901 576230BD 69EF8F6A EAFEB2B0
500 9219FA8F AF833768 42B1B2AA 9EF68D79 DAAB89AF 3FABE49A
501 CC278638 707345BB F15344ED 79F7F439 0EF8AC50 9B56F39A
502 98566527 A41D3CBD 5E0558C1 59927DB0 E88454A5 D96471FD
503 DCB56D5B B06BFA34 0EA7A151 EF1CA6FA 572B76F3 B1B95D8C
504 8583D3E4 770536B8 4F017E70 E6FBF176 601A0266 941A17B0
505 C8B97F4E 74C2C1FF C7278919 777940C1 E1FF1D8D A637D6B9
506 9DDAFE5E 17611002 E2C778C1 BE8B41D9 6379A513 60D977FD
507 4435A11C 30942E4B FFFFFFFF FFFFFFFF
509 The estimated symmetric-equivalent strength of this group is 103
512 static const char dh_ffdhe2048_pem[] =
513 "-----BEGIN DH PARAMETERS-----\n"
514 "MIIBDAKCAQEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz\n"
515 "+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a\n"
516 "87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7\n"
517 "YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi\n"
518 "7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD\n"
519 "ssbzSibBsu/6iGtCOGEoXJf//////////wIBAgICB/8=\n"
520 "-----END DH PARAMETERS-----\n";
525 The 3072-bit prime has registry value 257 and is calculated from the
530 p = 2^3072 - 2^3008 + {[2^2942 * e] + 2625351} * 2^64 - 1
532 The hexadecimal representation of p is:
534 FFFFFFFF FFFFFFFF ADF85458 A2BB4A9A AFDC5620 273D3CF1
535 D8B9C583 CE2D3695 A9E13641 146433FB CC939DCE 249B3EF9
536 7D2FE363 630C75D8 F681B202 AEC4617A D3DF1ED5 D5FD6561
537 2433F51F 5F066ED0 85636555 3DED1AF3 B557135E 7F57C935
538 984F0C70 E0E68B77 E2A689DA F3EFE872 1DF158A1 36ADE735
539 30ACCA4F 483A797A BC0AB182 B324FB61 D108A94B B2C8E3FB
540 B96ADAB7 60D7F468 1D4F42A3 DE394DF4 AE56EDE7 6372BB19
541 0B07A7C8 EE0A6D70 9E02FCE1 CDF7E2EC C03404CD 28342F61
542 9172FE9C E98583FF 8E4F1232 EEF28183 C3FE3B1B 4C6FAD73
543 3BB5FCBC 2EC22005 C58EF183 7D1683B2 C6F34A26 C1B2EFFA
544 886B4238 611FCFDC DE355B3B 6519035B BC34F4DE F99C0238
545 61B46FC9 D6E6C907 7AD91D26 91F7F7EE 598CB0FA C186D91C
546 AEFE1309 85139270 B4130C93 BC437944 F4FD4452 E2D74DD3
547 64F2E21E 71F54BFF 5CAE82AB 9C9DF69E E86D2BC5 22363A0D
548 ABC52197 9B0DEADA 1DBF9A42 D5C4484E 0ABCD06B FA53DDEF
549 3C1B20EE 3FD59D7C 25E41D2B 66C62E37 FFFFFFFF FFFFFFFF
551 The generator is: g = 2
553 The group size is: q = (p-1)/2
555 The hexadecimal representation of q is:
557 7FFFFFFF FFFFFFFF D6FC2A2C 515DA54D 57EE2B10 139E9E78
558 EC5CE2C1 E7169B4A D4F09B20 8A3219FD E649CEE7 124D9F7C
559 BE97F1B1 B1863AEC 7B40D901 576230BD 69EF8F6A EAFEB2B0
560 9219FA8F AF833768 42B1B2AA 9EF68D79 DAAB89AF 3FABE49A
561 CC278638 707345BB F15344ED 79F7F439 0EF8AC50 9B56F39A
562 98566527 A41D3CBD 5E0558C1 59927DB0 E88454A5 D96471FD
563 DCB56D5B B06BFA34 0EA7A151 EF1CA6FA 572B76F3 B1B95D8C
564 8583D3E4 770536B8 4F017E70 E6FBF176 601A0266 941A17B0
565 C8B97F4E 74C2C1FF C7278919 777940C1 E1FF1D8D A637D6B9
566 9DDAFE5E 17611002 E2C778C1 BE8B41D9 6379A513 60D977FD
567 4435A11C 308FE7EE 6F1AAD9D B28C81AD DE1A7A6F 7CCE011C
568 30DA37E4 EB736483 BD6C8E93 48FBFBF7 2CC6587D 60C36C8E
569 577F0984 C289C938 5A098649 DE21BCA2 7A7EA229 716BA6E9
570 B279710F 38FAA5FF AE574155 CE4EFB4F 743695E2 911B1D06
571 D5E290CB CD86F56D 0EDFCD21 6AE22427 055E6835 FD29EEF7
572 9E0D9077 1FEACEBE 12F20E95 B363171B FFFFFFFF FFFFFFFF
574 The estimated symmetric-equivalent strength of this group is 125
577 static const char dh_ffdhe3072_pem[] =
578 "-----BEGIN DH PARAMETERS-----\n"
579 "MIIBjAKCAYEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz\n"
580 "+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a\n"
581 "87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7\n"
582 "YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi\n"
583 "7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD\n"
584 "ssbzSibBsu/6iGtCOGEfz9zeNVs7ZRkDW7w09N75nAI4YbRvydbmyQd62R0mkff3\n"
585 "7lmMsPrBhtkcrv4TCYUTknC0EwyTvEN5RPT9RFLi103TZPLiHnH1S/9croKrnJ32\n"
586 "nuhtK8UiNjoNq8Uhl5sN6todv5pC1cRITgq80Gv6U93vPBsg7j/VnXwl5B0rZsYu\n"
587 "N///////////AgECAgIL/w==\n"
588 "-----END DH PARAMETERS-----\n";
593 The 4096-bit group has registry value 258 and is calculated from the
598 p = 2^4096 - 2^4032 + {[2^3966 * e] + 5736041} * 2^64 - 1
600 The hexadecimal representation of p is:
602 FFFFFFFF FFFFFFFF ADF85458 A2BB4A9A AFDC5620 273D3CF1
603 D8B9C583 CE2D3695 A9E13641 146433FB CC939DCE 249B3EF9
604 7D2FE363 630C75D8 F681B202 AEC4617A D3DF1ED5 D5FD6561
605 2433F51F 5F066ED0 85636555 3DED1AF3 B557135E 7F57C935
606 984F0C70 E0E68B77 E2A689DA F3EFE872 1DF158A1 36ADE735
607 30ACCA4F 483A797A BC0AB182 B324FB61 D108A94B B2C8E3FB
608 B96ADAB7 60D7F468 1D4F42A3 DE394DF4 AE56EDE7 6372BB19
609 0B07A7C8 EE0A6D70 9E02FCE1 CDF7E2EC C03404CD 28342F61
610 9172FE9C E98583FF 8E4F1232 EEF28183 C3FE3B1B 4C6FAD73
611 3BB5FCBC 2EC22005 C58EF183 7D1683B2 C6F34A26 C1B2EFFA
612 886B4238 611FCFDC DE355B3B 6519035B BC34F4DE F99C0238
613 61B46FC9 D6E6C907 7AD91D26 91F7F7EE 598CB0FA C186D91C
614 AEFE1309 85139270 B4130C93 BC437944 F4FD4452 E2D74DD3
615 64F2E21E 71F54BFF 5CAE82AB 9C9DF69E E86D2BC5 22363A0D
616 ABC52197 9B0DEADA 1DBF9A42 D5C4484E 0ABCD06B FA53DDEF
617 3C1B20EE 3FD59D7C 25E41D2B 669E1EF1 6E6F52C3 164DF4FB
618 7930E9E4 E58857B6 AC7D5F42 D69F6D18 7763CF1D 55034004
619 87F55BA5 7E31CC7A 7135C886 EFB4318A ED6A1E01 2D9E6832
620 A907600A 918130C4 6DC778F9 71AD0038 092999A3 33CB8B7A
621 1A1DB93D 7140003C 2A4ECEA9 F98D0ACC 0A8291CD CEC97DCF
622 8EC9B55A 7F88A46B 4DB5A851 F44182E1 C68A007E 5E655F6A
625 The generator is: g = 2
627 The group size is: q = (p-1)/2
629 The hexadecimal representation of q is:
631 7FFFFFFF FFFFFFFF D6FC2A2C 515DA54D 57EE2B10 139E9E78
632 EC5CE2C1 E7169B4A D4F09B20 8A3219FD E649CEE7 124D9F7C
633 BE97F1B1 B1863AEC 7B40D901 576230BD 69EF8F6A EAFEB2B0
634 9219FA8F AF833768 42B1B2AA 9EF68D79 DAAB89AF 3FABE49A
635 CC278638 707345BB F15344ED 79F7F439 0EF8AC50 9B56F39A
636 98566527 A41D3CBD 5E0558C1 59927DB0 E88454A5 D96471FD
637 DCB56D5B B06BFA34 0EA7A151 EF1CA6FA 572B76F3 B1B95D8C
638 8583D3E4 770536B8 4F017E70 E6FBF176 601A0266 941A17B0
639 C8B97F4E 74C2C1FF C7278919 777940C1 E1FF1D8D A637D6B9
640 9DDAFE5E 17611002 E2C778C1 BE8B41D9 6379A513 60D977FD
641 4435A11C 308FE7EE 6F1AAD9D B28C81AD DE1A7A6F 7CCE011C
642 30DA37E4 EB736483 BD6C8E93 48FBFBF7 2CC6587D 60C36C8E
643 577F0984 C289C938 5A098649 DE21BCA2 7A7EA229 716BA6E9
644 B279710F 38FAA5FF AE574155 CE4EFB4F 743695E2 911B1D06
645 D5E290CB CD86F56D 0EDFCD21 6AE22427 055E6835 FD29EEF7
646 9E0D9077 1FEACEBE 12F20E95 B34F0F78 B737A961 8B26FA7D
647 BC9874F2 72C42BDB 563EAFA1 6B4FB68C 3BB1E78E AA81A002
648 43FAADD2 BF18E63D 389AE443 77DA18C5 76B50F00 96CF3419
649 5483B005 48C09862 36E3BC7C B8D6801C 0494CCD1 99E5C5BD
650 0D0EDC9E B8A0001E 15276754 FCC68566 054148E6 E764BEE7
651 C764DAAD 3FC45235 A6DAD428 FA20C170 E345003F 2F32AFB5
654 The estimated symmetric-equivalent strength of this group is 150
657 static const char dh_ffdhe4096_pem[] =
658 "-----BEGIN DH PARAMETERS-----\n"
659 "MIICDAKCAgEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz\n"
660 "+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a\n"
661 "87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7\n"
662 "YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi\n"
663 "7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD\n"
664 "ssbzSibBsu/6iGtCOGEfz9zeNVs7ZRkDW7w09N75nAI4YbRvydbmyQd62R0mkff3\n"
665 "7lmMsPrBhtkcrv4TCYUTknC0EwyTvEN5RPT9RFLi103TZPLiHnH1S/9croKrnJ32\n"
666 "nuhtK8UiNjoNq8Uhl5sN6todv5pC1cRITgq80Gv6U93vPBsg7j/VnXwl5B0rZp4e\n"
667 "8W5vUsMWTfT7eTDp5OWIV7asfV9C1p9tGHdjzx1VA0AEh/VbpX4xzHpxNciG77Qx\n"
668 "iu1qHgEtnmgyqQdgCpGBMMRtx3j5ca0AOAkpmaMzy4t6Gh25PXFAADwqTs6p+Y0K\n"
669 "zAqCkc3OyX3Pjsm1Wn+IpGtNtahR9EGC4caKAH5eZV9q//////////8CAQICAg//\n"
670 "-----END DH PARAMETERS-----\n";
675 The 6144-bit group has registry value 259 and is calculated from the
680 p = 2^6144 - 2^6080 + {[2^6014 * e] + 15705020} * 2^64 - 1
682 The hexadecimal representation of p is:
684 FFFFFFFF FFFFFFFF ADF85458 A2BB4A9A AFDC5620 273D3CF1
685 D8B9C583 CE2D3695 A9E13641 146433FB CC939DCE 249B3EF9
686 7D2FE363 630C75D8 F681B202 AEC4617A D3DF1ED5 D5FD6561
687 2433F51F 5F066ED0 85636555 3DED1AF3 B557135E 7F57C935
688 984F0C70 E0E68B77 E2A689DA F3EFE872 1DF158A1 36ADE735
689 30ACCA4F 483A797A BC0AB182 B324FB61 D108A94B B2C8E3FB
690 B96ADAB7 60D7F468 1D4F42A3 DE394DF4 AE56EDE7 6372BB19
691 0B07A7C8 EE0A6D70 9E02FCE1 CDF7E2EC C03404CD 28342F61
692 9172FE9C E98583FF 8E4F1232 EEF28183 C3FE3B1B 4C6FAD73
693 3BB5FCBC 2EC22005 C58EF183 7D1683B2 C6F34A26 C1B2EFFA
694 886B4238 611FCFDC DE355B3B 6519035B BC34F4DE F99C0238
695 61B46FC9 D6E6C907 7AD91D26 91F7F7EE 598CB0FA C186D91C
696 AEFE1309 85139270 B4130C93 BC437944 F4FD4452 E2D74DD3
697 64F2E21E 71F54BFF 5CAE82AB 9C9DF69E E86D2BC5 22363A0D
698 ABC52197 9B0DEADA 1DBF9A42 D5C4484E 0ABCD06B FA53DDEF
699 3C1B20EE 3FD59D7C 25E41D2B 669E1EF1 6E6F52C3 164DF4FB
700 7930E9E4 E58857B6 AC7D5F42 D69F6D18 7763CF1D 55034004
701 87F55BA5 7E31CC7A 7135C886 EFB4318A ED6A1E01 2D9E6832
702 A907600A 918130C4 6DC778F9 71AD0038 092999A3 33CB8B7A
703 1A1DB93D 7140003C 2A4ECEA9 F98D0ACC 0A8291CD CEC97DCF
704 8EC9B55A 7F88A46B 4DB5A851 F44182E1 C68A007E 5E0DD902
705 0BFD64B6 45036C7A 4E677D2C 38532A3A 23BA4442 CAF53EA6
706 3BB45432 9B7624C8 917BDD64 B1C0FD4C B38E8C33 4C701C3A
707 CDAD0657 FCCFEC71 9B1F5C3E 4E46041F 388147FB 4CFDB477
708 A52471F7 A9A96910 B855322E DB6340D8 A00EF092 350511E3
709 0ABEC1FF F9E3A26E 7FB29F8C 183023C3 587E38DA 0077D9B4
710 763E4E4B 94B2BBC1 94C6651E 77CAF992 EEAAC023 2A281BF6
711 B3A739C1 22611682 0AE8DB58 47A67CBE F9C9091B 462D538C
712 D72B0374 6AE77F5E 62292C31 1562A846 505DC82D B854338A
713 E49F5235 C95B9117 8CCF2DD5 CACEF403 EC9D1810 C6272B04
714 5B3B71F9 DC6B80D6 3FDD4A8E 9ADB1E69 62A69526 D43161C1
715 A41D570D 7938DAD4 A40E329C D0E40E65 FFFFFFFF FFFFFFFF
717 The generator is: g = 2
719 The group size is: q = (p-1)/2
721 The hexadecimal representation of q is:
723 7FFFFFFF FFFFFFFF D6FC2A2C 515DA54D 57EE2B10 139E9E78
724 EC5CE2C1 E7169B4A D4F09B20 8A3219FD E649CEE7 124D9F7C
725 BE97F1B1 B1863AEC 7B40D901 576230BD 69EF8F6A EAFEB2B0
726 9219FA8F AF833768 42B1B2AA 9EF68D79 DAAB89AF 3FABE49A
727 CC278638 707345BB F15344ED 79F7F439 0EF8AC50 9B56F39A
728 98566527 A41D3CBD 5E0558C1 59927DB0 E88454A5 D96471FD
729 DCB56D5B B06BFA34 0EA7A151 EF1CA6FA 572B76F3 B1B95D8C
730 8583D3E4 770536B8 4F017E70 E6FBF176 601A0266 941A17B0
731 C8B97F4E 74C2C1FF C7278919 777940C1 E1FF1D8D A637D6B9
732 9DDAFE5E 17611002 E2C778C1 BE8B41D9 6379A513 60D977FD
733 4435A11C 308FE7EE 6F1AAD9D B28C81AD DE1A7A6F 7CCE011C
734 30DA37E4 EB736483 BD6C8E93 48FBFBF7 2CC6587D 60C36C8E
735 577F0984 C289C938 5A098649 DE21BCA2 7A7EA229 716BA6E9
736 B279710F 38FAA5FF AE574155 CE4EFB4F 743695E2 911B1D06
737 D5E290CB CD86F56D 0EDFCD21 6AE22427 055E6835 FD29EEF7
738 9E0D9077 1FEACEBE 12F20E95 B34F0F78 B737A961 8B26FA7D
739 BC9874F2 72C42BDB 563EAFA1 6B4FB68C 3BB1E78E AA81A002
740 43FAADD2 BF18E63D 389AE443 77DA18C5 76B50F00 96CF3419
741 5483B005 48C09862 36E3BC7C B8D6801C 0494CCD1 99E5C5BD
742 0D0EDC9E B8A0001E 15276754 FCC68566 054148E6 E764BEE7
743 C764DAAD 3FC45235 A6DAD428 FA20C170 E345003F 2F06EC81
744 05FEB25B 2281B63D 2733BE96 1C29951D 11DD2221 657A9F53
745 1DDA2A19 4DBB1264 48BDEEB2 58E07EA6 59C74619 A6380E1D
746 66D6832B FE67F638 CD8FAE1F 2723020F 9C40A3FD A67EDA3B
747 D29238FB D4D4B488 5C2A9917 6DB1A06C 50077849 1A8288F1
748 855F60FF FCF1D137 3FD94FC6 0C1811E1 AC3F1C6D 003BECDA
749 3B1F2725 CA595DE0 CA63328F 3BE57CC9 77556011 95140DFB
750 59D39CE0 91308B41 05746DAC 23D33E5F 7CE4848D A316A9C6
751 6B9581BA 3573BFAF 31149618 8AB15423 282EE416 DC2A19C5
752 724FA91A E4ADC88B C66796EA E5677A01 F64E8C08 63139582
753 2D9DB8FC EE35C06B 1FEEA547 4D6D8F34 B1534A93 6A18B0E0
754 D20EAB86 BC9C6D6A 5207194E 68720732 FFFFFFFF FFFFFFFF
756 The estimated symmetric-equivalent strength of this group is 175
759 static const char dh_ffdhe6144_pem[] =
760 "-----BEGIN DH PARAMETERS-----\n"
761 "MIIDDAKCAwEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz\n"
762 "+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a\n"
763 "87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7\n"
764 "YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi\n"
765 "7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD\n"
766 "ssbzSibBsu/6iGtCOGEfz9zeNVs7ZRkDW7w09N75nAI4YbRvydbmyQd62R0mkff3\n"
767 "7lmMsPrBhtkcrv4TCYUTknC0EwyTvEN5RPT9RFLi103TZPLiHnH1S/9croKrnJ32\n"
768 "nuhtK8UiNjoNq8Uhl5sN6todv5pC1cRITgq80Gv6U93vPBsg7j/VnXwl5B0rZp4e\n"
769 "8W5vUsMWTfT7eTDp5OWIV7asfV9C1p9tGHdjzx1VA0AEh/VbpX4xzHpxNciG77Qx\n"
770 "iu1qHgEtnmgyqQdgCpGBMMRtx3j5ca0AOAkpmaMzy4t6Gh25PXFAADwqTs6p+Y0K\n"
771 "zAqCkc3OyX3Pjsm1Wn+IpGtNtahR9EGC4caKAH5eDdkCC/1ktkUDbHpOZ30sOFMq\n"
772 "OiO6RELK9T6mO7RUMpt2JMiRe91kscD9TLOOjDNMcBw6za0GV/zP7HGbH1w+TkYE\n"
773 "HziBR/tM/bR3pSRx96mpaRC4VTIu22NA2KAO8JI1BRHjCr7B//njom5/sp+MGDAj\n"
774 "w1h+ONoAd9m0dj5OS5Syu8GUxmUed8r5ku6qwCMqKBv2s6c5wSJhFoIK6NtYR6Z8\n"
775 "vvnJCRtGLVOM1ysDdGrnf15iKSwxFWKoRlBdyC24VDOK5J9SNclbkReMzy3Vys70\n"
776 "A+ydGBDGJysEWztx+dxrgNY/3UqOmtseaWKmlSbUMWHBpB1XDXk42tSkDjKc0OQO\n"
777 "Zf//////////AgECAgIX/w==\n"
778 "-----END DH PARAMETERS-----\n";
783 The 8192-bit group has registry value 260 and is calculated from the
788 p = 2^8192 - 2^8128 + {[2^8062 * e] + 10965728} * 2^64 - 1
790 The hexadecimal representation of p is:
792 FFFFFFFF FFFFFFFF ADF85458 A2BB4A9A AFDC5620 273D3CF1
793 D8B9C583 CE2D3695 A9E13641 146433FB CC939DCE 249B3EF9
794 7D2FE363 630C75D8 F681B202 AEC4617A D3DF1ED5 D5FD6561
795 2433F51F 5F066ED0 85636555 3DED1AF3 B557135E 7F57C935
796 984F0C70 E0E68B77 E2A689DA F3EFE872 1DF158A1 36ADE735
797 30ACCA4F 483A797A BC0AB182 B324FB61 D108A94B B2C8E3FB
798 B96ADAB7 60D7F468 1D4F42A3 DE394DF4 AE56EDE7 6372BB19
799 0B07A7C8 EE0A6D70 9E02FCE1 CDF7E2EC C03404CD 28342F61
800 9172FE9C E98583FF 8E4F1232 EEF28183 C3FE3B1B 4C6FAD73
801 3BB5FCBC 2EC22005 C58EF183 7D1683B2 C6F34A26 C1B2EFFA
802 886B4238 611FCFDC DE355B3B 6519035B BC34F4DE F99C0238
803 61B46FC9 D6E6C907 7AD91D26 91F7F7EE 598CB0FA C186D91C
804 AEFE1309 85139270 B4130C93 BC437944 F4FD4452 E2D74DD3
805 64F2E21E 71F54BFF 5CAE82AB 9C9DF69E E86D2BC5 22363A0D
806 ABC52197 9B0DEADA 1DBF9A42 D5C4484E 0ABCD06B FA53DDEF
807 3C1B20EE 3FD59D7C 25E41D2B 669E1EF1 6E6F52C3 164DF4FB
808 7930E9E4 E58857B6 AC7D5F42 D69F6D18 7763CF1D 55034004
809 87F55BA5 7E31CC7A 7135C886 EFB4318A ED6A1E01 2D9E6832
810 A907600A 918130C4 6DC778F9 71AD0038 092999A3 33CB8B7A
811 1A1DB93D 7140003C 2A4ECEA9 F98D0ACC 0A8291CD CEC97DCF
812 8EC9B55A 7F88A46B 4DB5A851 F44182E1 C68A007E 5E0DD902
813 0BFD64B6 45036C7A 4E677D2C 38532A3A 23BA4442 CAF53EA6
814 3BB45432 9B7624C8 917BDD64 B1C0FD4C B38E8C33 4C701C3A
815 CDAD0657 FCCFEC71 9B1F5C3E 4E46041F 388147FB 4CFDB477
816 A52471F7 A9A96910 B855322E DB6340D8 A00EF092 350511E3
817 0ABEC1FF F9E3A26E 7FB29F8C 183023C3 587E38DA 0077D9B4
818 763E4E4B 94B2BBC1 94C6651E 77CAF992 EEAAC023 2A281BF6
819 B3A739C1 22611682 0AE8DB58 47A67CBE F9C9091B 462D538C
820 D72B0374 6AE77F5E 62292C31 1562A846 505DC82D B854338A
821 E49F5235 C95B9117 8CCF2DD5 CACEF403 EC9D1810 C6272B04
822 5B3B71F9 DC6B80D6 3FDD4A8E 9ADB1E69 62A69526 D43161C1
823 A41D570D 7938DAD4 A40E329C CFF46AAA 36AD004C F600C838
824 1E425A31 D951AE64 FDB23FCE C9509D43 687FEB69 EDD1CC5E
825 0B8CC3BD F64B10EF 86B63142 A3AB8829 555B2F74 7C932665
826 CB2C0F1C C01BD702 29388839 D2AF05E4 54504AC7 8B758282
827 2846C0BA 35C35F5C 59160CC0 46FD8251 541FC68C 9C86B022
828 BB709987 6A460E74 51A8A931 09703FEE 1C217E6C 3826E52C
829 51AA691E 0E423CFC 99E9E316 50C1217B 624816CD AD9A95F9
830 D5B80194 88D9C0A0 A1FE3075 A577E231 83F81D4A 3F2FA457
831 1EFC8CE0 BA8A4FE8 B6855DFE 72B0A66E DED2FBAB FBE58A30
832 FAFABE1C 5D71A87E 2F741EF8 C1FE86FE A6BBFDE5 30677F0D
833 97D11D49 F7A8443D 0822E506 A9F4614E 011E2A94 838FF88C
834 D68C8BB7 C5C6424C FFFFFFFF FFFFFFFF
836 The generator is: g = 2
838 The group size is: q = (p-1)/2
840 The hexadecimal representation of q is:
842 7FFFFFFF FFFFFFFF D6FC2A2C 515DA54D 57EE2B10 139E9E78
843 EC5CE2C1 E7169B4A D4F09B20 8A3219FD E649CEE7 124D9F7C
844 BE97F1B1 B1863AEC 7B40D901 576230BD 69EF8F6A EAFEB2B0
845 9219FA8F AF833768 42B1B2AA 9EF68D79 DAAB89AF 3FABE49A
846 CC278638 707345BB F15344ED 79F7F439 0EF8AC50 9B56F39A
847 98566527 A41D3CBD 5E0558C1 59927DB0 E88454A5 D96471FD
848 DCB56D5B B06BFA34 0EA7A151 EF1CA6FA 572B76F3 B1B95D8C
849 8583D3E4 770536B8 4F017E70 E6FBF176 601A0266 941A17B0
850 C8B97F4E 74C2C1FF C7278919 777940C1 E1FF1D8D A637D6B9
851 9DDAFE5E 17611002 E2C778C1 BE8B41D9 6379A513 60D977FD
852 4435A11C 308FE7EE 6F1AAD9D B28C81AD DE1A7A6F 7CCE011C
853 30DA37E4 EB736483 BD6C8E93 48FBFBF7 2CC6587D 60C36C8E
854 577F0984 C289C938 5A098649 DE21BCA2 7A7EA229 716BA6E9
855 B279710F 38FAA5FF AE574155 CE4EFB4F 743695E2 911B1D06
856 D5E290CB CD86F56D 0EDFCD21 6AE22427 055E6835 FD29EEF7
857 9E0D9077 1FEACEBE 12F20E95 B34F0F78 B737A961 8B26FA7D
858 BC9874F2 72C42BDB 563EAFA1 6B4FB68C 3BB1E78E AA81A002
859 43FAADD2 BF18E63D 389AE443 77DA18C5 76B50F00 96CF3419
860 5483B005 48C09862 36E3BC7C B8D6801C 0494CCD1 99E5C5BD
861 0D0EDC9E B8A0001E 15276754 FCC68566 054148E6 E764BEE7
862 C764DAAD 3FC45235 A6DAD428 FA20C170 E345003F 2F06EC81
863 05FEB25B 2281B63D 2733BE96 1C29951D 11DD2221 657A9F53
864 1DDA2A19 4DBB1264 48BDEEB2 58E07EA6 59C74619 A6380E1D
865 66D6832B FE67F638 CD8FAE1F 2723020F 9C40A3FD A67EDA3B
866 D29238FB D4D4B488 5C2A9917 6DB1A06C 50077849 1A8288F1
867 855F60FF FCF1D137 3FD94FC6 0C1811E1 AC3F1C6D 003BECDA
868 3B1F2725 CA595DE0 CA63328F 3BE57CC9 77556011 95140DFB
869 59D39CE0 91308B41 05746DAC 23D33E5F 7CE4848D A316A9C6
870 6B9581BA 3573BFAF 31149618 8AB15423 282EE416 DC2A19C5
871 724FA91A E4ADC88B C66796EA E5677A01 F64E8C08 63139582
872 2D9DB8FC EE35C06B 1FEEA547 4D6D8F34 B1534A93 6A18B0E0
873 D20EAB86 BC9C6D6A 5207194E 67FA3555 1B568026 7B00641C
874 0F212D18 ECA8D732 7ED91FE7 64A84EA1 B43FF5B4 F6E8E62F
875 05C661DE FB258877 C35B18A1 51D5C414 AAAD97BA 3E499332
876 E596078E 600DEB81 149C441C E95782F2 2A282563 C5BAC141
877 1423605D 1AE1AFAE 2C8B0660 237EC128 AA0FE346 4E435811
878 5DB84CC3 B523073A 28D45498 84B81FF7 0E10BF36 1C137296
879 28D5348F 07211E7E 4CF4F18B 286090BD B1240B66 D6CD4AFC
880 EADC00CA 446CE050 50FF183A D2BBF118 C1FC0EA5 1F97D22B
881 8F7E4670 5D4527F4 5B42AEFF 39585337 6F697DD5 FDF2C518
882 7D7D5F0E 2EB8D43F 17BA0F7C 60FF437F 535DFEF2 9833BF86
883 CBE88EA4 FBD4221E 84117283 54FA30A7 008F154A 41C7FC46
884 6B4645DB E2E32126 7FFFFFFF FFFFFFFF
886 The estimated symmetric-equivalent strength of this group is 192
889 static const char dh_ffdhe8192_pem[] =
890 "-----BEGIN DH PARAMETERS-----\n"
891 "MIIEDAKCBAEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz\n"
892 "+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a\n"
893 "87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7\n"
894 "YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi\n"
895 "7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD\n"
896 "ssbzSibBsu/6iGtCOGEfz9zeNVs7ZRkDW7w09N75nAI4YbRvydbmyQd62R0mkff3\n"
897 "7lmMsPrBhtkcrv4TCYUTknC0EwyTvEN5RPT9RFLi103TZPLiHnH1S/9croKrnJ32\n"
898 "nuhtK8UiNjoNq8Uhl5sN6todv5pC1cRITgq80Gv6U93vPBsg7j/VnXwl5B0rZp4e\n"
899 "8W5vUsMWTfT7eTDp5OWIV7asfV9C1p9tGHdjzx1VA0AEh/VbpX4xzHpxNciG77Qx\n"
900 "iu1qHgEtnmgyqQdgCpGBMMRtx3j5ca0AOAkpmaMzy4t6Gh25PXFAADwqTs6p+Y0K\n"
901 "zAqCkc3OyX3Pjsm1Wn+IpGtNtahR9EGC4caKAH5eDdkCC/1ktkUDbHpOZ30sOFMq\n"
902 "OiO6RELK9T6mO7RUMpt2JMiRe91kscD9TLOOjDNMcBw6za0GV/zP7HGbH1w+TkYE\n"
903 "HziBR/tM/bR3pSRx96mpaRC4VTIu22NA2KAO8JI1BRHjCr7B//njom5/sp+MGDAj\n"
904 "w1h+ONoAd9m0dj5OS5Syu8GUxmUed8r5ku6qwCMqKBv2s6c5wSJhFoIK6NtYR6Z8\n"
905 "vvnJCRtGLVOM1ysDdGrnf15iKSwxFWKoRlBdyC24VDOK5J9SNclbkReMzy3Vys70\n"
906 "A+ydGBDGJysEWztx+dxrgNY/3UqOmtseaWKmlSbUMWHBpB1XDXk42tSkDjKcz/Rq\n"
907 "qjatAEz2AMg4HkJaMdlRrmT9sj/OyVCdQ2h/62nt0cxeC4zDvfZLEO+GtjFCo6uI\n"
908 "KVVbL3R8kyZlyywPHMAb1wIpOIg50q8F5FRQSseLdYKCKEbAujXDX1xZFgzARv2C\n"
909 "UVQfxoychrAiu3CZh2pGDnRRqKkxCXA/7hwhfmw4JuUsUappHg5CPPyZ6eMWUMEh\n"
910 "e2JIFs2tmpX51bgBlIjZwKCh/jB1pXfiMYP4HUo/L6RXHvyM4LqKT+i2hV3+crCm\n"
911 "bt7S+6v75Yow+vq+HF1xqH4vdB74wf6G/qa7/eUwZ38Nl9EdSfeoRD0IIuUGqfRh\n"
912 "TgEeKpSDj/iM1oyLt8XGQkz//////////wIBAgICH/8=\n"
913 "-----END DH PARAMETERS-----\n";
915 /* ========================================================================= */
918 * Generated by Phil as a non-standard option.
919 * openssl dhparam -2 2048
920 * No provenance to prove non-tampering available, beyond trusting that this
921 * developer generated this as stated above.
924 /* MacOSX 10.10.5 invoking system OpenSSL 0.9.8zg */
925 static const char dh_exim_20160529_1[] =
926 "-----BEGIN DH PARAMETERS-----\n"
927 "MIIBCAKCAQEA8ZMf89Gaye4bDEX1BXZ9+2edkXym9EK0GxmFilHEGpnhgLNmCk+H\n"
928 "cCb+zn8Ed5bpCOmRuEv9N/VKPjSpno8jYiQbFgUL3vh8uKvQLJNTzDVDbpd3YO7E\n"
929 "tiS0L0qWL57zIf8b3VZTMRsH4Orz2Rla61wVl6XpxE5WRfGqPS264Vvfew7xmCoi\n"
930 "INaFzIU6zwk2WeD6K5asctYlQG/UtgY1nRFkQTebIOpm03a6/hw7F14l3yUZgXfv\n"
931 "I3m4MFaWvxGcuZxddTijXw3VfjMdWvdH3Iz7IcqD32uEzK6Rgi/t4OVSw1kE2oDt\n"
932 "cFThPUCWb7O4TVq9Xt2UZqZFNU6kUAkv2wIBAg==\n"
933 "-----END DH PARAMETERS-----\n";
935 /* MacOSX 10.10.5 invoking OpenSSL 1.0.2h installed from brew bottle */
936 static const char dh_exim_20160529_2[] =
937 "-----BEGIN DH PARAMETERS-----\n"
938 "MIIBCAKCAQEAot84eqyfSb5l8GRCN2ioWP5T85Z/2lVX9A9r9JzwDfvliAAqm6Vp\n"
939 "UcHdAfVt54kc8DsmLiHdDhxY1I/wo+DcBylfVx13cmkroAocowOD5dwQMYk6iXjV\n"
940 "ys4heRJhYlAHgt8QZH8dA8c/HLs+rlAHhSUPnetsZmcoPE0LRsjigJsiVXasm+sl\n"
941 "g/77u5FCkgSrFILcD9PLPto1ciIXp2y8cjXQDk+D9FH1HaSCXLCLkuHxhQXxjTYO\n"
942 "C3Q53aNLkDJ4zpPt7Kc9NxQFBVlNc260IFDOHTWhgV2zpyG6oIzQoHSmmiLAAfcF\n"
943 "HrG7I06uZBLjuNGGaM0eeuxHNhs2G2EduwIBAg==\n"
944 "-----END DH PARAMETERS-----\n";
946 /* Ubuntu 14.04.4 running on dual-core Atom D2500 with OneRNG entropy key */
947 static const char dh_exim_20160529_3[] =
948 "-----BEGIN DH PARAMETERS-----\n"
949 "MIIBCAKCAQEAkbRYVoge2PtrmV1eKCKluSBFELgckuLSnkuH0TffqbmfoYM34lFu\n"
950 "2vPM2LhnzKvEBQlIICOTzQD29kROacRfSKpsNINRXhXKUqI6sFXzUZu4Flk69XKG\n"
951 "ZOSDYvWkI5pSn1amQ4Nnvn6s+uwn/f0ZDZDiKLW9TgntxJV4A2+yeymaeoGCbIXX\n"
952 "5q8WgajFhAeut36RL93HBnXT1hT7Eja1Y81w9fOzQrwBuXhyfCkAdiMA/VCp0UD4\n"
953 "0p7uf+okpckVnwD6WnUCHMij8nGlVblZELFYzNi0udtzIrSwlALbZXIeAqhbZXJO\n"
954 "lCuYspJhzV0Vs0lDJwrxvNwtdg1ernVIowIBAg==\n"
955 "-----END DH PARAMETERS-----\n";
957 /* ========================================================================= */
964 #define EXIM_DH_PRIME_DEFAULT dh_exim_20160529_3
966 /* KEEP SORTED ALPHABETICALLY;
967 * duplicate PEM are okay, if we want aliases, but names must be alphabetical */
968 static struct dh_constant dh_constants[] = {
970 { "default", EXIM_DH_PRIME_DEFAULT },
971 { "exim.dev.20160529.1", dh_exim_20160529_1 },
972 { "exim.dev.20160529.2", dh_exim_20160529_2 },
973 { "exim.dev.20160529.3", dh_exim_20160529_3 },
974 { "ffdhe2048", dh_ffdhe2048_pem },
975 { "ffdhe3072", dh_ffdhe3072_pem },
976 { "ffdhe4096", dh_ffdhe4096_pem },
977 { "ffdhe6144", dh_ffdhe6144_pem },
978 { "ffdhe8192", dh_ffdhe8192_pem },
979 { "ike1", dh_ike_1_pem },
980 { "ike14", dh_ike_14_pem },
981 { "ike15", dh_ike_15_pem },
982 { "ike16", dh_ike_16_pem },
983 { "ike17", dh_ike_17_pem },
984 { "ike18", dh_ike_18_pem },
985 { "ike2", dh_ike_2_pem },
986 { "ike22", dh_ike_22_pem },
987 { "ike23", dh_ike_23_pem },
988 { "ike24", dh_ike_24_pem },
989 { "ike5", dh_ike_5_pem },
991 static const int dh_constants_count =
992 sizeof(dh_constants) / sizeof(struct dh_constant);
995 /* A policy decision; in absence of any other data, use a 2048 bit prime,
996 * pick the first one from the latest RFC providing such. */
998 std_dh_prime_default(void)
1000 return EXIM_DH_PRIME_DEFAULT;
1005 std_dh_prime_named(const uschar *name)
1008 char *search_name = CS string_copylc(US name);
1011 last = dh_constants_count;
1012 while (last > first) {
1013 int middle = (first + last)/2;
1014 int c = strcmp(search_name, dh_constants[middle].label);
1016 return dh_constants[middle].pem;
1025 #endif /*DISABLE_TLS*/