2017-09-23 Niels Möller <nisse@lysator.liu.se>
+ * ecc-internal.h (struct ecc_curve): Delete unused pointer
+ edwards_root. Update all instances.
+ * eccdata.c (output_curve): Don't output it.
+
* testsuite/ecc-add-test.c (test_main): Reduce test duplication.
Use ecc->add_hhh_itch.
* testsuite/ecc-dup-test.c (test_main): Reduce test duplication.
ecc_b,
ecc_g,
- NULL,
ecc_unit,
ecc_table
};
ecc_b,
ecc_g,
- NULL,
ecc_unit,
ecc_table
};
ecc_d, /* Use the Edwards curve constant. */
ecc_g,
- ecc_edwards,
ecc_unit,
ecc_table
};
ecc_b,
ecc_g,
- NULL,
ecc_unit,
ecc_table
};
ecc_b,
ecc_g,
- NULL,
ecc_unit,
ecc_table
};
ecc_b,
ecc_g,
- NULL,
ecc_unit,
ecc_table
};
/* Generator, x coordinate followed by y (affine coordinates).
Currently used only by the test suite. */
const mp_limb_t *g;
- /* If non-NULL, the constant needed for transformation to the
- equivalent Edwards curve. */
- const mp_limb_t *edwards_root;
/* For redc, same as B mod p, otherwise 1. */
const mp_limb_t *unit;
mpz_fdiv_q_2exp (t, t, 1);
output_bignum ("ecc_qp1h", t, limb_size, bits_per_limb);
- if (ecc->use_edwards)
- output_bignum ("ecc_edwards", ecc->t, limb_size, bits_per_limb);
-
/* Trailing zeros in p+1 correspond to trailing ones in p. */
redc_limbs = mpz_scan0 (ecc->p, 0) / bits_per_limb;
if (redc_limbs > 0)