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 Wed Jun 27 16:40:55 2001
6 // UBC snacc by Mike Sample
7 // A couple of enhancements made by IBM European Networking Center
13 //------------------------------------------------------------------------------
14 // class declarations:
19 class FEECurveParameters
;
21 class FEEElGamalSignature
;
22 class FEEECDSASignature
;
27 class DSAPrivateKeyOcts
;
31 //------------------------------------------------------------------------------
34 /* INTEGER { pt_mersenne (0), pt_fee (1), pt_general (2) } */
35 class FEEPrimeType
: public AsnInt
38 FEEPrimeType(): AsnInt() {}
39 FEEPrimeType (int i
): AsnInt (i
) {}
49 /* INTEGER { ct_montgomery (0), ct_weierstrass (1), ct_general (2) } */
50 class FEECurveType
: public AsnInt
53 FEECurveType(): AsnInt() {}
54 FEECurveType (int i
): AsnInt (i
) {}
64 class DSABsafeParams
: public AsnType
73 DSABsafeParams (const DSABsafeParams
&);
74 virtual ~DSABsafeParams();
75 virtual AsnType
*Clone() const;
77 virtual AsnType
*Copy() const;
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
);
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
);
88 void Print (ostream
&os
) const;
92 class FEECurveParameters
: public AsnType
95 FEEPrimeType primeType
;
96 FEECurveType curveType
;
103 BigIntegerStr x1Plus
;
104 BigIntegerStr x1Minus
;
105 BigIntegerStr cOrderPlus
;
106 BigIntegerStr cOrderMinus
;
107 BigIntegerStr x1OrderPlus
;
108 BigIntegerStr x1OrderMinus
;
109 BigIntegerStr
*basePrime
;
111 FEECurveParameters();
112 FEECurveParameters (const FEECurveParameters
&);
113 virtual ~FEECurveParameters();
114 virtual AsnType
*Clone() const;
116 virtual AsnType
*Copy() const;
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
);
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
);
127 void Print (ostream
&os
) const;
131 class DSAAlgorithmId
: public AsnType
135 DSABsafeParams
*params
;
138 DSAAlgorithmId (const DSAAlgorithmId
&);
139 virtual ~DSAAlgorithmId();
140 virtual AsnType
*Clone() const;
142 virtual AsnType
*Copy() const;
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
);
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
);
153 void Print (ostream
&os
) const;
157 class FEEElGamalSignature
: public AsnType
163 FEEElGamalSignature();
164 FEEElGamalSignature (const FEEElGamalSignature
&);
165 virtual ~FEEElGamalSignature();
166 virtual AsnType
*Clone() const;
168 virtual AsnType
*Copy() const;
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
);
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
);
179 void Print (ostream
&os
) const;
183 class FEEECDSASignature
: public AsnType
190 FEEECDSASignature (const FEEECDSASignature
&);
191 virtual ~FEEECDSASignature();
192 virtual AsnType
*Clone() const;
194 virtual AsnType
*Copy() const;
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
);
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
);
205 void Print (ostream
&os
) const;
209 class FEEPublicKey
: public AsnType
213 FEECurveParameters
*curveParams
;
215 BigIntegerStr minusX
;
216 BigIntegerStr
*plusY
;
219 FEEPublicKey (const FEEPublicKey
&);
220 virtual ~FEEPublicKey();
221 virtual AsnType
*Clone() const;
223 virtual AsnType
*Copy() const;
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
);
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
);
234 void Print (ostream
&os
) const;
238 class FEEPrivateKey
: public AsnType
242 FEECurveParameters
*curveParams
;
243 BigIntegerStr privData
;
246 FEEPrivateKey (const FEEPrivateKey
&);
247 virtual ~FEEPrivateKey();
248 virtual AsnType
*Clone() const;
250 virtual AsnType
*Copy() const;
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
);
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
);
261 void Print (ostream
&os
) const;
265 class DSAPrivateKey
: public AsnType
269 DSAAlgorithmId
*dsaAlg
;
273 DSAPrivateKey (const DSAPrivateKey
&);
274 virtual ~DSAPrivateKey();
275 virtual AsnType
*Clone() const;
277 virtual AsnType
*Copy() const;
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
);
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
);
288 void Print (ostream
&os
) const;
292 class DSAPublicKey
: public AsnType
295 DSAAlgorithmId
*dsaAlg
;
299 DSAPublicKey (const DSAPublicKey
&);
300 virtual ~DSAPublicKey();
301 virtual AsnType
*Clone() const;
303 virtual AsnType
*Copy() const;
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
);
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
);
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 int BEncPdu (BUF_TYPE b
, AsnLen
&bytesEncoded
);
337 int BDecPdu (BUF_TYPE b
, AsnLen
&bytesDecoded
);
339 void Print (ostream
&os
) const;
343 class DSASignature
: public AsnType
350 DSASignature (const DSASignature
&);
351 virtual ~DSASignature();
352 virtual AsnType
*Clone() const;
354 virtual AsnType
*Copy() const;
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
);
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
);
365 void Print (ostream
&os
) const;
369 class DSAAlgParams
: public AsnType
377 DSAAlgParams (const DSAAlgParams
&);
378 virtual ~DSAAlgParams();
379 virtual AsnType
*Clone() const;
381 virtual AsnType
*Copy() const;
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
);
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
);
392 void Print (ostream
&os
) const;
396 //------------------------------------------------------------------------------
397 // externs for value defs
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 //------------------------------------------------------------------------------
429 #endif /* conditional include of appleoids.h */