diff options
author | lloyd <[email protected]> | 2006-09-07 03:15:11 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-07 03:15:11 +0000 |
commit | 3dd84dfbeb1fc7b3f4ca1385b9195efe210b8d05 (patch) | |
tree | 1b515342c8ede9e6d3612846f5ca02bbe10b3fb5 /include/rsa.h | |
parent | 34e84e5ba997949120e5c99011dbf4e770db1278 (diff) |
Make various member functions in the PK algorithms public, particularly
ones which were visible via base classes, and the empty constructors.
Diffstat (limited to 'include/rsa.h')
-rw-r--r-- | include/rsa.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/rsa.h b/include/rsa.h index 776ddffec..ce1c9c988 100644 --- a/include/rsa.h +++ b/include/rsa.h @@ -18,16 +18,15 @@ class RSA_PublicKey : public PK_Encrypting_Key, public virtual IF_Scheme_PublicKey { public: + std::string algo_name() const { return "RSA"; } + SecureVector<byte> encrypt(const byte[], u32bit) const; SecureVector<byte> verify(const byte[], u32bit) const; + RSA_PublicKey() {} RSA_PublicKey(const BigInt&, const BigInt&); protected: BigInt public_op(const BigInt&) const; - std::string algo_name() const { return "RSA"; } - RSA_PublicKey() {} - private: - friend Public_Key* get_public_key(const std::string&); }; /************************************************* @@ -44,13 +43,12 @@ class RSA_PrivateKey : public RSA_PublicKey, bool check_key(bool) const; + RSA_PrivateKey() {} RSA_PrivateKey(const BigInt&, const BigInt&, const BigInt&, const BigInt& = 0, const BigInt& = 0); RSA_PrivateKey(u32bit, u32bit = 65537); private: - friend Private_Key* get_private_key(const std::string&); BigInt private_op(const byte[], u32bit) const; - RSA_PrivateKey() {} }; } |