]> git.saurik.com Git - apple/security.git/blob - SecurityASN1/inc/appleoids.h
Security-30.1.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 Wed Jun 27 16:40:55 2001
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 FEECurveParameters;
20 class DSAAlgorithmId;
21 class FEEElGamalSignature;
22 class FEEECDSASignature;
23 class FEEPublicKey;
24 class FEEPrivateKey;
25 class DSAPrivateKey;
26 class DSAPublicKey;
27 class DSAPrivateKeyOcts;
28 class DSASignature;
29 class DSAAlgParams;
30
31 //------------------------------------------------------------------------------
32 // class definitions:
33
34 /* INTEGER { pt_mersenne (0), pt_fee (1), pt_general (2) } */
35 class FEEPrimeType: public AsnInt
36 {
37 public:
38 FEEPrimeType(): AsnInt() {}
39 FEEPrimeType (int i): AsnInt (i) {}
40 enum
41 {
42 pt_mersenne = 0,
43 pt_fee = 1,
44 pt_general = 2
45 };
46 };
47
48
49 /* INTEGER { ct_montgomery (0), ct_weierstrass (1), ct_general (2) } */
50 class FEECurveType: public AsnInt
51 {
52 public:
53 FEECurveType(): AsnInt() {}
54 FEECurveType (int i): AsnInt (i) {}
55 enum
56 {
57 ct_montgomery = 0,
58 ct_weierstrass = 1,
59 ct_general = 2
60 };
61 };
62
63
64 class DSABsafeParams: public AsnType
65 {
66 public:
67 AsnInt keySizeInBits;
68 BigIntegerStr p;
69 BigIntegerStr q;
70 BigIntegerStr g;
71
72 DSABsafeParams();
73 DSABsafeParams (const DSABsafeParams &);
74 virtual ~DSABsafeParams();
75 virtual AsnType *Clone() const;
76
77 virtual AsnType *Copy() const;
78
79 DSABsafeParams &operator = (const DSABsafeParams &);
80 AsnLen BEncContent (BUF_TYPE b);
81 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
82
83 AsnLen BEnc (BUF_TYPE b);
84 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
85 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
86 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
87
88 void Print (ostream &os) const;
89 };
90
91
92 class FEECurveParameters: public AsnType
93 {
94 public:
95 FEEPrimeType primeType;
96 FEECurveType curveType;
97 AsnInt q;
98 AsnInt k;
99 AsnInt m;
100 BigIntegerStr a;
101 BigIntegerStr bb;
102 BigIntegerStr c;
103 BigIntegerStr x1Plus;
104 BigIntegerStr x1Minus;
105 BigIntegerStr cOrderPlus;
106 BigIntegerStr cOrderMinus;
107 BigIntegerStr x1OrderPlus;
108 BigIntegerStr x1OrderMinus;
109 BigIntegerStr *basePrime;
110
111 FEECurveParameters();
112 FEECurveParameters (const FEECurveParameters &);
113 virtual ~FEECurveParameters();
114 virtual AsnType *Clone() const;
115
116 virtual AsnType *Copy() const;
117
118 FEECurveParameters &operator = (const FEECurveParameters &);
119 AsnLen BEncContent (BUF_TYPE b);
120 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
121
122 AsnLen BEnc (BUF_TYPE b);
123 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
124 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
125 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
126
127 void Print (ostream &os) const;
128 };
129
130
131 class DSAAlgorithmId: public AsnType
132 {
133 public:
134 AsnOid algorithm;
135 DSABsafeParams *params;
136
137 DSAAlgorithmId();
138 DSAAlgorithmId (const DSAAlgorithmId &);
139 virtual ~DSAAlgorithmId();
140 virtual AsnType *Clone() const;
141
142 virtual AsnType *Copy() const;
143
144 DSAAlgorithmId &operator = (const DSAAlgorithmId &);
145 AsnLen BEncContent (BUF_TYPE b);
146 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
147
148 AsnLen BEnc (BUF_TYPE b);
149 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
150 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
151 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
152
153 void Print (ostream &os) const;
154 };
155
156
157 class FEEElGamalSignature: public AsnType
158 {
159 public:
160 BigIntegerStr u;
161 BigIntegerStr pmX;
162
163 FEEElGamalSignature();
164 FEEElGamalSignature (const FEEElGamalSignature &);
165 virtual ~FEEElGamalSignature();
166 virtual AsnType *Clone() const;
167
168 virtual AsnType *Copy() const;
169
170 FEEElGamalSignature &operator = (const FEEElGamalSignature &);
171 AsnLen BEncContent (BUF_TYPE b);
172 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
173
174 AsnLen BEnc (BUF_TYPE b);
175 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
176 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
177 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
178
179 void Print (ostream &os) const;
180 };
181
182
183 class FEEECDSASignature: public AsnType
184 {
185 public:
186 BigIntegerStr c;
187 BigIntegerStr d;
188
189 FEEECDSASignature();
190 FEEECDSASignature (const FEEECDSASignature &);
191 virtual ~FEEECDSASignature();
192 virtual AsnType *Clone() const;
193
194 virtual AsnType *Copy() const;
195
196 FEEECDSASignature &operator = (const FEEECDSASignature &);
197 AsnLen BEncContent (BUF_TYPE b);
198 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
199
200 AsnLen BEnc (BUF_TYPE b);
201 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
202 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
203 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
204
205 void Print (ostream &os) const;
206 };
207
208
209 class FEEPublicKey: public AsnType
210 {
211 public:
212 AsnInt version;
213 FEECurveParameters *curveParams;
214 BigIntegerStr plusX;
215 BigIntegerStr minusX;
216 BigIntegerStr *plusY;
217
218 FEEPublicKey();
219 FEEPublicKey (const FEEPublicKey &);
220 virtual ~FEEPublicKey();
221 virtual AsnType *Clone() const;
222
223 virtual AsnType *Copy() const;
224
225 FEEPublicKey &operator = (const FEEPublicKey &);
226 AsnLen BEncContent (BUF_TYPE b);
227 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
228
229 AsnLen BEnc (BUF_TYPE b);
230 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
231 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
232 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
233
234 void Print (ostream &os) const;
235 };
236
237
238 class FEEPrivateKey: public AsnType
239 {
240 public:
241 AsnInt version;
242 FEECurveParameters *curveParams;
243 BigIntegerStr privData;
244
245 FEEPrivateKey();
246 FEEPrivateKey (const FEEPrivateKey &);
247 virtual ~FEEPrivateKey();
248 virtual AsnType *Clone() const;
249
250 virtual AsnType *Copy() const;
251
252 FEEPrivateKey &operator = (const FEEPrivateKey &);
253 AsnLen BEncContent (BUF_TYPE b);
254 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
255
256 AsnLen BEnc (BUF_TYPE b);
257 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
258 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
259 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
260
261 void Print (ostream &os) const;
262 };
263
264
265 class DSAPrivateKey: public AsnType
266 {
267 public:
268 AsnInt version;
269 DSAAlgorithmId *dsaAlg;
270 AsnOcts privateKey;
271
272 DSAPrivateKey();
273 DSAPrivateKey (const DSAPrivateKey &);
274 virtual ~DSAPrivateKey();
275 virtual AsnType *Clone() const;
276
277 virtual AsnType *Copy() const;
278
279 DSAPrivateKey &operator = (const DSAPrivateKey &);
280 AsnLen BEncContent (BUF_TYPE b);
281 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
282
283 AsnLen BEnc (BUF_TYPE b);
284 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
285 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
286 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
287
288 void Print (ostream &os) const;
289 };
290
291
292 class DSAPublicKey: public AsnType
293 {
294 public:
295 DSAAlgorithmId *dsaAlg;
296 AsnBits publicKey;
297
298 DSAPublicKey();
299 DSAPublicKey (const DSAPublicKey &);
300 virtual ~DSAPublicKey();
301 virtual AsnType *Clone() const;
302
303 virtual AsnType *Copy() const;
304
305 DSAPublicKey &operator = (const DSAPublicKey &);
306 AsnLen BEncContent (BUF_TYPE b);
307 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
308
309 AsnLen BEnc (BUF_TYPE b);
310 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
311 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
312 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
313
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 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
337 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
338
339 void Print (ostream &os) const;
340 };
341
342
343 class DSASignature: public AsnType
344 {
345 public:
346 BigIntegerStr r;
347 BigIntegerStr s;
348
349 DSASignature();
350 DSASignature (const DSASignature &);
351 virtual ~DSASignature();
352 virtual AsnType *Clone() const;
353
354 virtual AsnType *Copy() const;
355
356 DSASignature &operator = (const DSASignature &);
357 AsnLen BEncContent (BUF_TYPE b);
358 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
359
360 AsnLen BEnc (BUF_TYPE b);
361 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
362 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
363 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
364
365 void Print (ostream &os) const;
366 };
367
368
369 class DSAAlgParams: public AsnType
370 {
371 public:
372 BigIntegerStr p;
373 BigIntegerStr q;
374 BigIntegerStr g;
375
376 DSAAlgParams();
377 DSAAlgParams (const DSAAlgParams &);
378 virtual ~DSAAlgParams();
379 virtual AsnType *Clone() const;
380
381 virtual AsnType *Copy() const;
382
383 DSAAlgParams &operator = (const DSAAlgParams &);
384 AsnLen BEncContent (BUF_TYPE b);
385 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
386
387 AsnLen BEnc (BUF_TYPE b);
388 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
389 int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded);
390 int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded);
391
392 void Print (ostream &os) const;
393 };
394
395
396 //------------------------------------------------------------------------------
397 // externs for value defs
398
399 #define appleBaseOid_arc 1, 2, 840, 113635
400 #define appleBaseOid AsnOid(appleBaseOid_arc)
401 #define appleDataSecurity_arc 1, 2, 840, 113635, 100
402 #define appleDataSecurity AsnOid(appleDataSecurity_arc)
403 #define appleTrustPolicy_arc 1, 2, 840, 113635, 100, 1
404 #define appleTrustPolicy AsnOid(appleTrustPolicy_arc)
405 #define appleSecurityAlgorithm_arc 1, 2, 840, 113635, 100, 2
406 #define appleSecurityAlgorithm AsnOid(appleSecurityAlgorithm_arc)
407 #define appleISignTP_arc 1, 2, 840, 113635, 100, 1, 1
408 #define appleISignTP AsnOid(appleISignTP_arc)
409 #define appleX509Basic_arc 1, 2, 840, 113635, 100, 1, 2
410 #define appleX509Basic AsnOid(appleX509Basic_arc)
411 #define appleSSLPolicy_arc 1, 2, 840, 113635, 100, 1, 3
412 #define appleSSLPolicy AsnOid(appleSSLPolicy_arc)
413 #define appleFee_arc 1, 2, 840, 113635, 100, 2, 1
414 #define appleFee AsnOid(appleFee_arc)
415 #define appleAsc_arc 1, 2, 840, 113635, 100, 2, 2
416 #define appleAsc AsnOid(appleAsc_arc)
417 #define appleFeeMD5_arc 1, 2, 840, 113635, 100, 2, 3
418 #define appleFeeMD5 AsnOid(appleFeeMD5_arc)
419 #define appleFeeSHA1_arc 1, 2, 840, 113635, 100, 2, 4
420 #define appleFeeSHA1 AsnOid(appleFeeSHA1_arc)
421 #define appleFeed_arc 1, 2, 840, 113635, 100, 2, 5
422 #define appleFeed AsnOid(appleFeed_arc)
423 #define appleFeedExp_arc 1, 2, 840, 113635, 100, 2, 6
424 #define appleFeedExp AsnOid(appleFeedExp_arc)
425 #define appleECDSA_arc 1, 2, 840, 113635, 100, 2, 7
426 #define appleECDSA AsnOid(appleECDSA_arc)
427 //------------------------------------------------------------------------------
428
429 #endif /* conditional include of appleoids.h */