diff options
author | Jack Lloyd <[email protected]> | 2018-04-20 10:30:04 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-04-20 10:30:04 -0400 |
commit | c90d868a533c13501e8d6e3b71919501b9d70f9e (patch) | |
tree | b9a28e5edb1c172d334d79d91be2588eed1a1d59 /src/cli | |
parent | 1177467fbae03f2370f7f20d692a95b484616923 (diff) |
Use EC_Group::inverse_mod_order where appropriate
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/timing_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/timing_tests.cpp b/src/cli/timing_tests.cpp index 5c0c504df..5a6b2b773 100644 --- a/src/cli/timing_tests.cpp +++ b/src/cli/timing_tests.cpp @@ -291,7 +291,7 @@ ticks ECDSA_Timing_Test::measure_critical_function(std::vector<uint8_t> input) //The following ECDSA operations involve and should not leak any information about k. - const Botan::BigInt k_inv = Botan::inverse_mod(k, m_group.get_order()); + const Botan::BigInt k_inv = m_group.inverse_mod_order(k); const Botan::PointGFp k_times_P = m_group.blinded_base_point_multiply(k, Timing_Test::timing_test_rng(), m_ws); const Botan::BigInt r = m_group.mod_order(k_times_P.get_affine_x()); const Botan::BigInt s = m_group.multiply_mod_order(k_inv, mul_add(m_x, r, msg)); |