Commit | Line | Data |
---|---|---|
bac41a7b A |
1 | // NOTE: this is a machine generated file--editing not recommended |
2 | // | |
3 | // pkcs7.h - class definitions for ASN.1 module PKCS7 | |
4 | // | |
29654253 | 5 | // This file was generated by snacc on Mon Apr 22 22:34:19 2002 |
bac41a7b A |
6 | // UBC snacc by Mike Sample |
7 | // A couple of enhancements made by IBM European Networking Center | |
8 | ||
9 | #ifndef _pkcs7_h_ | |
10 | #define _pkcs7_h_ | |
11 | ||
12 | ||
13 | //------------------------------------------------------------------------------ | |
14 | // class declarations: | |
15 | ||
16 | class EncryptedDataInt; | |
17 | class EncryptedContentInfo1; | |
18 | class EncryptedData1; | |
19 | ||
20 | //------------------------------------------------------------------------------ | |
21 | // class definitions: | |
22 | ||
23 | /* INTEGER { edVer0 (0) } */ | |
24 | class EncryptedDataInt: public AsnInt | |
25 | { | |
26 | public: | |
27 | EncryptedDataInt(): AsnInt() {} | |
28 | EncryptedDataInt (int i): AsnInt (i) {} | |
29 | enum | |
30 | { | |
31 | edVer0 = 0 | |
32 | }; | |
33 | }; | |
34 | ||
35 | ||
36 | /* OBJECT IDENTIFIER */ | |
37 | typedef AsnOid ContentType1; | |
38 | ||
39 | /* OCTET STRING */ | |
40 | typedef AsnOcts EncryptedContent1; | |
41 | ||
42 | /* AlgorithmIdentifier */ | |
43 | typedef AlgorithmIdentifier ContentEncryptionAlgorithmIdentifier1; | |
44 | ||
45 | class EncryptedContentInfo1: public AsnType | |
46 | { | |
47 | public: | |
48 | ContentType1 contentType; | |
49 | ContentEncryptionAlgorithmIdentifier1 *contentEncryptionAlgorithm; | |
50 | EncryptedContent1 *encryptedContent; | |
51 | ||
52 | EncryptedContentInfo1(); | |
53 | EncryptedContentInfo1 (const EncryptedContentInfo1 &); | |
54 | virtual ~EncryptedContentInfo1(); | |
55 | virtual AsnType *Clone() const; | |
56 | ||
57 | virtual AsnType *Copy() const; | |
58 | ||
59 | EncryptedContentInfo1 &operator = (const EncryptedContentInfo1 &); | |
60 | AsnLen BEncContent (BUF_TYPE b); | |
61 | void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env); | |
62 | ||
63 | AsnLen BEnc (BUF_TYPE b); | |
64 | void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env); | |
bac41a7b A |
65 | void Print (ostream &os) const; |
66 | }; | |
67 | ||
68 | ||
69 | class EncryptedData1: public AsnType | |
70 | { | |
71 | public: | |
72 | EncryptedDataInt version; | |
73 | EncryptedContentInfo1 *encryptedContentInfo; | |
74 | ||
75 | EncryptedData1(); | |
76 | EncryptedData1 (const EncryptedData1 &); | |
77 | virtual ~EncryptedData1(); | |
78 | virtual AsnType *Clone() const; | |
79 | ||
80 | virtual AsnType *Copy() const; | |
81 | ||
82 | EncryptedData1 &operator = (const EncryptedData1 &); | |
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); | |
bac41a7b A |
88 | void Print (ostream &os) const; |
89 | }; | |
90 | ||
91 | ||
92 | //------------------------------------------------------------------------------ | |
93 | // externs for value defs | |
94 | ||
95 | #define pkcs_7_arc 1, 2, 840, 113549, 1, 7 | |
96 | #define pkcs_7 AsnOid(pkcs_7_arc) | |
97 | #define dataPkcs7_arc 1, 2, 840, 113549, 1, 7, 1 | |
98 | #define dataPkcs7 AsnOid(dataPkcs7_arc) | |
99 | #define signedData_arc 1, 2, 840, 113549, 1, 7, 2 | |
100 | #define signedData AsnOid(signedData_arc) | |
101 | #define envelopedData_arc 1, 2, 840, 113549, 1, 7, 3 | |
102 | #define envelopedData AsnOid(envelopedData_arc) | |
103 | #define signedAndEnvelopedData_arc 1, 2, 840, 113549, 1, 7, 4 | |
104 | #define signedAndEnvelopedData AsnOid(signedAndEnvelopedData_arc) | |
105 | #define digestedData_arc 1, 2, 840, 113549, 1, 7, 5 | |
106 | #define digestedData AsnOid(digestedData_arc) | |
107 | #define encryptedData_arc 1, 2, 840, 113549, 1, 7, 6 | |
108 | #define encryptedData AsnOid(encryptedData_arc) | |
109 | //------------------------------------------------------------------------------ | |
110 | ||
111 | #endif /* conditional include of pkcs7.h */ |