aboutsummaryrefslogtreecommitdiffstats
path: root/include/rw.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-07 03:15:11 +0000
committerlloyd <[email protected]>2006-09-07 03:15:11 +0000
commit3dd84dfbeb1fc7b3f4ca1385b9195efe210b8d05 (patch)
tree1b515342c8ede9e6d3612846f5ca02bbe10b3fb5 /include/rw.h
parent34e84e5ba997949120e5c99011dbf4e770db1278 (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/rw.h')
-rw-r--r--include/rw.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/rw.h b/include/rw.h
index fb3378191..39992897a 100644
--- a/include/rw.h
+++ b/include/rw.h
@@ -17,15 +17,14 @@ class RW_PublicKey : public PK_Verifying_with_MR_Key,
public virtual IF_Scheme_PublicKey
{
public:
+ std::string algo_name() const { return "RW"; }
+
SecureVector<byte> verify(const byte[], u32bit) const;
+ RW_PublicKey() {}
RW_PublicKey(const BigInt&, const BigInt&);
protected:
BigInt public_op(const BigInt&) const;
- std::string algo_name() const { return "RW"; }
- RW_PublicKey() {}
- private:
- friend Public_Key* get_public_key(const std::string&);
};
/*************************************************
@@ -40,12 +39,10 @@ class RW_PrivateKey : public RW_PublicKey,
bool check_key(bool) const;
+ RW_PrivateKey() {}
RW_PrivateKey(const BigInt&, const BigInt&, const BigInt&,
const BigInt& = 0, const BigInt& = 0);
RW_PrivateKey(u32bit, u32bit = 2);
- private:
- friend Private_Key* get_private_key(const std::string&);
- RW_PrivateKey() {}
};
}