constantine/tests
Mamy Ratsimbazafy 2613356281
Endomorphism acceleration for Scalar Multiplication (#44)
* Add MultiScalar recoding from "Efficient and Secure Algorithms for GLV-Based Scalar Multiplication" by Faz et al

* precompute cube root of unity - Add VM precomputation of Fp - workaround upstream bug https://github.com/nim-lang/Nim/issues/14585

* Add the φ-accelerated lookup table builder

* Add a dedicated bithacks file

* cosmetic import consistency

* Build the φ precompute table with n-1 EC additions instead of 2^(n-1) additions

* remove binary

* Add the GLV precomputations to the sage scripts

* You can't avoid it, bigint multiplication is needed at one point

* Add bigint multiplication discarding some low words

* Implement the lattice decomposition in sage

* Proper decomposition for BN254

* Prepare the code for a new scalar mul

* We compile, and now debugging hunt

* More helpers to debug GLV scalar Mul

* Fix conditional negation

* Endomorphism accelerated scalar mul working for BN254 curve

* Implement endomorphism acceleration for BLS12-381 (needed cofactor clearing of the point)

* fix nimble test script after bench rename
2020-06-14 15:39:06 +02:00
..
support Scalar mul tests (#28) 2020-06-04 20:37:29 +02:00
test_bigints.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_bigints_mod_vs_gmp.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_bigints_mul_high_words_vs_gmp.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_bigints_mul_vs_gmp.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_bigints_multimod.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_ec_bls12_381.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_ec_bn254.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_ec_weierstrass_projective_g1.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_finite_fields.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_finite_fields.nim.cfg Expose the equality proc beyond the debugConstantine flag 2020-02-26 00:08:57 +01:00
test_finite_fields_mulsquare.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_finite_fields_mulsquare.nim.cfg Add optimized squaring (~15% speedup) (#18) 2020-03-17 22:04:37 +01:00
test_finite_fields_powinv.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_finite_fields_powinv.nim.cfg Expose the equality proc beyond the debugConstantine flag 2020-02-26 00:08:57 +01:00
test_finite_fields_sqrt.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_finite_fields_sqrt.nim.cfg Square roots (#22) 2020-04-11 23:53:21 +02:00
test_finite_fields_vs_gmp.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_fp2.nim Generalize the tower extensions tests 1000+ lines saved 2020-04-15 00:04:44 +02:00
test_fp6.nim Generalize the tower extensions tests 1000+ lines saved 2020-04-15 00:04:44 +02:00
test_fp12.nim Generalize the tower extensions tests 1000+ lines saved 2020-04-15 00:04:44 +02:00
test_fp_tower_template.nim Implement constant-time `div2` on finite and extension fields 2020-04-15 02:12:45 +02:00
test_io_bigints.nim Use our prng through most of the test suite 2020-04-15 00:04:44 +02:00
test_io_fields.nim Use our prng through most of the test suite 2020-04-15 00:04:44 +02:00
test_io_fields.nim.cfg Expose the equality proc beyond the debugConstantine flag 2020-02-26 00:08:57 +01:00
test_precomputed.nim Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
test_primitives.nim Use our prng through most of the test suite 2020-04-15 00:04:44 +02:00