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/sm2 | |
parent | 9772e10e3112f9b14669d372574bcc01981028f2 (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.cpp | 2 |
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()) |