1 // NOTE: this is a machine generated file--editing not recommended
3 // pkcs7.h - class definitions for ASN.1 module PKCS7
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:
16 class EncryptedDataInt
;
17 class EncryptedContentInfo1
;
20 //------------------------------------------------------------------------------
23 /* INTEGER { edVer0 (0) } */
24 class EncryptedDataInt
: public AsnInt
27 EncryptedDataInt(): AsnInt() {}
28 EncryptedDataInt (int i
): AsnInt (i
) {}
36 /* OBJECT IDENTIFIER */
37 typedef AsnOid ContentType1
;
40 typedef AsnOcts EncryptedContent1
;
42 /* AlgorithmIdentifier */
43 typedef AlgorithmIdentifier ContentEncryptionAlgorithmIdentifier1
;
45 class EncryptedContentInfo1
: public AsnType
48 ContentType1 contentType
;
49 ContentEncryptionAlgorithmIdentifier1
*contentEncryptionAlgorithm
;
50 EncryptedContent1
*encryptedContent
;
52 EncryptedContentInfo1();
53 EncryptedContentInfo1 (const EncryptedContentInfo1
&);
54 virtual ~EncryptedContentInfo1();
55 virtual AsnType
*Clone() const;
57 virtual AsnType
*Copy() const;
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
);
63 AsnLen
BEnc (BUF_TYPE b
);
64 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
65 int BEncPdu (BUF_TYPE b
, AsnLen
&bytesEncoded
);
66 int BDecPdu (BUF_TYPE b
, AsnLen
&bytesDecoded
);
68 void Print (ostream
&os
) const;
72 class EncryptedData1
: public AsnType
75 EncryptedDataInt version
;
76 EncryptedContentInfo1
*encryptedContentInfo
;
79 EncryptedData1 (const EncryptedData1
&);
80 virtual ~EncryptedData1();
81 virtual AsnType
*Clone() const;
83 virtual AsnType
*Copy() const;
85 EncryptedData1
&operator = (const EncryptedData1
&);
86 AsnLen
BEncContent (BUF_TYPE b
);
87 void BDecContent (BUF_TYPE b
, AsnTag tag
, AsnLen elmtLen
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
89 AsnLen
BEnc (BUF_TYPE b
);
90 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
91 int BEncPdu (BUF_TYPE b
, AsnLen
&bytesEncoded
);
92 int BDecPdu (BUF_TYPE b
, AsnLen
&bytesDecoded
);
94 void Print (ostream
&os
) const;
98 //------------------------------------------------------------------------------
99 // externs for value defs
101 #define pkcs_7_arc 1, 2, 840, 113549, 1, 7
102 #define pkcs_7 AsnOid(pkcs_7_arc)
103 #define dataPkcs7_arc 1, 2, 840, 113549, 1, 7, 1
104 #define dataPkcs7 AsnOid(dataPkcs7_arc)
105 #define signedData_arc 1, 2, 840, 113549, 1, 7, 2
106 #define signedData AsnOid(signedData_arc)
107 #define envelopedData_arc 1, 2, 840, 113549, 1, 7, 3
108 #define envelopedData AsnOid(envelopedData_arc)
109 #define signedAndEnvelopedData_arc 1, 2, 840, 113549, 1, 7, 4
110 #define signedAndEnvelopedData AsnOid(signedAndEnvelopedData_arc)
111 #define digestedData_arc 1, 2, 840, 113549, 1, 7, 5
112 #define digestedData AsnOid(digestedData_arc)
113 #define encryptedData_arc 1, 2, 840, 113549, 1, 7, 6
114 #define encryptedData AsnOid(encryptedData_arc)
115 //------------------------------------------------------------------------------
117 #endif /* conditional include of pkcs7.h */