1 // NOTE: this is a machine generated file--editing not recommended
3 // appleoids.h - class definitions for ASN.1 module APPLE-OIDS
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
13 //------------------------------------------------------------------------------
14 // class declarations:
20 class FEECurveParameters
;
22 class FEEElGamalSignature
;
23 class FEEECDSASignature
;
28 class DSAPrivateKeyOcts
;
32 class DHParameterBlock
;
34 //------------------------------------------------------------------------------
37 /* INTEGER { pt_mersenne (0), pt_fee (1), pt_general (2) } */
38 class FEEPrimeType
: public AsnInt
41 FEEPrimeType(): AsnInt() {}
42 FEEPrimeType (int i
): AsnInt (i
) {}
52 /* INTEGER { ct_montgomery (0), ct_weierstrass (1), ct_general (2) } */
53 class FEECurveType
: public AsnInt
56 FEECurveType(): AsnInt() {}
57 FEECurveType (int i
): AsnInt (i
) {}
67 class DSABsafeParams
: public AsnType
76 DSABsafeParams (const DSABsafeParams
&);
77 virtual ~DSABsafeParams();
78 virtual AsnType
*Clone() const;
80 virtual AsnType
*Copy() const;
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
);
86 AsnLen
BEnc (BUF_TYPE b
);
87 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
88 void Print (ostream
&os
) const;
92 class DHParameter
: public AsnType
97 BigIntegerStr
*privateValueLength
;
100 DHParameter (const DHParameter
&);
101 virtual ~DHParameter();
102 virtual AsnType
*Clone() const;
104 virtual AsnType
*Copy() const;
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
);
110 AsnLen
BEnc (BUF_TYPE b
);
111 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
112 void Print (ostream
&os
) const;
116 class FEECurveParameters
: public AsnType
119 FEEPrimeType primeType
;
120 FEECurveType curveType
;
127 BigIntegerStr x1Plus
;
128 BigIntegerStr x1Minus
;
129 BigIntegerStr cOrderPlus
;
130 BigIntegerStr cOrderMinus
;
131 BigIntegerStr x1OrderPlus
;
132 BigIntegerStr x1OrderMinus
;
133 BigIntegerStr
*basePrime
;
135 FEECurveParameters();
136 FEECurveParameters (const FEECurveParameters
&);
137 virtual ~FEECurveParameters();
138 virtual AsnType
*Clone() const;
140 virtual AsnType
*Copy() const;
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
);
146 AsnLen
BEnc (BUF_TYPE b
);
147 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
148 void Print (ostream
&os
) const;
152 class DSAAlgorithmId
: public AsnType
156 DSABsafeParams
*params
;
159 DSAAlgorithmId (const DSAAlgorithmId
&);
160 virtual ~DSAAlgorithmId();
161 virtual AsnType
*Clone() const;
163 virtual AsnType
*Copy() const;
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
);
169 AsnLen
BEnc (BUF_TYPE b
);
170 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
171 void Print (ostream
&os
) const;
175 class FEEElGamalSignature
: public AsnType
181 FEEElGamalSignature();
182 FEEElGamalSignature (const FEEElGamalSignature
&);
183 virtual ~FEEElGamalSignature();
184 virtual AsnType
*Clone() const;
186 virtual AsnType
*Copy() const;
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
);
192 AsnLen
BEnc (BUF_TYPE b
);
193 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
194 void Print (ostream
&os
) const;
198 class FEEECDSASignature
: public AsnType
205 FEEECDSASignature (const FEEECDSASignature
&);
206 virtual ~FEEECDSASignature();
207 virtual AsnType
*Clone() const;
209 virtual AsnType
*Copy() const;
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
);
215 AsnLen
BEnc (BUF_TYPE b
);
216 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
217 void Print (ostream
&os
) const;
221 class FEEPublicKey
: public AsnType
225 FEECurveParameters
*curveParams
;
227 BigIntegerStr minusX
;
228 BigIntegerStr
*plusY
;
231 FEEPublicKey (const FEEPublicKey
&);
232 virtual ~FEEPublicKey();
233 virtual AsnType
*Clone() const;
235 virtual AsnType
*Copy() const;
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
);
241 AsnLen
BEnc (BUF_TYPE b
);
242 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
243 void Print (ostream
&os
) const;
247 class FEEPrivateKey
: public AsnType
251 FEECurveParameters
*curveParams
;
252 BigIntegerStr privData
;
255 FEEPrivateKey (const FEEPrivateKey
&);
256 virtual ~FEEPrivateKey();
257 virtual AsnType
*Clone() const;
259 virtual AsnType
*Copy() const;
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
);
265 AsnLen
BEnc (BUF_TYPE b
);
266 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
267 void Print (ostream
&os
) const;
271 class DSAPrivateKey
: public AsnType
275 DSAAlgorithmId
*dsaAlg
;
279 DSAPrivateKey (const DSAPrivateKey
&);
280 virtual ~DSAPrivateKey();
281 virtual AsnType
*Clone() const;
283 virtual AsnType
*Copy() const;
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
);
289 AsnLen
BEnc (BUF_TYPE b
);
290 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
291 void Print (ostream
&os
) const;
295 class DSAPublicKey
: public AsnType
298 DSAAlgorithmId
*dsaAlg
;
302 DSAPublicKey (const DSAPublicKey
&);
303 virtual ~DSAPublicKey();
304 virtual AsnType
*Clone() const;
306 virtual AsnType
*Copy() const;
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
);
312 AsnLen
BEnc (BUF_TYPE b
);
313 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
314 void Print (ostream
&os
) const;
318 class DSAPrivateKeyOcts
: public AsnType
321 BigIntegerStr privateKey
;
324 DSAPrivateKeyOcts (const DSAPrivateKeyOcts
&);
325 virtual ~DSAPrivateKeyOcts();
326 virtual AsnType
*Clone() const;
328 virtual AsnType
*Copy() const;
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
);
334 AsnLen
BEnc (BUF_TYPE b
);
335 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
336 void Print (ostream
&os
) const;
340 class DSASignature
: public AsnType
347 DSASignature (const DSASignature
&);
348 virtual ~DSASignature();
349 virtual AsnType
*Clone() const;
351 virtual AsnType
*Copy() const;
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
);
357 AsnLen
BEnc (BUF_TYPE b
);
358 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
359 void Print (ostream
&os
) const;
363 class DSAAlgParams
: public AsnType
371 DSAAlgParams (const DSAAlgParams
&);
372 virtual ~DSAAlgParams();
373 virtual AsnType
*Clone() const;
375 virtual AsnType
*Copy() const;
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
);
381 AsnLen
BEnc (BUF_TYPE b
);
382 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
383 void Print (ostream
&os
) const;
387 class DHPrivateKey
: public AsnType
392 BigIntegerStr secretPart
;
395 DHPrivateKey (const DHPrivateKey
&);
396 virtual ~DHPrivateKey();
397 virtual AsnType
*Clone() const;
399 virtual AsnType
*Copy() const;
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
);
405 AsnLen
BEnc (BUF_TYPE b
);
406 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
407 void Print (ostream
&os
) const;
411 class DHParameterBlock
: public AsnType
418 DHParameterBlock (const DHParameterBlock
&);
419 virtual ~DHParameterBlock();
420 virtual AsnType
*Clone() const;
422 virtual AsnType
*Copy() const;
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
);
428 AsnLen
BEnc (BUF_TYPE b
);
429 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
430 void Print (ostream
&os
) const;
434 //------------------------------------------------------------------------------
435 // externs for value defs
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 //------------------------------------------------------------------------------
471 #endif /* conditional include of appleoids.h */