From dc24f117eca49214d45582c83d2b8ddcc2c81704 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 22 Sep 2017 10:51:40 -0400 Subject: Remove some using declarations in test code --- src/tests/test_gf2m.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/tests/test_gf2m.cpp') diff --git a/src/tests/test_gf2m.cpp b/src/tests/test_gf2m.cpp index 9bb572c4e..d85f72e2e 100644 --- a/src/tests/test_gf2m.cpp +++ b/src/tests/test_gf2m.cpp @@ -41,11 +41,9 @@ class GF2m_Tests : public Test { Botan::GF2m_Field field(degree); - using Botan::gf2m; - for(size_t i = 0; i <= field.gf_ord(); ++i) { - gf2m a = static_cast(i); + Botan::gf2m a = static_cast(i); result.test_eq("square vs multiply", static_cast(field.gf_square(a)), @@ -55,10 +53,10 @@ class GF2m_Tests : public Test * This sequence is from the start of gf2m_decomp_rootfind_state::calc_Fxj_j_neq_0 */ { - const gf2m jl_gray = field.gf_l_from_n(a); - const gf2m xl_j_tt_5 = field.gf_square_rr(jl_gray); - const gf2m xl_gray_tt_3 = field.gf_mul_rrr(xl_j_tt_5, jl_gray); - gf2m s = field.gf_mul_nrr(xl_gray_tt_3, field.gf_ord()); + const Botan::gf2m jl_gray = field.gf_l_from_n(a); + const Botan::gf2m xl_j_tt_5 = field.gf_square_rr(jl_gray); + const Botan::gf2m xl_gray_tt_3 = field.gf_mul_rrr(xl_j_tt_5, jl_gray); + Botan::gf2m s = field.gf_mul_nrr(xl_gray_tt_3, field.gf_ord()); result.test_gte("Value less than order", field.gf_ord(), s); } -- cgit v1.2.3