Mamy Ratsimbazafy 53c4db7ead
Fast modular inversion (#172)
* split modular inversion in its own file

* Stash fast GCD inversion https://eprint.iacr.org/2020/972.pdf

* Stash Pornin's bingcd -> issue with inner modular reduction

* Implement Bernstein-Yang inversion

* Avoid Nim checks on signed integers (32-bit runtime issue)

* cleanup: remove old inversion impls

* cleanup: static moduli, move div2

* small comments (skip ci)

* comment cleanup (skip ci)

* fix total iterations on 32-bit

* Add batch conversion to affine coordinates using simultaneous inversion trick

* fix conditional setZero and batchAffine conversion

* cleanup unneeded branches following affine conversion unification

* Fix batchAffine with zero inputs and add fuzz failure to test suite
2022-02-10 14:05:07 +01:00
..
2021-12-15 00:02:11 +01:00
2021-08-13 22:07:26 +02:00
2022-02-10 14:05:07 +01:00
2021-02-06 16:28:38 +01:00
2022-02-06 15:38:26 +01:00
2020-10-09 07:51:47 +02:00
2022-02-06 15:38:26 +01:00
2021-02-09 22:57:45 +01:00
2020-10-09 07:51:47 +02:00
2022-02-06 15:38:26 +01:00
2022-02-06 15:38:26 +01:00
2021-02-09 22:57:45 +01:00
2021-01-29 20:42:36 +01:00
2020-07-24 22:02:30 +02:00
2020-09-27 09:15:14 +02:00