aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/ecdsa
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-18 12:28:18 -0500
committerJack Lloyd <[email protected]>2018-02-18 13:37:42 -0500
commit93dc617bb11600fe25f46c3a4f2211478708247d (patch)
tree43a09a1faf5031fa21923ce0c8eccb7755a3bc0b /src/lib/pubkey/ecdsa
parent9772e10e3112f9b14669d372574bcc01981028f2 (diff)
Add point_multiply operation to EC_Group
Allows precomputations in the future.
Diffstat (limited to 'src/lib/pubkey/ecdsa')
-rw-r--r--src/lib/pubkey/ecdsa/ecdsa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/ecdsa/ecdsa.cpp b/src/lib/pubkey/ecdsa/ecdsa.cpp
index 163936c08..12ccd9608 100644
--- a/src/lib/pubkey/ecdsa/ecdsa.cpp
+++ b/src/lib/pubkey/ecdsa/ecdsa.cpp
@@ -143,7 +143,7 @@ bool ECDSA_Verification_Operation::verify(const uint8_t msg[], size_t msg_len,
const BigInt u1 = m_group.multiply_mod_order(e, w);
const BigInt u2 = m_group.multiply_mod_order(r, w);
- const PointGFp R = multi_exponentiate(m_group.get_base_point(), u1, m_public_point, u2);
+ const PointGFp R = m_group.point_multiply(u1, m_public_point, u2);
if(R.is_zero())
return false;