]> git.saurik.com Git - apple/security.git/blob - SecurityASN1/inc/pkcs8.h
Security-54.1.tar.gz
[apple/security.git] / SecurityASN1 / inc / pkcs8.h
1 // NOTE: this is a machine generated file--editing not recommended
2 //
3 // pkcs8.h - class definitions for ASN.1 module PrivateKeyInformationSyntax
4 //
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
8
9 #ifndef _pkcs8_h_
10 #define _pkcs8_h_
11
12
13 //------------------------------------------------------------------------------
14 // class declarations:
15
16 class PrivateKeyInfo;
17 class EncryptedPrivateKeyInfo;
18
19 //------------------------------------------------------------------------------
20 // class definitions:
21
22 /* OCTET STRING */
23 typedef AsnOcts PrivateKey;
24
25 class PrivateKeyInfo: public AsnType
26 {
27 public:
28 AsnInt version;
29 AlgorithmIdentifier *privateKeyAlgorithm;
30 PrivateKey privateKey;
31 Attributes *attributes;
32
33 PrivateKeyInfo();
34 PrivateKeyInfo (const PrivateKeyInfo &);
35 virtual ~PrivateKeyInfo();
36 virtual AsnType *Clone() const;
37
38 virtual AsnType *Copy() const;
39
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);
43
44 AsnLen BEnc (BUF_TYPE b);
45 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
46 void Print (ostream &os) const;
47 };
48
49
50 class EncryptedPrivateKeyInfo: public AsnType
51 {
52 public:
53 AlgorithmIdentifier *encryptionAlgorithm;
54 EncryptedKey encryptedKey;
55
56 EncryptedPrivateKeyInfo();
57 EncryptedPrivateKeyInfo (const EncryptedPrivateKeyInfo &);
58 virtual ~EncryptedPrivateKeyInfo();
59 virtual AsnType *Clone() const;
60
61 virtual AsnType *Copy() const;
62
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);
66
67 AsnLen BEnc (BUF_TYPE b);
68 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
69 void Print (ostream &os) const;
70 };
71
72
73 //------------------------------------------------------------------------------
74 // externs for value defs
75
76 //------------------------------------------------------------------------------
77
78 #endif /* conditional include of pkcs8.h */