mmcloughlin / ec3

Elliptic Curve Cryptography Compiler: an incomplete experiment in code-generation for elliptic curves in Go
BSD 3-Clause "New" or "Revised" License
56 stars 6 forks source link

testing: generate "challenging" test vectors #49

Open mmcloughlin opened 5 years ago

mmcloughlin commented 5 years ago

Most of the complexity in the modular arithmetic concerns carry chains and the modular reductions themselves. It would be good to generate test vectors which exercise the edge cases in these operations:

Perhaps something can be learned from https://github.com/guidovranken/bignum-fuzzer.