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/if_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/if_algo.h')
-rw-r--r-- | include/if_algo.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/if_algo.h b/include/if_algo.h index fa60a9185..d67aa0311 100644 --- a/include/if_algo.h +++ b/include/if_algo.h @@ -25,14 +25,12 @@ class IF_Scheme_PublicKey : public virtual Public_Key u32bit max_input_bits() const { return (n.bits() - 1); } - virtual ~IF_Scheme_PublicKey() {} + X509_Encoder* x509_encoder() const; + X509_Decoder* x509_decoder(); protected: virtual void X509_load_hook(); BigInt n, e; IF_Core core; - private: - X509_Encoder* x509_encoder() const; - X509_Decoder* x509_decoder(); }; /************************************************* @@ -48,13 +46,11 @@ class IF_Scheme_PrivateKey : public virtual IF_Scheme_PublicKey, const BigInt& get_q() const { return q; } const BigInt& get_d() const { return d; } - virtual ~IF_Scheme_PrivateKey() {} + PKCS8_Encoder* pkcs8_encoder() const; + PKCS8_Decoder* pkcs8_decoder(); protected: virtual void PKCS8_load_hook(bool = false); BigInt d, p, q, d1, d2, c; - private: - PKCS8_Encoder* pkcs8_encoder() const; - PKCS8_Decoder* pkcs8_decoder(); }; } |