Commit 95652d25 authored by Niels Möller's avatar Niels Möller

Made test_ecc_point non-static in testutils.c.

parent 17165610
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.
......
......@@ -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)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment