aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/ecdsa/ecdsa.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-18 06:49:50 +0000
committerlloyd <[email protected]>2009-11-18 06:49:50 +0000
commit5e80eff19cc7377d67314c1266a0060f1f201882 (patch)
tree902cefb65ea0f986567eff866ac93d94947ad0dc /src/pubkey/ecdsa/ecdsa.h
parent74528281a8fce78fc99d6f480577b7645bd5be5c (diff)
Much cleaning up in ECDSA, though it's still rather a mess (and 50x slower
than OpenSSL... that's a problem for another branch though).
Diffstat (limited to 'src/pubkey/ecdsa/ecdsa.h')
-rw-r--r--src/pubkey/ecdsa/ecdsa.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pubkey/ecdsa/ecdsa.h b/src/pubkey/ecdsa/ecdsa.h
index a6a77f3e6..ce8c185a5 100644
--- a/src/pubkey/ecdsa/ecdsa.h
+++ b/src/pubkey/ecdsa/ecdsa.h
@@ -37,6 +37,11 @@ class BOTAN_DLL ECDSA_PublicKey : public virtual EC_PublicKey,
*/
u32bit max_input_bits() const;
+ u32bit message_parts() const { return 2; }
+
+ u32bit message_part_size() const
+ { return mp_dom_pars->get_order().bytes(); }
+
/**
* Verify a message with this key.
* @param message the byte array containing the message
@@ -113,6 +118,13 @@ class BOTAN_DLL ECDSA_PrivateKey : public ECDSA_PublicKey,
ECDSA_PrivateKey(RandomNumberGenerator& rng,
const EC_Domain_Params& domain);
+ /**
+ * Load a private key
+ * @param domain parameters
+ * @param x the private key
+ */
+ ECDSA_PrivateKey(const EC_Domain_Params& domain, const BigInt& x);
+
ECDSA_PrivateKey(const ECDSA_PrivateKey& other);
ECDSA_PrivateKey const& operator=(const ECDSA_PrivateKey& rhs);