aboutsummaryrefslogtreecommitdiffstats
path: root/checks/ec_tests.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-25 01:35:33 +0000
committerlloyd <[email protected]>2010-02-25 01:35:33 +0000
commit4457657ac6048b5e0766dcc38d902d8fe99f2827 (patch)
tree047797d95e1d80fcd5b42fef4fbc60f80e8fbcff /checks/ec_tests.cpp
parent7dcfb4b9f2677a9958f742355b1f9f9ce8814ede (diff)
Convert 3-arg constructoor of PointGFp to take BigInts instead of
GFpElements. Clean up OS2ECP
Diffstat (limited to 'checks/ec_tests.cpp')
-rw-r--r--checks/ec_tests.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/checks/ec_tests.cpp b/checks/ec_tests.cpp
index e5295288d..ae8ee65e9 100644
--- a/checks/ec_tests.cpp
+++ b/checks/ec_tests.cpp
@@ -131,7 +131,8 @@ void test_coordinates()
PointGFp p_G = OS2ECP ( sv_G_secp_comp, secp160r1 );
PointGFp p0 = p_G;
PointGFp p1 = p_G.mult2_in_place();
- PointGFp point_exp(secp160r1, GFpElement(bi_p_secp, exp_affine_x), GFpElement(bi_p_secp, exp_affine_y));
+ PointGFp point_exp(secp160r1, exp_affine_x, exp_affine_y);
+
try
{
point_exp.check_invariants();
@@ -529,9 +530,7 @@ void test_mult_point()
p1 *= p0.get_jac_proj_x().get_value();
- PointGFp expected(secp160r1,
- GFpElement(bi_p_secp, BigInt(exp_mult_x)),
- GFpElement(bi_p_secp, BigInt(exp_mult_y)));
+ PointGFp expected(secp160r1, exp_mult_x, exp_mult_y);
CHECK(p1 == expected);
}