aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_ecc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/unit_ecc.cpp')
-rw-r--r--src/tests/unit_ecc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/unit_ecc.cpp b/src/tests/unit_ecc.cpp
index f78f6bfd6..74592d0a8 100644
--- a/src/tests/unit_ecc.cpp
+++ b/src/tests/unit_ecc.cpp
@@ -279,11 +279,11 @@ Test::Result test_coordinates()
const Botan::EC_Group secp160r1(Botan::OIDS::lookup("secp160r1"));
const Botan::CurveGFp& curve = secp160r1.get_curve();
const Botan::PointGFp& p_G = secp160r1.get_base_point();
- const Botan::PointGFp p0 = p_G;
- const Botan::PointGFp p1 = p_G * 2;
+
const Botan::PointGFp point_exp(curve, exp_affine_x, exp_affine_y);
result.confirm("Point is on the curve", point_exp.on_the_curve());
+ const Botan::PointGFp p1 = p_G * 2;
result.test_eq("Point affine x", p1.get_affine_x(), exp_affine_x);
result.test_eq("Point affine y", p1.get_affine_y(), exp_affine_y);
return result;