aboutsummaryrefslogtreecommitdiffstats
path: root/include/dsa.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/dsa.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/dsa.h')
-rw-r--r--include/dsa.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/dsa.h b/include/dsa.h
index f5aed4b9a..78fad6aae 100644
--- a/include/dsa.h
+++ b/include/dsa.h
@@ -18,20 +18,20 @@ class DSA_PublicKey : public PK_Verifying_wo_MR_Key,
public virtual DL_Scheme_PublicKey
{
public:
+ std::string algo_name() const { return "DSA"; }
+
+ DL_Group::Format group_format() const { return DL_Group::ANSI_X9_57; }
+ u32bit message_parts() const { return 2; }
+ u32bit message_part_size() const;
+
bool verify(const byte[], u32bit, const byte[], u32bit) const;
u32bit max_input_bits() const;
+ DSA_PublicKey() {}
DSA_PublicKey(const DL_Group&, const BigInt&);
protected:
- std::string algo_name() const { return "DSA"; }
- DSA_PublicKey() {}
-
DSA_Core core;
private:
- friend Public_Key* get_public_key(const std::string&);
- DL_Group::Format group_format() const { return DL_Group::ANSI_X9_57; }
- u32bit message_parts() const { return 2; }
- u32bit message_part_size() const;
void X509_load_hook();
};
@@ -47,12 +47,11 @@ class DSA_PrivateKey : public DSA_PublicKey,
bool check_key(bool) const;
+ DSA_PrivateKey() {}
DSA_PrivateKey(const DL_Group&);
DSA_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);
- DSA_PrivateKey() {}
};
}