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 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:
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 void Print (ostream
&os
) const;
69 class EncryptedData1
: public AsnType
72 EncryptedDataInt version
;
73 EncryptedContentInfo1
*encryptedContentInfo
;
76 EncryptedData1 (const EncryptedData1
&);
77 virtual ~EncryptedData1();
78 virtual AsnType
*Clone() const;
80 virtual AsnType
*Copy() const;
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
);
86 AsnLen
BEnc (BUF_TYPE b
);
87 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
88 void Print (ostream
&os
) const;
92 //------------------------------------------------------------------------------
93 // externs for value defs
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 //------------------------------------------------------------------------------
111 #endif /* conditional include of pkcs7.h */