1 // NOTE: this is a machine generated file--editing not recommended
3 // pkcs8.h - class definitions for ASN.1 module PrivateKeyInformationSyntax
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:
17 class EncryptedPrivateKeyInfo
;
19 //------------------------------------------------------------------------------
23 typedef AsnOcts PrivateKey
;
25 class PrivateKeyInfo
: public AsnType
29 AlgorithmIdentifier
*privateKeyAlgorithm
;
30 PrivateKey privateKey
;
31 Attributes
*attributes
;
34 PrivateKeyInfo (const PrivateKeyInfo
&);
35 virtual ~PrivateKeyInfo();
36 virtual AsnType
*Clone() const;
38 virtual AsnType
*Copy() const;
40 PrivateKeyInfo
&operator = (const PrivateKeyInfo
&);
41 AsnLen
BEncContent (BUF_TYPE b
);
42 void BDecContent (BUF_TYPE b
, AsnTag tag
, AsnLen elmtLen
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
44 AsnLen
BEnc (BUF_TYPE b
);
45 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
46 int BEncPdu (BUF_TYPE b
, AsnLen
&bytesEncoded
);
47 int BDecPdu (BUF_TYPE b
, AsnLen
&bytesDecoded
);
49 void Print (ostream
&os
) const;
53 class EncryptedPrivateKeyInfo
: public AsnType
56 AlgorithmIdentifier
*encryptionAlgorithm
;
57 EncryptedKey encryptedKey
;
59 EncryptedPrivateKeyInfo();
60 EncryptedPrivateKeyInfo (const EncryptedPrivateKeyInfo
&);
61 virtual ~EncryptedPrivateKeyInfo();
62 virtual AsnType
*Clone() const;
64 virtual AsnType
*Copy() const;
66 EncryptedPrivateKeyInfo
&operator = (const EncryptedPrivateKeyInfo
&);
67 AsnLen
BEncContent (BUF_TYPE b
);
68 void BDecContent (BUF_TYPE b
, AsnTag tag
, AsnLen elmtLen
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
70 AsnLen
BEnc (BUF_TYPE b
);
71 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
72 int BEncPdu (BUF_TYPE b
, AsnLen
&bytesEncoded
);
73 int BDecPdu (BUF_TYPE b
, AsnLen
&bytesDecoded
);
75 void Print (ostream
&os
) const;
79 //------------------------------------------------------------------------------
80 // externs for value defs
82 //------------------------------------------------------------------------------
84 #endif /* conditional include of pkcs8.h */