diff options
author | Jack Lloyd <[email protected]> | 2015-11-13 17:06:42 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-11-13 17:06:42 -0500 |
commit | 386a17e55ab313b0299d328a250ad77ef1165864 (patch) | |
tree | 10c8cffb0fcb376dc67374e857970e68e775e078 /src | |
parent | f4656160185f30d0d451e4fc53a091fc26d8ea0e (diff) |
Avoid multiplication by zero here as get_affine will reject it
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/unit_ecc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/unit_ecc.cpp b/src/tests/unit_ecc.cpp index 90d966a39..65187a428 100644 --- a/src/tests/unit_ecc.cpp +++ b/src/tests/unit_ecc.cpp @@ -286,7 +286,7 @@ Test::Result test_point_transformation () // get a valid point Botan::EC_Group dom_pars(Botan::OID("1.3.132.0.8")); - Botan::PointGFp p = dom_pars.get_base_point() * Test::rng().next_byte(); + Botan::PointGFp p = dom_pars.get_base_point() * Test::rng().next_nonzero_byte(); // get a copy Botan::PointGFp q = p; |