monotone

monotone Mtn Source Tree

Root/botan/policy.cpp

1/*************************************************
2* Default Policy Source File *
3* (C) 1999-2007 The Botan Project *
4*************************************************/
5
6#include <botan/config.h>
7
8namespace Botan {
9
10namespace {
11
12/*************************************************
13* OID loading helper function *
14*************************************************/
15void add_oid(Config& config,
16 const std::string& oid_str,
17 const std::string& name)
18 {
19 if(!config.is_set("oid2str", oid_str))
20 config.set("oid2str", oid_str, name);
21 if(!config.is_set("str2oid", name))
22 config.set("str2oid", name, oid_str);
23 }
24
25/*************************************************
26* Load all of the default OIDs *
27*************************************************/
28void set_default_oids(Config& config)
29 {
30 add_oid(config, "1.2.840.113549.1.1.1", "RSA");
31 add_oid(config, "2.5.8.1.1", "RSA");
32 add_oid(config, "1.2.840.10040.4.1", "DSA");
33 add_oid(config, "1.2.840.10046.2.1", "DH");
34 add_oid(config, "1.3.6.1.4.1.3029.1.2.1", "ELG");
35 add_oid(config, "1.3.6.1.4.1.25258.1.1", "RW");
36 add_oid(config, "1.3.6.1.4.1.25258.1.2", "NR");
37
38 add_oid(config, "1.3.14.3.2.7", "DES/CBC");
39 add_oid(config, "1.2.840.113549.3.7", "TripleDES/CBC");
40 add_oid(config, "1.2.840.113549.3.2", "RC2/CBC");
41 add_oid(config, "1.2.840.113533.7.66.10", "CAST-128/CBC");
42 add_oid(config, "2.16.840.1.101.3.4.1.2", "AES-128/CBC");
43 add_oid(config, "2.16.840.1.101.3.4.1.22", "AES-192/CBC");
44 add_oid(config, "2.16.840.1.101.3.4.1.42", "AES-256/CBC");
45
46 add_oid(config, "1.2.840.113549.2.5", "MD5");
47 add_oid(config, "1.3.6.1.4.1.11591.12.2", "Tiger(24,3)");
48
49 add_oid(config, "1.3.14.3.2.26", "SHA-160");
50 add_oid(config, "2.16.840.1.101.3.4.2.4", "SHA-224");
51 add_oid(config, "2.16.840.1.101.3.4.2.1", "SHA-256");
52 add_oid(config, "2.16.840.1.101.3.4.2.2", "SHA-384");
53 add_oid(config, "2.16.840.1.101.3.4.2.3", "SHA-512");
54
55 add_oid(config, "1.2.840.113549.1.9.16.3.6", "KeyWrap.TripleDES");
56 add_oid(config, "1.2.840.113549.1.9.16.3.7", "KeyWrap.RC2");
57 add_oid(config, "1.2.840.113533.7.66.15", "KeyWrap.CAST-128");
58 add_oid(config, "2.16.840.1.101.3.4.1.5", "KeyWrap.AES-128");
59 add_oid(config, "2.16.840.1.101.3.4.1.25", "KeyWrap.AES-192");
60 add_oid(config, "2.16.840.1.101.3.4.1.45", "KeyWrap.AES-256");
61
62 add_oid(config, "1.2.840.113549.1.9.16.3.8", "Compression.Zlib");
63
64 add_oid(config, "1.2.840.113549.1.1.1", "RSA/EME-PKCS1-v1_5");
65 add_oid(config, "1.2.840.113549.1.1.2", "RSA/EMSA3(MD2)");
66 add_oid(config, "1.2.840.113549.1.1.4", "RSA/EMSA3(MD5)");
67 add_oid(config, "1.2.840.113549.1.1.5", "RSA/EMSA3(SHA-160)");
68 add_oid(config, "1.2.840.113549.1.1.11", "RSA/EMSA3(SHA-256)");
69 add_oid(config, "1.2.840.113549.1.1.12", "RSA/EMSA3(SHA-384)");
70 add_oid(config, "1.2.840.113549.1.1.13", "RSA/EMSA3(SHA-512)");
71 add_oid(config, "1.3.36.3.3.1.2", "RSA/EMSA3(RIPEMD-160)");
72
73 add_oid(config, "1.2.840.10040.4.3", "DSA/EMSA1(SHA-160)");
74 add_oid(config, "2.16.840.1.101.3.4.3.1", "DSA/EMSA1(SHA-224)");
75 add_oid(config, "2.16.840.1.101.3.4.3.2", "DSA/EMSA1(SHA-256)");
76
77 add_oid(config, "1.3.6.1.4.1.25258.2.1.1.1", "RW/EMSA2(RIPEMD-160)");
78 add_oid(config, "1.3.6.1.4.1.25258.2.1.1.2", "RW/EMSA2(SHA-160)");
79 add_oid(config, "1.3.6.1.4.1.25258.2.1.1.3", "RW/EMSA2(SHA-224)");
80 add_oid(config, "1.3.6.1.4.1.25258.2.1.1.4", "RW/EMSA2(SHA-256)");
81 add_oid(config, "1.3.6.1.4.1.25258.2.1.1.5", "RW/EMSA2(SHA-384)");
82 add_oid(config, "1.3.6.1.4.1.25258.2.1.1.6", "RW/EMSA2(SHA-512)");
83
84 add_oid(config, "1.3.6.1.4.1.25258.2.1.2.1", "RW/EMSA4(RIPEMD-160)");
85 add_oid(config, "1.3.6.1.4.1.25258.2.1.2.2", "RW/EMSA4(SHA-160)");
86 add_oid(config, "1.3.6.1.4.1.25258.2.1.2.3", "RW/EMSA4(SHA-224)");
87 add_oid(config, "1.3.6.1.4.1.25258.2.1.2.4", "RW/EMSA4(SHA-256)");
88 add_oid(config, "1.3.6.1.4.1.25258.2.1.2.5", "RW/EMSA4(SHA-384)");
89 add_oid(config, "1.3.6.1.4.1.25258.2.1.2.6", "RW/EMSA4(SHA-512)");
90
91 add_oid(config, "1.3.6.1.4.1.25258.2.2.1.1", "NR/EMSA2(RIPEMD-160)");
92 add_oid(config, "1.3.6.1.4.1.25258.2.2.1.2", "NR/EMSA2(SHA-160)");
93 add_oid(config, "1.3.6.1.4.1.25258.2.2.1.3", "NR/EMSA2(SHA-224)");
94 add_oid(config, "1.3.6.1.4.1.25258.2.2.1.4", "NR/EMSA2(SHA-256)");
95 add_oid(config, "1.3.6.1.4.1.25258.2.2.1.5", "NR/EMSA2(SHA-384)");
96 add_oid(config, "1.3.6.1.4.1.25258.2.2.1.6", "NR/EMSA2(SHA-512)");
97
98 add_oid(config, "2.5.4.3", "X520.CommonName");
99 add_oid(config, "2.5.4.4", "X520.Surname");
100 add_oid(config, "2.5.4.5", "X520.SerialNumber");
101 add_oid(config, "2.5.4.6", "X520.Country");
102 add_oid(config, "2.5.4.7", "X520.Locality");
103 add_oid(config, "2.5.4.8", "X520.State");
104 add_oid(config, "2.5.4.10", "X520.Organization");
105 add_oid(config, "2.5.4.11", "X520.OrganizationalUnit");
106 add_oid(config, "2.5.4.12", "X520.Title");
107 add_oid(config, "2.5.4.42", "X520.GivenName");
108 add_oid(config, "2.5.4.43", "X520.Initials");
109 add_oid(config, "2.5.4.44", "X520.GenerationalQualifier");
110 add_oid(config, "2.5.4.46", "X520.DNQualifier");
111 add_oid(config, "2.5.4.65", "X520.Pseudonym");
112
113 add_oid(config, "1.2.840.113549.1.5.12", "PKCS5.PBKDF2");
114 add_oid(config, "1.2.840.113549.1.5.1", "PBE-PKCS5v15(MD2,DES/CBC)");
115 add_oid(config, "1.2.840.113549.1.5.4", "PBE-PKCS5v15(MD2,RC2/CBC)");
116 add_oid(config, "1.2.840.113549.1.5.3", "PBE-PKCS5v15(MD5,DES/CBC)");
117 add_oid(config, "1.2.840.113549.1.5.6", "PBE-PKCS5v15(MD5,RC2/CBC)");
118 add_oid(config, "1.2.840.113549.1.5.10", "PBE-PKCS5v15(SHA-160,DES/CBC)");
119 add_oid(config, "1.2.840.113549.1.5.11", "PBE-PKCS5v15(SHA-160,RC2/CBC)");
120 add_oid(config, "1.2.840.113549.1.5.13", "PBE-PKCS5v20");
121
122 add_oid(config, "1.2.840.113549.1.9.1", "PKCS9.EmailAddress");
123 add_oid(config, "1.2.840.113549.1.9.2", "PKCS9.UnstructuredName");
124 add_oid(config, "1.2.840.113549.1.9.3", "PKCS9.ContentType");
125 add_oid(config, "1.2.840.113549.1.9.4", "PKCS9.MessageDigest");
126 add_oid(config, "1.2.840.113549.1.9.7", "PKCS9.ChallengePassword");
127 add_oid(config, "1.2.840.113549.1.9.14", "PKCS9.ExtensionRequest");
128
129 add_oid(config, "1.2.840.113549.1.7.1", "CMS.DataContent");
130 add_oid(config, "1.2.840.113549.1.7.2", "CMS.SignedData");
131 add_oid(config, "1.2.840.113549.1.7.3", "CMS.EnvelopedData");
132 add_oid(config, "1.2.840.113549.1.7.5", "CMS.DigestedData");
133 add_oid(config, "1.2.840.113549.1.7.6", "CMS.EncryptedData");
134 add_oid(config, "1.2.840.113549.1.9.16.1.2", "CMS.AuthenticatedData");
135 add_oid(config, "1.2.840.113549.1.9.16.1.9", "CMS.CompressedData");
136
137 add_oid(config, "2.5.29.14", "X509v3.SubjectKeyIdentifier");
138 add_oid(config, "2.5.29.15", "X509v3.KeyUsage");
139 add_oid(config, "2.5.29.17", "X509v3.SubjectAlternativeName");
140 add_oid(config, "2.5.29.18", "X509v3.IssuerAlternativeName");
141 add_oid(config, "2.5.29.19", "X509v3.BasicConstraints");
142 add_oid(config, "2.5.29.20", "X509v3.CRLNumber");
143 add_oid(config, "2.5.29.21", "X509v3.ReasonCode");
144 add_oid(config, "2.5.29.23", "X509v3.HoldInstructionCode");
145 add_oid(config, "2.5.29.24", "X509v3.InvalidityDate");
146 add_oid(config, "2.5.29.32", "X509v3.CertificatePolicies");
147 add_oid(config, "2.5.29.35", "X509v3.AuthorityKeyIdentifier");
148 add_oid(config, "2.5.29.36", "X509v3.PolicyConstraints");
149 add_oid(config, "2.5.29.37", "X509v3.ExtendedKeyUsage");
150
151 add_oid(config, "2.5.29.32.0", "X509v3.AnyPolicy");
152
153 add_oid(config, "1.3.6.1.5.5.7.3.1", "PKIX.ServerAuth");
154 add_oid(config, "1.3.6.1.5.5.7.3.2", "PKIX.ClientAuth");
155 add_oid(config, "1.3.6.1.5.5.7.3.3", "PKIX.CodeSigning");
156 add_oid(config, "1.3.6.1.5.5.7.3.4", "PKIX.EmailProtection");
157 add_oid(config, "1.3.6.1.5.5.7.3.5", "PKIX.IPsecEndSystem");
158 add_oid(config, "1.3.6.1.5.5.7.3.6", "PKIX.IPsecTunnel");
159 add_oid(config, "1.3.6.1.5.5.7.3.7", "PKIX.IPsecUser");
160 add_oid(config, "1.3.6.1.5.5.7.3.8", "PKIX.TimeStamping");
161 add_oid(config, "1.3.6.1.5.5.7.3.9", "PKIX.OCSPSigning");
162
163 add_oid(config, "1.3.6.1.5.5.7.8.5", "PKIX.XMPPAddr");
164 }
165
166/*************************************************
167* Set the default algorithm aliases *
168*************************************************/
169void set_default_aliases(Config& config)
170 {
171 config.add_alias("OpenPGP.Cipher.1", "IDEA");
172 config.add_alias("OpenPGP.Cipher.2", "TripleDES");
173 config.add_alias("OpenPGP.Cipher.3", "CAST-128");
174 config.add_alias("OpenPGP.Cipher.4", "Blowfish");
175 config.add_alias("OpenPGP.Cipher.5", "SAFER-SK(13)");
176 config.add_alias("OpenPGP.Cipher.7", "AES-128");
177 config.add_alias("OpenPGP.Cipher.8", "AES-192");
178 config.add_alias("OpenPGP.Cipher.9", "AES-256");
179 config.add_alias("OpenPGP.Cipher.10", "Twofish");
180
181 config.add_alias("OpenPGP.Digest.1", "MD5");
182 config.add_alias("OpenPGP.Digest.2", "SHA-1");
183 config.add_alias("OpenPGP.Digest.3", "RIPEMD-160");
184 config.add_alias("OpenPGP.Digest.5", "MD2");
185 config.add_alias("OpenPGP.Digest.6", "Tiger(24,3)");
186 config.add_alias("OpenPGP.Digest.7", "HAVAL(20,5)");
187 config.add_alias("OpenPGP.Digest.8", "SHA-256");
188
189 config.add_alias("TLS.Digest.0", "Parallel(MD5,SHA-160)");
190
191 config.add_alias("EME-PKCS1-v1_5", "PKCS1v15");
192 config.add_alias("OAEP-MGF1", "EME1");
193 config.add_alias("EME-OAEP", "EME1");
194 config.add_alias("X9.31", "EMSA2");
195 config.add_alias("EMSA-PKCS1-v1_5", "EMSA3");
196 config.add_alias("PSS-MGF1", "EMSA4");
197 config.add_alias("EMSA-PSS", "EMSA4");
198
199 config.add_alias("Rijndael", "AES");
200 config.add_alias("3DES", "TripleDES");
201 config.add_alias("DES-EDE", "TripleDES");
202 config.add_alias("CAST5", "CAST-128");
203 config.add_alias("SHA1", "SHA-160");
204 config.add_alias("SHA-1", "SHA-160");
205 config.add_alias("SEAL", "SEAL-3.0-BE");
206 config.add_alias("MARK-4", "ARC4(256)");
207 config.add_alias("OMAC", "CMAC");
208 }
209
210/*************************************************
211* Set the default configuration toggles *
212*************************************************/
213void set_default_config(Config& config)
214 {
215 config.set_option("base/memory_chunk", "64*1024");
216 config.set_option("base/pkcs8_tries", "3");
217 config.set_option("base/default_pbe",
218 "PBE-PKCS5v20(SHA-1,TripleDES/CBC)");
219 config.set_option("base/default_allocator", "malloc");
220
221 config.set_option("pk/blinder_size", "64");
222 config.set_option("pk/test/public", "basic");
223 config.set_option("pk/test/private", "basic");
224 config.set_option("pk/test/private_gen", "all");
225
226 config.set_option("pem/search", "4*1024");
227 config.set_option("pem/forgive", "8");
228 config.set_option("pem/width", "64");
229
230 config.set_option("rng/ms_capi_prov_type", "INTEL_SEC:RSA_FULL");
231 config.set_option("rng/unix_path", "/bin:/sbin:/usr/bin:/usr/sbin");
232 config.set_option("rng/es_files", "/dev/random:/dev/srandom:/dev/urandom");
233 config.set_option("rng/egd_path",
234 "/var/run/egd-pool:/dev/egd-pool");
235 config.set_option("rng/slow_poll_request", "256");
236 config.set_option("rng/fast_poll_request", "64");
237
238 config.set_option("x509/validity_slack", "24h");
239 config.set_option("x509/v1_assume_ca", "false");
240 config.set_option("x509/cache_verify_results", "30m");
241
242 config.set_option("x509/ca/allow_ca", "false");
243 config.set_option("x509/ca/basic_constraints", "always");
244 config.set_option("x509/ca/default_expire", "1y");
245 config.set_option("x509/ca/signing_offset", "30s");
246 config.set_option("x509/ca/rsa_hash", "SHA-1");
247 config.set_option("x509/ca/str_type", "latin1");
248
249 config.set_option("x509/crl/unknown_critical", "ignore");
250 config.set_option("x509/crl/next_update", "7d");
251
252 config.set_option("x509/exts/basic_constraints", "critical");
253 config.set_option("x509/exts/subject_key_id", "yes");
254 config.set_option("x509/exts/authority_key_id", "yes");
255 config.set_option("x509/exts/subject_alternative_name", "yes");
256 config.set_option("x509/exts/issuer_alternative_name", "no");
257 config.set_option("x509/exts/key_usage", "critical");
258 config.set_option("x509/exts/extended_key_usage", "yes");
259 config.set_option("x509/exts/crl_number", "yes");
260 }
261
262/*************************************************
263* Set the built-in discrete log groups *
264*************************************************/
265void set_default_dl_groups(Config& config)
266 {
267 config.set("dl", "modp/ietf/768",
268 "-----BEGIN X942 DH PARAMETERS-----"
269 "MIHIAmEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxObIlFK"
270 "CHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjo2IP//"
271 "////////AgECAmB//////////+SH7VEQtGEaYmMxRcBuDmiUgScERTPmOgEF31Md"
272 "ic2RKKUEPMcaAm73yozZ5p0hjZgVhTb5L4obp/Catrao4SLyQtq7MS8/Y3omIXTT"
273 "HRsQf/////////8="
274 "-----END X942 DH PARAMETERS-----");
275
276 config.set("dl", "modp/ietf/1024",
277 "-----BEGIN X942 DH PARAMETERS-----"
278 "MIIBCgKBgQD//////////8kP2qIhaMI0xMZii4DcHNEpAk4IimfMdAILvqY7E5si"
279 "UUoIeY40BN3vlRmzzTpDGzArCm3yXxQ3T+E1bW1RwkXkhbV2Yl5+xvRMQummN+1r"
280 "C/9ctvQGt+3uOGv7Womfpa6fJBF8Sx/mSShmUezmU4H//////////wIBAgKBgH//"
281 "////////5IftURC0YRpiYzFFwG4OaJSBJwRFM+Y6AQXfUx2JzZEopQQ8xxoCbvfK"
282 "jNnmnSGNmBWFNvkvihun8Jq2tqjhIvJC2rsxLz9jeiYhdNMb9rWF/65begNb9vcc"
283 "Nf2tRM/S10+SCL4lj/MklDMo9nMpwP//////////"
284 "-----END X942 DH PARAMETERS-----");
285
286 config.set("dl", "modp/ietf/1536",
287 "-----BEGIN X942 DH PARAMETERS-----"
288 "MIIBigKBwQD//////////8kP2qIhaMI0xMZii4DcHNEpAk4IimfMdAILvqY7E5si"
289 "UUoIeY40BN3vlRmzzTpDGzArCm3yXxQ3T+E1bW1RwkXkhbV2Yl5+xvRMQummN+1r"
290 "C/9ctvQGt+3uOGv7Womfpa6fJBF8Sx/mSShmUezkWz3CAHy4oWO/BZjaSDYcVdOa"
291 "aRY/qP0kz1+DZV0j3KOtlhxi81YghVK7ntUpB3CWlm1nDDVOSryYBPF0bAjKI3Mn"
292 "//////////8CAQICgcB//////////+SH7VEQtGEaYmMxRcBuDmiUgScERTPmOgEF"
293 "31Mdic2RKKUEPMcaAm73yozZ5p0hjZgVhTb5L4obp/Catrao4SLyQtq7MS8/Y3om"
294 "IXTTG/a1hf+uW3oDW/b3HDX9rUTP0tdPkgi+JY/zJJQzKPZyLZ7hAD5cULHfgsxt"
295 "JBsOKunNNIsf1H6SZ6/Bsq6R7lHWyw4xeasQQqldz2qUg7hLSzazhhqnJV5MAni6"
296 "NgRlEbmT//////////8="
297 "-----END X942 DH PARAMETERS-----");
298
299 config.set("dl", "modp/ietf/2048",
300 "-----BEGIN X942 DH PARAMETERS-----"
301 "MIICDAKCAQEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb"
302 "IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft"
303 "awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT"
304 "mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh"
305 "fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq"
306 "5RXSJhiY+gUQFXKOWoqsqmj//////////wIBAgKCAQB//////////+SH7VEQtGEa"
307 "YmMxRcBuDmiUgScERTPmOgEF31Mdic2RKKUEPMcaAm73yozZ5p0hjZgVhTb5L4ob"
308 "p/Catrao4SLyQtq7MS8/Y3omIXTTG/a1hf+uW3oDW/b3HDX9rUTP0tdPkgi+JY/z"
309 "JJQzKPZyLZ7hAD5cULHfgsxtJBsOKunNNIsf1H6SZ6/Bsq6R7lHWyw4xeasQQqld"
310 "z2qUg7hLSzazhhqnJV5MAni6NgRlDBC+GUgvIxcbZx3xzzuWDAdDAc2TwdF2A9FH"
311 "2uKu+DemKWTvFeX7SqwLjBzKpL51SrVyiukTDEx9AogKuUctRVZVNH//////////"
312 "-----END X942 DH PARAMETERS-----");
313
314 config.set("dl", "modp/ietf/3072",
315 "-----BEGIN X942 DH PARAMETERS-----"
316 "MIIDDAKCAYEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb"
317 "IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft"
318 "awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT"
319 "mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh"
320 "fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq"
321 "5RXSJhiY+gUQFXKOWoqqxC2tMxcNBFB6M6hVIavfHLpk7PuFBFjb7wqK6nFXXQYM"
322 "fbOXD4Wm4eTHq/WujNsJM9cejJTgSiVhnc7j0iYa0u5r8S/6BtmKCGTYdgJzPshq"
323 "ZFIfKxgXeyAMu+EXV3phXWx3CYjAutlG4gjiT6B05asxQ9tb/OD9EI5LgtEgqTrS"
324 "yv//////////AgECAoIBgH//////////5IftURC0YRpiYzFFwG4OaJSBJwRFM+Y6"
325 "AQXfUx2JzZEopQQ8xxoCbvfKjNnmnSGNmBWFNvkvihun8Jq2tqjhIvJC2rsxLz9j"
326 "eiYhdNMb9rWF/65begNb9vccNf2tRM/S10+SCL4lj/MklDMo9nItnuEAPlxQsd+C"
327 "zG0kGw4q6c00ix/UfpJnr8GyrpHuUdbLDjF5qxBCqV3PapSDuEtLNrOGGqclXkwC"
328 "eLo2BGUMEL4ZSC8jFxtnHfHPO5YMB0MBzZPB0XYD0Ufa4q74N6YpZO8V5ftKrAuM"
329 "HMqkvnVKtXKK6RMMTH0CiAq5Ry1FVWIW1pmLhoIoPRnUKpDV745dMnZ9woIsbfeF"
330 "RXU4q66DBj7Zy4fC03DyY9X610ZthJnrj0ZKcCUSsM7ncekTDWl3NfiX/QNsxQQy"
331 "bDsBOZ9kNTIpD5WMC72QBl3wi6u9MK62O4TEYF1so3EEcSfQOnLVmKHtrf5wfohH"
332 "JcFokFSdaWV//////////w=="
333 "-----END X942 DH PARAMETERS-----");
334
335 config.set("dl", "modp/ietf/4096",
336 "-----BEGIN X942 DH PARAMETERS-----"
337 "MIIEDAKCAgEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb"
338 "IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft"
339 "awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT"
340 "mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh"
341 "fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq"
342 "5RXSJhiY+gUQFXKOWoqqxC2tMxcNBFB6M6hVIavfHLpk7PuFBFjb7wqK6nFXXQYM"
343 "fbOXD4Wm4eTHq/WujNsJM9cejJTgSiVhnc7j0iYa0u5r8S/6BtmKCGTYdgJzPshq"
344 "ZFIfKxgXeyAMu+EXV3phXWx3CYjAutlG4gjiT6B05asxQ9tb/OD9EI5LgtEgqSEI"
345 "ARpyPBKnh+bXiHGaEL26WyaZwycYavTiPBqUaDS2FQvaJYPpyirUTOjbu8LbBN6O"
346 "+S6O/BQfvsqmKHxZR05rwF2ZspZPoJDDoiM7oYZRW+ftH2EpcM7i16+4G912IXBI"
347 "HNAGkSfVsFqpk7TqmI2P3cGG/7fckKbAj030Nck0BjGZ//////////8CAQICggIA"
348 "f//////////kh+1RELRhGmJjMUXAbg5olIEnBEUz5joBBd9THYnNkSilBDzHGgJu"
349 "98qM2eadIY2YFYU2+S+KG6fwmra2qOEi8kLauzEvP2N6JiF00xv2tYX/rlt6A1v2"
350 "9xw1/a1Ez9LXT5IIviWP8ySUMyj2ci2e4QA+XFCx34LMbSQbDirpzTSLH9R+kmev"
351 "wbKuke5R1ssOMXmrEEKpXc9qlIO4S0s2s4YapyVeTAJ4ujYEZQwQvhlILyMXG2cd"
352 "8c87lgwHQwHNk8HRdgPRR9rirvg3pilk7xXl+0qsC4wcyqS+dUq1corpEwxMfQKI"
353 "CrlHLUVVYhbWmYuGgig9GdQqkNXvjl0ydn3Cgixt94VFdTirroMGPtnLh8LTcPJj"
354 "1frXRm2EmeuPRkpwJRKwzudx6RMNaXc1+Jf9A2zFBDJsOwE5n2Q1MikPlYwLvZAG"
355 "XfCLq70wrrY7hMRgXWyjcQRxJ9A6ctWYoe2t/nB+iEclwWiQVJCEAI05HglTw/Nr"
356 "xDjNCF7dLZNM4ZOMNXpxHg1KNBpbCoXtEsH05RVqJnRt3eFtgm9HfJdHfgoP32VT"
357 "FD4so6c14C7M2Usn0Ehh0RGd0MMorfP2j7CUuGdxa9fcDe67ELgkDmgDSJPq2C1U"
358 "ydp1TEbH7uDDf9vuSFNgR6b6GuSaAxjM//////////8="
359 "-----END X942 DH PARAMETERS-----");
360
361 config.set("dl", "dsa/jce/512",
362 "-----BEGIN DSA PARAMETERS-----"
363 "MIGdAkEA/KaCzo4Syrom78z3EQ5SbbB4sF7ey80etKII864WF64B81uRpH5t9jQT"
364 "xeEu0ImbzRMqzVDZkVG9xD7nN1kuFwIVAJYu3cw2nLqOuyYO5rahJtk0bjjFAkEA"
365 "3gtU76vylwh+5iPVylWIxkgo70/eT/uuHs0gBndrBbEbgeo83pvDlkwWh8UyW/Q9"
366 "fM76DQqGvl3/3dDRFD3NdQ=="
367 "-----END DSA PARAMETERS-----");
368
369 config.set("dl", "dsa/jce/768",
370 "-----BEGIN DSA PARAMETERS-----"
371 "MIHdAmEA6eZCWZ01XzfJf/01ZxILjiXJzUPpJ7OpZw++xdiQFBki0sOzrSSACTeZ"
372 "hp0ehGqrSfqwrSbSzmoiIZ1HC859d31KIfvpwnC1f2BwAvPO+Dk2lM9F7jaIwRqM"
373 "VqsSej2vAhUAnNvYTJ8awvOND4D0KrlS5zOL9RECYQDe7p717RUWzn5pXmcrjO5F"
374 "5s17NuDmOF+JS6hhY/bz5sbU6KgRRtQBfe/dccvZD6Akdlm4i3zByJT0gmn9Txqs"
375 "CjBTjf9rP8ds+xMcnnlltYhYqwpDtVczWRKoqlR/lWg="
376 "-----END DSA PARAMETERS-----");
377
378 config.set("dl", "dsa/jce/1024",
379 "-----BEGIN DSA PARAMETERS-----"
380 "MIIBHgKBgQD9f1OBHXUSKVLfSpwu7OTn9hG3UjzvRADDHj+AtlEmaUVdQCJR+1k9"
381 "jVj6v8X1ujD2y5tVbNeBO4AdNG/yZmC3a5lQpaSfn+gEexAiwk+7qdf+t8Yb+DtX"
382 "58aophUPBPuD9tPFHsMCNVQTWhaRMvZ1864rYdcq7/IiAxmd0UgBxwIVAJdgUI8V"
383 "IwvMspK5gqLrhAvwWBz1AoGARpYDUS4wJ4zTlHWV2yLuyYJqYyKtyXNE9B10DDJX"
384 "JMj577qn1NgD/4xgnc0QDrxb38+tfGpCX66nhuogUOvpg1HqH9of3yTWlHqmuaoj"
385 "dmlTgC9NfUqOy6BtGXaKJJH/sW0O+cQ6mbX3FnL/bwoktETQc20E04oaEyLa9s3Y"
386 "jJ0="
387 "-----END DSA PARAMETERS-----");
388 }
389
390}
391
392/*************************************************
393* Set the default policy *
394*************************************************/
395void Config::load_defaults()
396 {
397 set_default_config(*this);
398 set_default_aliases(*this);
399 set_default_oids(*this);
400 set_default_dl_groups(*this);
401 }
402
403}

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status