diff options
author | lloyd <[email protected]> | 2008-10-08 02:46:57 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-08 02:46:57 +0000 |
commit | ebfb6a6e9150820aa7e783f97bd5e0ac302adfbe (patch) | |
tree | cbdf8f8f7f223e59858d5024052a2fac1ea5b3dd /src/pubkey/ecdsa | |
parent | b46e73584275ce8dcf3114d124c82e92730d0dbc (diff) |
Reformatting
Diffstat (limited to 'src/pubkey/ecdsa')
-rw-r--r-- | src/pubkey/ecdsa/ecdsa.h | 8 | ||||
-rw-r--r-- | src/pubkey/ecdsa/ecdsa_op.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pubkey/ecdsa/ecdsa.h b/src/pubkey/ecdsa/ecdsa.h index 4b7e7b5b3..9c7492a13 100644 --- a/src/pubkey/ecdsa/ecdsa.h +++ b/src/pubkey/ecdsa/ecdsa.h @@ -59,8 +59,8 @@ class ECDSA_PublicKey : public virtual EC_PublicKey, * @param dom_par the domain parameters associated with this key * @param public_point the public point defining this key */ - ECDSA_PublicKey(EC_Domain_Params const& dom_par, Botan::PointGFp const& public_point); // sets core - + ECDSA_PublicKey(const EC_Domain_Params& dom_par, + const PointGFp& public_point); // sets core ECDSA_PublicKey const& operator= (ECDSA_PublicKey const& rhs); @@ -104,8 +104,8 @@ class ECDSA_PrivateKey : public ECDSA_PublicKey, * Default constructor. Use this one if you want to later fill this object with data * from an encoded key. */ - ECDSA_PrivateKey() - {} + ECDSA_PrivateKey() {} + /** * Generate a new private key * @param the domain parameters to used for this key diff --git a/src/pubkey/ecdsa/ecdsa_op.cpp b/src/pubkey/ecdsa/ecdsa_op.cpp index 58f00cb4b..21643bb5c 100644 --- a/src/pubkey/ecdsa/ecdsa_op.cpp +++ b/src/pubkey/ecdsa/ecdsa_op.cpp @@ -79,7 +79,7 @@ SecureVector<byte> Default_ECDSA_Op::sign(const byte message[], // where x is a random integer #ifdef CMS_RAND - BigInt x = Botan::random_integer(0, n); + BigInt x = BigInt::random_integer(0, n); BigInt s = m_priv_key + x; // obscure the secret from the beginning // all following operations thus are randomized s *= r; |