Dmitry Eremin-Solenikov dbaryshkov@gmail.com writes:
This patch makes things work for me.
Is it only ecc_mod_submul_1 that you need to change? It's used via the ecc_modp_submul_1 macro.
Does it stand a chance to be applied?
To accept the patch, I'd like to understand the mathematics and document what's required of the modulo to make it correct. And I'd also like to know if there's any measurable slowdown in examples/hogweed-benchmark or ecc-benchmark for the other curves.
For now I'm running ecc-mul-a-test and ecc-mul-g-test in a loop without any errors.
To make running in a loop useful, you need to add random seeding, see ecc-mod-test.c for an example to how to do it, enabled by the NETTLE_TEST_SEED environment variable. Used like
while NETTLE_TEST_SEED=0 ./testsuite/ecc-mod-test ; do : ; done
Regards, /Niels