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/dl_algo.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/dl_algo.h')
-rw-r--r-- | include/dl_algo.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/include/dl_algo.h b/include/dl_algo.h index 5a12370f6..cd1486e13 100644 --- a/include/dl_algo.h +++ b/include/dl_algo.h @@ -22,20 +22,17 @@ class DL_Scheme_PublicKey : public virtual Public_Key const DL_Group& get_domain() const { return group; } const BigInt& get_y() const { return y; } - - virtual ~DL_Scheme_PublicKey() {} - protected: const BigInt& group_p() const { return group.get_p(); } const BigInt& group_q() const { return group.get_q(); } const BigInt& group_g() const { return group.get_g(); } virtual DL_Group::Format group_format() const = 0; + X509_Encoder* x509_encoder() const; + X509_Decoder* x509_decoder(); + protected: BigInt y; DL_Group group; private: - X509_Encoder* x509_encoder() const; - X509_Decoder* x509_decoder(); - virtual void X509_load_hook() {} }; @@ -50,12 +47,11 @@ class DL_Scheme_PrivateKey : public virtual DL_Scheme_PublicKey, const BigInt& get_x() const { return x; } - virtual ~DL_Scheme_PrivateKey() {} + PKCS8_Encoder* pkcs8_encoder() const; + PKCS8_Decoder* pkcs8_decoder(); protected: BigInt x; private: - PKCS8_Encoder* pkcs8_encoder() const; - PKCS8_Decoder* pkcs8_decoder(); virtual void PKCS8_load_hook(bool = false) {} }; |