]> git.saurik.com Git - apple/security.git/blob - SecurityASN1/inc/appleoids.h
Security-54.1.3.tar.gz
[apple/security.git] / SecurityASN1 / inc / appleoids.h
1 // NOTE: this is a machine generated file--editing not recommended
2 //
3 // appleoids.h - class definitions for ASN.1 module APPLE-OIDS
4 //
5 // This file was generated by snacc on Mon Apr 22 22:34:19 2002
6 // UBC snacc by Mike Sample
7 // A couple of enhancements made by IBM European Networking Center
8
9 #ifndef _appleoids_h_
10 #define _appleoids_h_
11
12
13 //------------------------------------------------------------------------------
14 // class declarations:
15
16 class FEEPrimeType;
17 class FEECurveType;
18 class DSABsafeParams;
19 class DHParameter;
20 class FEECurveParameters;
21 class DSAAlgorithmId;
22 class FEEElGamalSignature;
23 class FEEECDSASignature;
24 class FEEPublicKey;
25 class FEEPrivateKey;
26 class DSAPrivateKey;
27 class DSAPublicKey;
28 class DSAPrivateKeyOcts;
29 class DSASignature;
30 class DSAAlgParams;
31 class DHPrivateKey;
32 class DHParameterBlock;
33
34 //------------------------------------------------------------------------------
35 // class definitions:
36
37 /* INTEGER { pt_mersenne (0), pt_fee (1), pt_general (2) } */
38 class FEEPrimeType: public AsnInt
39 {
40 public:
41 FEEPrimeType(): AsnInt() {}
42 FEEPrimeType (int i): AsnInt (i) {}
43 enum
44 {
45 pt_mersenne = 0,
46 pt_fee = 1,
47 pt_general = 2
48 };
49 };
50
51
52 /* INTEGER { ct_montgomery (0), ct_weierstrass (1), ct_general (2) } */
53 class FEECurveType: public AsnInt
54 {
55 public:
56 FEECurveType(): AsnInt() {}
57 FEECurveType (int i): AsnInt (i) {}
58 enum
59 {
60 ct_montgomery = 0,
61 ct_weierstrass = 1,
62 ct_general = 2
63 };
64 };
65
66
67 class DSABsafeParams: public AsnType
68 {
69 public:
70 AsnInt keySizeInBits;
71 BigIntegerStr p;
72 BigIntegerStr q;
73 BigIntegerStr g;
74
75 DSABsafeParams();
76 DSABsafeParams (const DSABsafeParams &);
77 virtual ~DSABsafeParams();
78 virtual AsnType *Clone() const;
79
80 virtual AsnType *Copy() const;
81
82 DSABsafeParams &operator = (const DSABsafeParams &);
83 AsnLen BEncContent (BUF_TYPE b);
84 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
85
86 AsnLen BEnc (BUF_TYPE b);
87 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
88 void Print (ostream &os) const;
89 };
90
91
92 class DHParameter: public AsnType
93 {
94 public:
95 BigIntegerStr prime;
96 BigIntegerStr base;
97 BigIntegerStr *privateValueLength;
98
99 DHParameter();
100 DHParameter (const DHParameter &);
101 virtual ~DHParameter();
102 virtual AsnType *Clone() const;
103
104 virtual AsnType *Copy() const;
105
106 DHParameter &operator = (const DHParameter &);
107 AsnLen BEncContent (BUF_TYPE b);
108 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
109
110 AsnLen BEnc (BUF_TYPE b);
111 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
112 void Print (ostream &os) const;
113 };
114
115
116 class FEECurveParameters: public AsnType
117 {
118 public:
119 FEEPrimeType primeType;
120 FEECurveType curveType;
121 AsnInt q;
122 AsnInt k;
123 AsnInt m;
124 BigIntegerStr a;
125 BigIntegerStr bb;
126 BigIntegerStr c;
127 BigIntegerStr x1Plus;
128 BigIntegerStr x1Minus;
129 BigIntegerStr cOrderPlus;
130 BigIntegerStr cOrderMinus;
131 BigIntegerStr x1OrderPlus;
132 BigIntegerStr x1OrderMinus;
133 BigIntegerStr *basePrime;
134
135 FEECurveParameters();
136 FEECurveParameters (const FEECurveParameters &);
137 virtual ~FEECurveParameters();
138 virtual AsnType *Clone() const;
139
140 virtual AsnType *Copy() const;
141
142 FEECurveParameters &operator = (const FEECurveParameters &);
143 AsnLen BEncContent (BUF_TYPE b);
144 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
145
146 AsnLen BEnc (BUF_TYPE b);
147 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
148 void Print (ostream &os) const;
149 };
150
151
152 class DSAAlgorithmId: public AsnType
153 {
154 public:
155 AsnOid algorithm;
156 DSABsafeParams *params;
157
158 DSAAlgorithmId();
159 DSAAlgorithmId (const DSAAlgorithmId &);
160 virtual ~DSAAlgorithmId();
161 virtual AsnType *Clone() const;
162
163 virtual AsnType *Copy() const;
164
165 DSAAlgorithmId &operator = (const DSAAlgorithmId &);
166 AsnLen BEncContent (BUF_TYPE b);
167 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
168
169 AsnLen BEnc (BUF_TYPE b);
170 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
171 void Print (ostream &os) const;
172 };
173
174
175 class FEEElGamalSignature: public AsnType
176 {
177 public:
178 BigIntegerStr u;
179 BigIntegerStr pmX;
180
181 FEEElGamalSignature();
182 FEEElGamalSignature (const FEEElGamalSignature &);
183 virtual ~FEEElGamalSignature();
184 virtual AsnType *Clone() const;
185
186 virtual AsnType *Copy() const;
187
188 FEEElGamalSignature &operator = (const FEEElGamalSignature &);
189 AsnLen BEncContent (BUF_TYPE b);
190 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
191
192 AsnLen BEnc (BUF_TYPE b);
193 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
194 void Print (ostream &os) const;
195 };
196
197
198 class FEEECDSASignature: public AsnType
199 {
200 public:
201 BigIntegerStr c;
202 BigIntegerStr d;
203
204 FEEECDSASignature();
205 FEEECDSASignature (const FEEECDSASignature &);
206 virtual ~FEEECDSASignature();
207 virtual AsnType *Clone() const;
208
209 virtual AsnType *Copy() const;
210
211 FEEECDSASignature &operator = (const FEEECDSASignature &);
212 AsnLen BEncContent (BUF_TYPE b);
213 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
214
215 AsnLen BEnc (BUF_TYPE b);
216 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
217 void Print (ostream &os) const;
218 };
219
220
221 class FEEPublicKey: public AsnType
222 {
223 public:
224 AsnInt version;
225 FEECurveParameters *curveParams;
226 BigIntegerStr plusX;
227 BigIntegerStr minusX;
228 BigIntegerStr *plusY;
229
230 FEEPublicKey();
231 FEEPublicKey (const FEEPublicKey &);
232 virtual ~FEEPublicKey();
233 virtual AsnType *Clone() const;
234
235 virtual AsnType *Copy() const;
236
237 FEEPublicKey &operator = (const FEEPublicKey &);
238 AsnLen BEncContent (BUF_TYPE b);
239 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
240
241 AsnLen BEnc (BUF_TYPE b);
242 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
243 void Print (ostream &os) const;
244 };
245
246
247 class FEEPrivateKey: public AsnType
248 {
249 public:
250 AsnInt version;
251 FEECurveParameters *curveParams;
252 BigIntegerStr privData;
253
254 FEEPrivateKey();
255 FEEPrivateKey (const FEEPrivateKey &);
256 virtual ~FEEPrivateKey();
257 virtual AsnType *Clone() const;
258
259 virtual AsnType *Copy() const;
260
261 FEEPrivateKey &operator = (const FEEPrivateKey &);
262 AsnLen BEncContent (BUF_TYPE b);
263 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
264
265 AsnLen BEnc (BUF_TYPE b);
266 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
267 void Print (ostream &os) const;
268 };
269
270
271 class DSAPrivateKey: public AsnType
272 {
273 public:
274 AsnInt version;
275 DSAAlgorithmId *dsaAlg;
276 AsnOcts privateKey;
277
278 DSAPrivateKey();
279 DSAPrivateKey (const DSAPrivateKey &);
280 virtual ~DSAPrivateKey();
281 virtual AsnType *Clone() const;
282
283 virtual AsnType *Copy() const;
284
285 DSAPrivateKey &operator = (const DSAPrivateKey &);
286 AsnLen BEncContent (BUF_TYPE b);
287 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
288
289 AsnLen BEnc (BUF_TYPE b);
290 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
291 void Print (ostream &os) const;
292 };
293
294
295 class DSAPublicKey: public AsnType
296 {
297 public:
298 DSAAlgorithmId *dsaAlg;
299 AsnBits publicKey;
300
301 DSAPublicKey();
302 DSAPublicKey (const DSAPublicKey &);
303 virtual ~DSAPublicKey();
304 virtual AsnType *Clone() const;
305
306 virtual AsnType *Copy() const;
307
308 DSAPublicKey &operator = (const DSAPublicKey &);
309 AsnLen BEncContent (BUF_TYPE b);
310 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
311
312 AsnLen BEnc (BUF_TYPE b);
313 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
314 void Print (ostream &os) const;
315 };
316
317
318 class DSAPrivateKeyOcts: public AsnType
319 {
320 public:
321 BigIntegerStr privateKey;
322
323 DSAPrivateKeyOcts();
324 DSAPrivateKeyOcts (const DSAPrivateKeyOcts &);
325 virtual ~DSAPrivateKeyOcts();
326 virtual AsnType *Clone() const;
327
328 virtual AsnType *Copy() const;
329
330 DSAPrivateKeyOcts &operator = (const DSAPrivateKeyOcts &);
331 AsnLen BEncContent (BUF_TYPE b);
332 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
333
334 AsnLen BEnc (BUF_TYPE b);
335 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
336 void Print (ostream &os) const;
337 };
338
339
340 class DSASignature: public AsnType
341 {
342 public:
343 BigIntegerStr r;
344 BigIntegerStr s;
345
346 DSASignature();
347 DSASignature (const DSASignature &);
348 virtual ~DSASignature();
349 virtual AsnType *Clone() const;
350
351 virtual AsnType *Copy() const;
352
353 DSASignature &operator = (const DSASignature &);
354 AsnLen BEncContent (BUF_TYPE b);
355 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
356
357 AsnLen BEnc (BUF_TYPE b);
358 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
359 void Print (ostream &os) const;
360 };
361
362
363 class DSAAlgParams: public AsnType
364 {
365 public:
366 BigIntegerStr p;
367 BigIntegerStr q;
368 BigIntegerStr g;
369
370 DSAAlgParams();
371 DSAAlgParams (const DSAAlgParams &);
372 virtual ~DSAAlgParams();
373 virtual AsnType *Clone() const;
374
375 virtual AsnType *Copy() const;
376
377 DSAAlgParams &operator = (const DSAAlgParams &);
378 AsnLen BEncContent (BUF_TYPE b);
379 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
380
381 AsnLen BEnc (BUF_TYPE b);
382 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
383 void Print (ostream &os) const;
384 };
385
386
387 class DHPrivateKey: public AsnType
388 {
389 public:
390 AsnOid dHOid;
391 DHParameter *params;
392 BigIntegerStr secretPart;
393
394 DHPrivateKey();
395 DHPrivateKey (const DHPrivateKey &);
396 virtual ~DHPrivateKey();
397 virtual AsnType *Clone() const;
398
399 virtual AsnType *Copy() const;
400
401 DHPrivateKey &operator = (const DHPrivateKey &);
402 AsnLen BEncContent (BUF_TYPE b);
403 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
404
405 AsnLen BEnc (BUF_TYPE b);
406 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
407 void Print (ostream &os) const;
408 };
409
410
411 class DHParameterBlock: public AsnType
412 {
413 public:
414 AsnOid oid;
415 DHParameter *params;
416
417 DHParameterBlock();
418 DHParameterBlock (const DHParameterBlock &);
419 virtual ~DHParameterBlock();
420 virtual AsnType *Clone() const;
421
422 virtual AsnType *Copy() const;
423
424 DHParameterBlock &operator = (const DHParameterBlock &);
425 AsnLen BEncContent (BUF_TYPE b);
426 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
427
428 AsnLen BEnc (BUF_TYPE b);
429 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
430 void Print (ostream &os) const;
431 };
432
433
434 //------------------------------------------------------------------------------
435 // externs for value defs
436
437 #define appleBaseOid_arc 1, 2, 840, 113635
438 #define appleBaseOid AsnOid(appleBaseOid_arc)
439 #define appleDataSecurity_arc 1, 2, 840, 113635, 100
440 #define appleDataSecurity AsnOid(appleDataSecurity_arc)
441 #define appleTrustPolicy_arc 1, 2, 840, 113635, 100, 1
442 #define appleTrustPolicy AsnOid(appleTrustPolicy_arc)
443 #define appleSecurityAlgorithm_arc 1, 2, 840, 113635, 100, 2
444 #define appleSecurityAlgorithm AsnOid(appleSecurityAlgorithm_arc)
445 #define appleISignTP_arc 1, 2, 840, 113635, 100, 1, 1
446 #define appleISignTP AsnOid(appleISignTP_arc)
447 #define appleX509Basic_arc 1, 2, 840, 113635, 100, 1, 2
448 #define appleX509Basic AsnOid(appleX509Basic_arc)
449 #define appleSSLPolicy_arc 1, 2, 840, 113635, 100, 1, 3
450 #define appleSSLPolicy AsnOid(appleSSLPolicy_arc)
451 #define appleFee_arc 1, 2, 840, 113635, 100, 2, 1
452 #define appleFee AsnOid(appleFee_arc)
453 #define appleAsc_arc 1, 2, 840, 113635, 100, 2, 2
454 #define appleAsc AsnOid(appleAsc_arc)
455 #define appleFeeMD5_arc 1, 2, 840, 113635, 100, 2, 3
456 #define appleFeeMD5 AsnOid(appleFeeMD5_arc)
457 #define appleFeeSHA1_arc 1, 2, 840, 113635, 100, 2, 4
458 #define appleFeeSHA1 AsnOid(appleFeeSHA1_arc)
459 #define appleFeed_arc 1, 2, 840, 113635, 100, 2, 5
460 #define appleFeed AsnOid(appleFeed_arc)
461 #define appleFeedExp_arc 1, 2, 840, 113635, 100, 2, 6
462 #define appleFeedExp AsnOid(appleFeedExp_arc)
463 #define appleECDSA_arc 1, 2, 840, 113635, 100, 2, 7
464 #define appleECDSA AsnOid(appleECDSA_arc)
465 #define pkcs_3_arc 1, 2, 840, 113549, 1, 3
466 #define pkcs_3 AsnOid(pkcs_3_arc)
467 #define dhKeyAgreement_arc 1, 2, 840, 113549, 1, 3, 1
468 #define dhKeyAgreement AsnOid(dhKeyAgreement_arc)
469 //------------------------------------------------------------------------------
470
471 #endif /* conditional include of appleoids.h */