diff options
author | Jack Lloyd <[email protected]> | 2018-02-18 12:28:18 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-02-18 13:37:42 -0500 |
commit | 93dc617bb11600fe25f46c3a4f2211478708247d (patch) | |
tree | 43a09a1faf5031fa21923ce0c8eccb7755a3bc0b /src/lib/pubkey/eckcdsa/eckcdsa.cpp | |
parent | 9772e10e3112f9b14669d372574bcc01981028f2 (diff) |
Add point_multiply operation to EC_Group
Allows precomputations in the future.
Diffstat (limited to 'src/lib/pubkey/eckcdsa/eckcdsa.cpp')
-rw-r--r-- | src/lib/pubkey/eckcdsa/eckcdsa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/eckcdsa/eckcdsa.cpp b/src/lib/pubkey/eckcdsa/eckcdsa.cpp index d6e0957f6..743d5ab95 100644 --- a/src/lib/pubkey/eckcdsa/eckcdsa.cpp +++ b/src/lib/pubkey/eckcdsa/eckcdsa.cpp @@ -171,7 +171,7 @@ bool ECKCDSA_Verification_Operation::verify(const uint8_t msg[], size_t, BigInt w(r_xor_e.data(), r_xor_e.size()); w = m_group.mod_order(w); - const PointGFp q = multi_exponentiate(m_group.get_base_point(), w, m_public_point, s); + const PointGFp q = m_group.point_multiply(w, m_public_point, s); const BigInt q_x = q.get_affine_x(); secure_vector<uint8_t> c(q_x.bytes()); q_x.binary_encode(c.data()); |