MPHELL  4.0.0
Conversion between Short Weierstrass Curve Model and Twisted Edwards Curves Model

The main idea between those conversion is to go through Montgomery curves, id est make a conversion from Short Weierstrass to Montgomery curves and then to Twisted Edwards Curves.

The Montgomery curves are in bijection with Twisted Edwards Curves, making this step the easiest one.

The Weierstrass curves have an isomorphism over a field K to a Montgomery curve when the Weierstrass curve has the 2 torsion defined over the field K, this isomorphism is determined under some conditions by the choice of a 2 torsion point and a sign choice.

The three main references for this part are:

• [CS17] Montgomery curves and their arithmetic by Craig Costello and Benjamin Smith published in Journal of Cryptographic Engineering 2017 pages 1-14 viewable at this adress https://hal.inria.fr/hal-01483768 ;
• [OKS00] Elliptic curves with the Montgomery-form and their cryptographic applications by Katsuyuki Okeya, Hiroyuki Kurumatani, et Kouichi Sakurai published in International Workshop on Public Key Cryptography. Springer, Berlin, Heidelberg, 2000. p. 238-257 viewable at this adress https://link.springer.com/ ;
• [BBL+08] Twisted edwards curves by Daniel. J. Bernstein, Peter Birkner, Marc Joye, Tanja Lange, and Christiane Peters (2008, June) published in International Conference on Cryptology in Africa (pp. 389-405). Springer, Berlin, Heidelberg viewable at this adress https://link.springer.com/ .

# Conversion between Short Weierstass Curve Model and Montgomery Curves Model

First of all to make this conversion from Short Weierstrass to Mongomery model it is needed to compute a point of order 2: such that there exists beta in the field K which verifies:

Thus it is possible when there are 3 points of order 2 defined in K that only one of them satisfies this condition, some examples can be found in the vector tests of this software.

We denote the representations:

1. for the Montgomery curve
2. for the Short Weierstrass curve

Then the choice of and determines the following isomorphism between a Short Weierstrass curve and a Montgomery curve:

1. for the Montgomery curve

For the reverse isomorphism id est the one from the Montgomery Curve to the (unique) corresponding Short Weierstrass curve we have:

1. for the Sort Weierstrass curve

It can be easier for the reader to understand this isomorphism to have in mind that

and using the fact we have then to solve the followings two equations to find a and b:

More details are in [CS17,§2.4], [OKS00,§4].

# Conversion between Twisted Edwards Curve Model and Montgomery Curve Model

We denote the representations:

1. for the Montgomery curve
2. for the Twisted Edwards curve

For the isomorphism from a Montgomery curve to a twisted Edwards curve we use the following isomorphism:

1. for the twisted Edwards curve

The reverse isomorphism from the twisted Edwards curve to a Montgomery curve is:

1. for the Montgomery curve .

More details are in [CS17,§2.5], [BBL+08,§3].