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 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:
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 void Print (ostream
&os
) const;
50 class EncryptedPrivateKeyInfo
: public AsnType
53 AlgorithmIdentifier
*encryptionAlgorithm
;
54 EncryptedKey encryptedKey
;
56 EncryptedPrivateKeyInfo();
57 EncryptedPrivateKeyInfo (const EncryptedPrivateKeyInfo
&);
58 virtual ~EncryptedPrivateKeyInfo();
59 virtual AsnType
*Clone() const;
61 virtual AsnType
*Copy() const;
63 EncryptedPrivateKeyInfo
&operator = (const EncryptedPrivateKeyInfo
&);
64 AsnLen
BEncContent (BUF_TYPE b
);
65 void BDecContent (BUF_TYPE b
, AsnTag tag
, AsnLen elmtLen
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
67 AsnLen
BEnc (BUF_TYPE b
);
68 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
69 void Print (ostream
&os
) const;
73 //------------------------------------------------------------------------------
74 // externs for value defs
76 //------------------------------------------------------------------------------
78 #endif /* conditional include of pkcs8.h */