Dmitry Eremin-Solenikov <dbarysh...@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

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
nettle-bugs@lists.lysator.liu.se
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to