1 // NOTE: this is a machine generated file--editing not recommended
3 // pkcs1oids.h - class definitions for ASN.1 module PKCS1-OIDS
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:
19 //------------------------------------------------------------------------------
22 class RSAPublicKey
: public AsnType
25 BigIntegerStr modulus
;
26 BigIntegerStr publicExponent
;
29 RSAPublicKey (const RSAPublicKey
&);
30 virtual ~RSAPublicKey();
31 virtual AsnType
*Clone() const;
33 virtual AsnType
*Copy() const;
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
);
39 AsnLen
BEnc (BUF_TYPE b
);
40 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
41 void Print (ostream
&os
) const;
45 class RSAPrivateKey
: public AsnType
49 BigIntegerStr modulus
;
50 BigIntegerStr publicExponent
;
51 BigIntegerStr privateExponent
;
54 BigIntegerStr exponent1
;
55 BigIntegerStr exponent2
;
56 BigIntegerStr coefficient
;
59 RSAPrivateKey (const RSAPrivateKey
&);
60 virtual ~RSAPrivateKey();
61 virtual AsnType
*Clone() const;
63 virtual AsnType
*Copy() const;
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
);
69 AsnLen
BEnc (BUF_TYPE b
);
70 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
71 void Print (ostream
&os
) const;
75 //------------------------------------------------------------------------------
76 // externs for value defs
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 //------------------------------------------------------------------------------
104 #endif /* conditional include of pkcs1oids.h */