aboutsummaryrefslogtreecommitdiffstats
path: root/include/dh.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/dh.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/dh.h')
-rw-r--r--include/dh.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/dh.h b/include/dh.h
index 6ef519506..98890b62c 100644
--- a/include/dh.h
+++ b/include/dh.h
@@ -17,16 +17,16 @@ namespace Botan {
class DH_PublicKey : public virtual DL_Scheme_PublicKey
{
public:
+ std::string algo_name() const { return "DH"; }
+
MemoryVector<byte> public_value() const;
u32bit max_input_bits() const;
- DH_PublicKey(const DL_Group&, const BigInt&);
- protected:
- std::string algo_name() const { return "DH"; }
+ DL_Group::Format group_format() const { return DL_Group::ANSI_X9_42; }
+
DH_PublicKey() {}
+ DH_PublicKey(const DL_Group&, const BigInt&);
private:
- friend Public_Key* get_public_key(const std::string&);
- DL_Group::Format group_format() const { return DL_Group::ANSI_X9_42; }
void X509_load_hook();
};
@@ -44,13 +44,11 @@ class DH_PrivateKey : public DH_PublicKey,
MemoryVector<byte> public_value() const;
+ DH_PrivateKey() {}
DH_PrivateKey(const DL_Group&);
DH_PrivateKey(const DL_Group&, const BigInt&, const BigInt& = 0);
private:
- friend Private_Key* get_private_key(const std::string&);
void PKCS8_load_hook(bool = false);
- DH_PrivateKey() {}
-
DH_Core core;
};