]> git.saurik.com Git - apple/security.git/blob - SecurityASN1/inc/pkcs1oids.h
Security-54.tar.gz
[apple/security.git] / SecurityASN1 / inc / pkcs1oids.h
1 // NOTE: this is a machine generated file--editing not recommended
2 //
3 // pkcs1oids.h - class definitions for ASN.1 module PKCS1-OIDS
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 _pkcs1oids_h_
10 #define _pkcs1oids_h_
11
12
13 //------------------------------------------------------------------------------
14 // class declarations:
15
16 class RSAPublicKey;
17 class RSAPrivateKey;
18
19 //------------------------------------------------------------------------------
20 // class definitions:
21
22 class RSAPublicKey: public AsnType
23 {
24 public:
25 BigIntegerStr modulus;
26 BigIntegerStr publicExponent;
27
28 RSAPublicKey();
29 RSAPublicKey (const RSAPublicKey &);
30 virtual ~RSAPublicKey();
31 virtual AsnType *Clone() const;
32
33 virtual AsnType *Copy() const;
34
35 RSAPublicKey &operator = (const RSAPublicKey &);
36 AsnLen BEncContent (BUF_TYPE b);
37 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
38
39 AsnLen BEnc (BUF_TYPE b);
40 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
41 void Print (ostream &os) const;
42 };
43
44
45 class RSAPrivateKey: public AsnType
46 {
47 public:
48 AsnInt version;
49 BigIntegerStr modulus;
50 BigIntegerStr publicExponent;
51 BigIntegerStr privateExponent;
52 BigIntegerStr prime1;
53 BigIntegerStr prime2;
54 BigIntegerStr exponent1;
55 BigIntegerStr exponent2;
56 BigIntegerStr coefficient;
57
58 RSAPrivateKey();
59 RSAPrivateKey (const RSAPrivateKey &);
60 virtual ~RSAPrivateKey();
61 virtual AsnType *Clone() const;
62
63 virtual AsnType *Copy() const;
64
65 RSAPrivateKey &operator = (const RSAPrivateKey &);
66 AsnLen BEncContent (BUF_TYPE b);
67 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
68
69 AsnLen BEnc (BUF_TYPE b);
70 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
71 void Print (ostream &os) const;
72 };
73
74
75 //------------------------------------------------------------------------------
76 // externs for value defs
77
78 #define rsadsi_arc 1, 2, 840, 113549
79 #define rsadsi AsnOid(rsadsi_arc)
80 #define pkcs_arc 1, 2, 840, 113549, 1
81 #define pkcs AsnOid(pkcs_arc)
82 #define pkcs_1_arc 1, 2, 840, 113549, 1, 1
83 #define pkcs_1 AsnOid(pkcs_1_arc)
84 #define rsaEncryption_arc 1, 2, 840, 113549, 1, 1, 1
85 #define rsaEncryption AsnOid(rsaEncryption_arc)
86 #define md2WithRSAEncryption_arc 1, 2, 840, 113549, 1, 1, 2
87 #define md2WithRSAEncryption AsnOid(md2WithRSAEncryption_arc)
88 #define md4WithRSAEncryption_arc 1, 2, 840, 113549, 1, 1, 3
89 #define md4WithRSAEncryption AsnOid(md4WithRSAEncryption_arc)
90 #define md5WithRSAEncryption_arc 1, 2, 840, 113549, 1, 1, 4
91 #define md5WithRSAEncryption AsnOid(md5WithRSAEncryption_arc)
92 #define sha1withRSAEncryption_arc 1, 2, 840, 113549, 1, 1, 5
93 #define sha1withRSAEncryption AsnOid(sha1withRSAEncryption_arc)
94 #define rsaDigestAlgorithm_arc 1, 2, 840, 113549, 2
95 #define rsaDigestAlgorithm AsnOid(rsaDigestAlgorithm_arc)
96 #define md2_arc 1, 2, 840, 113549, 2, 2
97 #define md2 AsnOid(md2_arc)
98 #define md4_arc 1, 2, 840, 113549, 2, 4
99 #define md4 AsnOid(md4_arc)
100 #define md5_arc 1, 2, 840, 113549, 2, 5
101 #define md5 AsnOid(md5_arc)
102 //------------------------------------------------------------------------------
103
104 #endif /* conditional include of pkcs1oids.h */