Go to file
Daira Hopwood 28b6046fcc Add Tweedledum/Tweedledee parameters.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-09-08 16:43:50 +01:00
Ep Add Tweedledum/Tweedledee parameters. 2019-09-08 16:43:50 +01:00
Eq Add Tweedledum/Tweedledee parameters. 2019-09-08 16:43:50 +01:00
.gitignore Adapt for Tweedledum/Tweedledee. 2019-09-08 16:23:19 +01:00
LICENSE Add LICENSE and .gitignore. Also fix the curve equation. 2017-11-02 06:16:58 +00:00
README.md Add Tweedledum/Tweedledee parameters. 2019-09-08 16:43:50 +01:00
run.sh Adapt for Tweedledum/Tweedledee. 2019-09-08 16:23:19 +01:00
verify.sage Adapt for Tweedledum/Tweedledee. 2019-09-08 16:23:19 +01:00

README.md

Tweedledum/Tweedledee supporting evidence

This repository contains supporting evidence that the amicable pair of prime-order curves:

  • Ep : y^2 = x^3 + 5 over GF(p) of order q, called Tweedledum;
  • Eq : y^2 = x^3 + 5 over GF(q) of order p, called Tweedledee;

with

  • p = 57896044618658097711785492504343953925989756877607163761872965584918954377217
  • q = 57896044618658097711785492504343953925989756877607147991657089165100807356417

satisfy some of the SafeCurves criteria.

The criteria that are not satisfied are, in summary:

  • large CM discriminant (both curves have CM discriminant 3, as a consequence of how they were constructed);
  • completeness (complete formulae are possible, but not according to the Safe curves criterion);
  • ladder support (not possible for prime-order curves);
  • Elligator 2 support (indistinguishability is possible using Elligator Squared, but not using Elligator 2);
  • twist security;
  • rigidity.

Prerequisites:

  • apt-get install sagemath
  • pip install sortedcontainers

Run sage verify.sage Ep and sage verify.sage Eq; or ./run.sh to run both and also print out the results.