diff --git a/ChangeLog b/ChangeLog index 5c02b911cd11acd0799658008a57772b28282a89..9af0e57adb364d3f2096a620086e5014b0ad6f15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2014-07-11 Niels Möller <nisse@lysator.liu.se> + * testsuite/testutils.c (test_ecc_point): Made non-static. + * testsuite/testutils.h (struct ecc_ref_point): Moved here, from + testutils.h. + (test_ecc_point): Declare it. + * ecc-dup-eh.c (ecc_dup_eh, ecc_dup_eh_itch): New file, new functions. * ecc-eh-to-a.c (ecc_eh_to_a, ecc_eh_to_a_itch): New file, new functions. diff --git a/testsuite/testutils.c b/testsuite/testutils.c index a5f67f9d885f64c180478d2394e704d18b94f9a6..9739c9ed8d7bbd7ce2edc25613d1068f47eaaf00 100644 --- a/testsuite/testutils.c +++ b/testsuite/testutils.c @@ -1276,12 +1276,6 @@ test_mpn (const char *ref, const mp_limb_t *xp, mp_size_t n) return res; } -struct ecc_ref_point -{ - const char *x; - const char *y; -}; - void write_mpn (FILE *f, int base, const mp_limb_t *xp, mp_size_t n) { @@ -1289,7 +1283,7 @@ write_mpn (FILE *f, int base, const mp_limb_t *xp, mp_size_t n) mpz_out_str (f, base, mpz_roinit_n (t,xp, n)); } -static void +void test_ecc_point (const struct ecc_curve *ecc, const struct ecc_ref_point *ref, const mp_limb_t *p) diff --git a/testsuite/testutils.h b/testsuite/testutils.h index 4768f9964240389e6ad998aca235bffbdef34e3d..b2b77b165f6532518d96021f489bb2f1c0199bee 100644 --- a/testsuite/testutils.h +++ b/testsuite/testutils.h @@ -224,6 +224,17 @@ test_dsa_key(const struct dsa_params *params, extern const struct ecc_curve * const ecc_curves[]; +struct ecc_ref_point +{ + const char *x; + const char *y; +}; + +void +test_ecc_point (const struct ecc_curve *ecc, + const struct ecc_ref_point *ref, + const mp_limb_t *p); + void test_ecc_mul_a (unsigned curve, unsigned n, const mp_limb_t *p);