Edwards curve


In mathematics, the Edwards curves are a family of elliptic curves studied by Harold Edwards in 2007. The concept of elliptic curves over finite fields is widely used in elliptic curve cryptography. Applications of Edwards curves to cryptography were developed by Daniel J. Bernstein and Tanja Lange: they pointed out several advantages of the Edwards form in comparison to the more well known Weierstrass form.

Definition

The equation of an Edwards curve over a field K which does not
have characteristic 2 is:
for some scalar.
Also the following form with parameters c and d is called an Edwards curve:
where c, dK with cd ≠ 0.
Every Edwards curve is birationally equivalent to an elliptic curve in Weierstrass form, and thus admits an algebraic group law once one chooses a point to serve as a neutral element. If K is finite, then a sizeable fraction of all elliptic curves over K can be written as Edwards curves.
Often elliptic curves in Edwards form are defined having c=1, without loss of generality. In the following sections, it is assumed that c=1.

The group law

The points on an elliptic curve form an abelian group: one can add points and take integer multiples of a single point. When an elliptic curve is described by a non-singular cubic equation, then the sum of two points P and Q, denoted P + Q, is directly related to third point of intersection between the curve and the line that passes through P and Q. But for higher degree singular curves, such as Edwards curves, the situation is somewhat more complicated. For a geometric explanation of the addition law on Edwards curves, see
"Faster Computation of the Tate Pairing" by Arene et al.

Edwards addition law

On any elliptic curve, by which is meant a curve of genus 1 and a point selected to serve the neutral element, the sum of two points is given by a rational expression of the coordinates of the points, although in general one may need to use several formulas to cover all possible pairs. For the Edwards curve, taking the neutral element to be the point , the sum of the points and is given by the formula
The inverse of any point is. One can check that the point has order 2, and that the points
have order 4. In particular, an Edwards curve always has a point of order 4 with coordinates in K.
If d is not a square in K and, then there are no exceptional points: the denominators 1 + dx1x2y1y2 and 1 − dx1x2y1y2 are always nonzero. Therefore, the Edwards addition law is complete when d is not a square in K. This means that the formulas work for all pairs of input points on the Edwards curve with no exceptions for doubling, no exception for the neutral element, no exception for negatives, etc. In other words, it is defined for all pairs of input points on the Edwards curve over K and the result gives the sum of the input points.
If d is a square in K, then the same operation can have exceptional points, i.e. there can be pairs and where 1 + dx1x2y1y2 = 0 or 1 − dx1x2y1y2 = 0.
One of the attractive feature of the Edwards Addition law is that it is strongly unified i.e. it can also be used to double a point, simplifying protection against side-channel attack. The addition formula above is faster than other unified formulas and has the strong property of completeness
Example of addition law :
Consider the elliptic curve in the Edwards form with d=2
and the point on it. It is possible to prove that the sum of P1 with the neutral element gives again P1. Indeed, using the formula given above, the coordinates of the point given by this sum are:

An analogue on the circle

To understand better the concept of "addition" of points on a curve, a nice example is given by the classical circle group:
take the circle of radius 1
and consider two points P1=, P2= on it. Let α1 and α2 be the angles such that:
The sum of P1 and P2 is, thus, given by the sum of "their angles". That is, the point P3=P1+P2 is a point on the circle with coordinates, where:
In this way, the addition formula for points on the circle of radius 1 is:

Projective homogeneous coordinates

In the context of cryptography, homogeneous coordinates are used to prevent field inversions that appear in the affine formula. To avoid inversions in the original Edwards addition formulas, the curve equation can be written in projective coordinates as:
A projective point corresponds to the affine point on the Edwards curve.
The identity element is represented by. The inverse of is.
An addition formula in projective homogeneous coordinates is given by:
where

Algorithm

Using the following algorithm, X3, Y3, Z3 can be written as:
X3→ GJ, Y3→ HK, Z3→ kJK.d
where:
A→ X1Z2,
B→ Y1Z2,
C→ Z1X2,
D→ Z1Y2,
E→ AB,
F→ CD,
G→ E+F,
H→ E-F,
J→ -H,
K→ -G

Doubling

Doubling can be performed with exactly the same formula as addition. Doubling refers to the case in which the inputs and are known to be equal. Since is on the Edwards curve, one can substitute the coefficient by /x12y12 as follows:
This reduces the degree of the denominator from 4 to 2 which is reflected in faster doublings.
A general addition in Edwards coordinates takes 10M + 1S + 1C + 1D + 7a and doubling costs 3M + 4S + 3C + 6a where M is field multiplications, S is field squarings, D is the cost of multiplying by a selectable curve parameter and a is field addition.
;Example of doubling
As in the previous example for the addition law, consider the Edwards curve with d=2:
and the point P1=. The coordinates of the point 2P1 are:
The point obtained from doubling P1 is thus P3=.

Mixed addition

Mixed addition is the case when Z2 is known to be 1. In such a case A=Z1.Z2 can be eliminated and the total cost reduces to 9M+1S+1C+1D+7a

Algorithm

A= Z1.Z2 // in other words, A= Z1
B= Z12
C=X1.X2
D=Y1.Y2
E=d.C.D
F=B-E
G=B+E
X3= A.F.
Y3= A.G.
Z3=C.F.G

Tripling

Tripling can be done by first doubling the point and then adding the result to itself. By applying the curve equation as in doubling, we obtain
There are two sets of formulas for this operation in standard Edwards coordinates. The first one costs 9M + 4S while the second needs 7M + 7S. If the S/M ratio is very small, specifically below 2/3, then the second set is better while for larger ratios the first one is to be preferred.
Using the addition and doubling formulas the point is symbolically computed as 3 and compared with
;Example of tripling
Giving the Edwards curve with d=2, and the point P1=, the point 3P1 has coordinates:
So, 3P1P-1. This result can also be found considering the doubling example: 2P1=, so 3P1 = 2P1 + P1 = + P1 = -P1.
;Algorithm
A=X12
B=Y12
C=2
D=A+B
E=D2
F=2D.
G=E-B.C
H=E-A.C
I=F+H
J=F-G
X3=G.J.X1
Y3=H.I.Y1
Z3=I.J.Z1
This formula costs 9M + 4S

Inverted Edwards coordinates

Bernstein and Lange introduced an even faster coordinate system for elliptic curves called the Inverted Edward coordinates in which the coordinates satisfy the curve Z2 = and corresponds
to the affine point on the Edwards curve x2 + y2 = 1 + dx2y2 with XYZ ≠ 0.
Inverted Edwards coordinates, unlike standard Edwards coordinates, do not have complete addition formulas: some points, such as the neutral element, must be handled separately. But the addition formulas still have the advantage of strong unification: they can be used without change to double a point.
For more information about operations with these coordinates see http://hyperelliptic.org/EFD/g1p/auto-edwards-inverted.html

Extended Coordinates for Edward Curves

There is another coordinates system with which an Edwards curve can be represented; these new coordinates are called extended coordinates and are even faster than inverted coordinates. For more information about the time-cost required in the operations with these coordinates see:
http://hyperelliptic.org/EFD/g1p/auto-edwards.html