aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_gf2m.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-22 10:51:40 -0400
committerJack Lloyd <[email protected]>2017-09-22 10:51:40 -0400
commitdc24f117eca49214d45582c83d2b8ddcc2c81704 (patch)
tree565852b4d57b555bd1213d453211541bf8f22327 /src/tests/test_gf2m.cpp
parenta1be64a4288d3a213c276dbe606165478a24a973 (diff)
Remove some using declarations in test code
Diffstat (limited to 'src/tests/test_gf2m.cpp')
-rw-r--r--src/tests/test_gf2m.cpp12
1 files changed, 5 insertions, 7 deletions
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<gf2m>(i);
+ Botan::gf2m a = static_cast<Botan::gf2m>(i);
result.test_eq("square vs multiply",
static_cast<size_t>(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);
}