aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/sm2
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/sm2
parent9772e10e3112f9b14669d372574bcc01981028f2 (diff)
Add point_multiply operation to EC_Group
Allows precomputations in the future.
Diffstat (limited to 'src/lib/pubkey/sm2')
-rw-r--r--src/lib/pubkey/sm2/sm2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/sm2/sm2.cpp b/src/lib/pubkey/sm2/sm2.cpp
index 05c8417ec..e2bc5d92d 100644
--- a/src/lib/pubkey/sm2/sm2.cpp
+++ b/src/lib/pubkey/sm2/sm2.cpp
@@ -179,7 +179,7 @@ bool SM2_Verification_Operation::is_valid_signature(const uint8_t sig[], size_t
if(t == 0)
return false;
- const PointGFp R = multi_exponentiate(m_group.get_base_point(), s, m_public_point, t);
+ const PointGFp R = m_group.point_multiply(s, m_public_point, t);
// ???
if(R.is_zero())