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.
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)
{
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)
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);