aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-08-28 20:24:57 -0400
committerJack Lloyd <[email protected]>2015-08-28 20:24:57 -0400
commit200e1e5c0498d5b22f980d43cc03981ea9599660 (patch)
tree9057aa76de6c69e73f544096ade363228caeab45 /src/lib
parent3393203c366dca8b7a4b47ecc41ceeeb531beee6 (diff)
Remove unused variable
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/pubkey/ecdsa/ecdsa.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/pubkey/ecdsa/ecdsa.cpp b/src/lib/pubkey/ecdsa/ecdsa.cpp
index c327a37c3..4a4b0c037 100644
--- a/src/lib/pubkey/ecdsa/ecdsa.cpp
+++ b/src/lib/pubkey/ecdsa/ecdsa.cpp
@@ -39,7 +39,6 @@ class ECDSA_Signature_Operation : public PK_Ops::Signature_with_EMSA
ECDSA_Signature_Operation(const ECDSA_PrivateKey& ecdsa,
const std::string& emsa) :
PK_Ops::Signature_with_EMSA(emsa),
- base_point(ecdsa.domain().get_base_point()),
m_order(ecdsa.domain().get_order()),
m_base_point(ecdsa.domain().get_base_point(), m_order),
m_x(ecdsa.private_value()),
@@ -56,7 +55,6 @@ class ECDSA_Signature_Operation : public PK_Ops::Signature_with_EMSA
size_t max_input_bits() const override { return m_order.bits(); }
private:
- const PointGFp& base_point;
const BigInt& m_order;
Blinded_Point_Multiply m_base_point;
const BigInt& m_x;
@@ -72,7 +70,6 @@ ECDSA_Signature_Operation::raw_sign(const byte msg[], size_t msg_len,
const BigInt k = generate_rfc6979_nonce(m_x, m_order, m, m_hash);
- //const PointGFp k_times_P = base_point * k;
const PointGFp k_times_P = m_base_point.blinded_multiply(k, rng);
const BigInt r = m_mod_order.reduce(k_times_P.get_affine_x());
const BigInt s = m_mod_order.multiply(inverse_mod(k, m_order), mul_add(m_x, r, m));