diff options
author | Jack Lloyd <[email protected]> | 2016-02-07 01:56:21 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-02-07 01:56:21 -0500 |
commit | 45d2ae1b48aeebd00567d820dfb8fe261bb50be9 (patch) | |
tree | 17f5a087c136191854d27ed067a3bcf960e81ca4 /src/tests/test_gf2m.cpp | |
parent | f1890bac674d5a2343ae1118781e5063e3c17f8f (diff) |
Remove dead write. Closes GH #401
Diffstat (limited to 'src/tests/test_gf2m.cpp')
-rw-r--r-- | src/tests/test_gf2m.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tests/test_gf2m.cpp b/src/tests/test_gf2m.cpp index 11a15c3fe..75bac705e 100644 --- a/src/tests/test_gf2m.cpp +++ b/src/tests/test_gf2m.cpp @@ -33,6 +33,10 @@ class GF2m_Tests : public Test { Test::Result result("GF2m"); + /* + * This is testing one specific case where an overflow + * occurred. It should be extended to test more of the interface. + */ for(size_t degree = 2; degree <= 16; ++degree) { Botan::GF2m_Field field(degree); @@ -52,9 +56,8 @@ class GF2m_Tests : public Test */ { const gf2m jl_gray = field.gf_l_from_n(a); - gf2m xl_j_tt_5 = field.gf_square_rr(jl_gray); + 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); - xl_j_tt_5 = field.gf_mul_rrr(xl_j_tt_5, xl_gray_tt_3); gf2m s = field.gf_mul_nrr(xl_gray_tt_3, field.gf_ord()); result.test_gte("Value less than order", field.gf_ord(), s); |