~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to rsa.h

  • Committer: weidai
  • Date: 2009-03-14 22:27:56 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:455
fix line ending

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
        // X509PublicKey
27
27
        OID GetAlgorithmID() const;
28
 
        void BERDecodeKey(BufferedTransformation &bt);
29
 
        void DEREncodeKey(BufferedTransformation &bt) const;
 
28
        void BERDecodePublicKey(BufferedTransformation &bt, bool parametersPresent, size_t size);
 
29
        void DEREncodePublicKey(BufferedTransformation &bt) const;
30
30
 
31
31
        // CryptoMaterial
32
32
        bool Validate(RandomNumberGenerator &rng, unsigned int level) const;
66
66
                {PKCS8PrivateKey::BERDecode(bt);}
67
67
        void DEREncode(BufferedTransformation &bt) const
68
68
                {PKCS8PrivateKey::DEREncode(bt);}
69
 
        void BERDecodeKey(BufferedTransformation &bt);
70
 
        void DEREncodeKey(BufferedTransformation &bt) const;
 
69
        void Load(BufferedTransformation &bt)
 
70
                {PKCS8PrivateKey::BERDecode(bt);}
 
71
        void Save(BufferedTransformation &bt) const
 
72
                {PKCS8PrivateKey::DEREncode(bt);}
 
73
        OID GetAlgorithmID() const {return RSAFunction::GetAlgorithmID();}
 
74
        void BERDecodePrivateKey(BufferedTransformation &bt, bool parametersPresent, size_t size);
 
75
        void DEREncodePrivateKey(BufferedTransformation &bt) const;
71
76
 
72
77
        // TrapdoorFunctionInverse
73
78
        Integer CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const;
156
161
typedef RSASS<PKCS1v15, SHA>::Signer RSASSA_PKCS1v15_SHA_Signer;
157
162
typedef RSASS<PKCS1v15, SHA>::Verifier RSASSA_PKCS1v15_SHA_Verifier;
158
163
 
159
 
typedef RSASS<PKCS1v15, MD2>::Signer RSASSA_PKCS1v15_MD2_Signer;
160
 
typedef RSASS<PKCS1v15, MD2>::Verifier RSASSA_PKCS1v15_MD2_Verifier;
 
164
namespace Weak {
 
165
typedef RSASS<PKCS1v15, Weak1::MD2>::Signer RSASSA_PKCS1v15_MD2_Signer;
 
166
typedef RSASS<PKCS1v15, Weak1::MD2>::Verifier RSASSA_PKCS1v15_MD2_Verifier;
161
167
 
162
 
typedef RSASS<PKCS1v15, MD5>::Signer RSASSA_PKCS1v15_MD5_Signer;
163
 
typedef RSASS<PKCS1v15, MD5>::Verifier RSASSA_PKCS1v15_MD5_Verifier;
 
168
typedef RSASS<PKCS1v15, Weak1::MD5>::Signer RSASSA_PKCS1v15_MD5_Signer;
 
169
typedef RSASS<PKCS1v15, Weak1::MD5>::Verifier RSASSA_PKCS1v15_MD5_Verifier;
 
170
}
164
171
 
165
172
NAMESPACE_END
166
173