aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/gost_3410
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-04-20 10:30:04 -0400
committerJack Lloyd <[email protected]>2018-04-20 10:30:04 -0400
commitc90d868a533c13501e8d6e3b71919501b9d70f9e (patch)
treeb9a28e5edb1c172d334d79d91be2588eed1a1d59 /src/lib/pubkey/gost_3410
parent1177467fbae03f2370f7f20d692a95b484616923 (diff)
Use EC_Group::inverse_mod_order where appropriate
Diffstat (limited to 'src/lib/pubkey/gost_3410')
-rw-r--r--src/lib/pubkey/gost_3410/gost_3410.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/gost_3410/gost_3410.cpp b/src/lib/pubkey/gost_3410/gost_3410.cpp
index b0c94fb7e..1d1b0d75e 100644
--- a/src/lib/pubkey/gost_3410/gost_3410.cpp
+++ b/src/lib/pubkey/gost_3410/gost_3410.cpp
@@ -185,7 +185,7 @@ bool GOST_3410_Verification_Operation::verify(const uint8_t msg[], size_t msg_le
if(e == 0)
e = 1;
- const BigInt v = inverse_mod(e, order);
+ const BigInt v = m_group.inverse_mod_order(e);
const BigInt z1 = m_group.multiply_mod_order(s, v);
const BigInt z2 = m_group.multiply_mod_order(-r, v);