From 8e828f454f2d19b18928fbd48d65b461e8fd21ed Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 23 Aug 2019 20:09:07 -0400 Subject: Remove modexp based inversion from speed test Not competitive so not interesting --- src/cli/speed.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index f198c3e63..0d5bb34cd 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -91,7 +91,6 @@ #if defined(BOTAN_HAS_NUMBERTHEORY) #include - #include #include #include #include @@ -1528,9 +1527,6 @@ class Speed final : public Command std::unique_ptr invmod_timer = make_timer("binext-" + bit_str); std::unique_ptr monty_timer = make_timer("monty-" + bit_str); std::unique_ptr ct_invmod_timer = make_timer("ct-" + bit_str); - std::unique_ptr powm_timer = make_timer("powm-" + bit_str); - - Botan::Fixed_Exponent_Power_Mod powm_p(p - 2, p); while(invmod_timer->under(runtime)) { @@ -1545,18 +1541,13 @@ class Speed final : public Command const Botan::BigInt x_inv3 = ct_invmod_timer->run( [&] { return Botan::ct_inverse_mod_odd_modulus(x, p); }); - const Botan::BigInt x_inv4 = powm_timer->run( - [&] { return powm_p(x); }); - BOTAN_ASSERT_EQUAL(x_inv1, x_inv2, "Same result"); BOTAN_ASSERT_EQUAL(x_inv1, x_inv3, "Same result"); - BOTAN_ASSERT_EQUAL(x_inv1, x_inv4, "Same result"); } record_result(invmod_timer); record_result(monty_timer); record_result(ct_invmod_timer); - record_result(powm_timer); } } -- cgit v1.2.3