In mathematics, twisted Hessian curves are a generalization of Hessian curves; they wre introduced in elliptic curve cryptography to speed up the addition and doubling formulas and to have strongly unified arithmetic. In some operations (see the last sections), it is close in speed to Edwards curves. Twisted Hessian curves were introduced by Bernstein, Lange, and Kohel.[1]
Let be a field. The twisted Hessian form in affine coordinates is given by:
a ⋅ x3+y3+1=d ⋅ x ⋅ y
and in projective coordinates by
a ⋅ X3+Y3+Z3=d ⋅ X ⋅ Y ⋅ Z,
where and and . These curves are birationally equivalent to Hessian curves, and Hessian curves are just the special case of twisted Hessian curves in which .
Considering the equation, note that, if has a cube root in, then there exists a unique such that ; otherwise, it is necessary to consider an extension field of, such as . Then, since, defining, the following equation is needed (in Hessian form) to do the transformation:
t3+y3+1=d ⋅ x ⋅ y
This means that twisted Hessian curves are birationally equivalent to elliptic curves in Weierstrass form.
It is interesting to analyze the group law of the elliptic curve, defining the addition and doubling formulas (because the simple power analysis and differential power analysis attacks are based on the running time of these operations). In general, the group law is defined in the following way: if three points lies in the same line then they sum up to zero. So, by this property, the explicit formulas for the group law depend on the curve shape.
Let be a point; its inverse is then in the plane. In projective coordinates, let be a point; then is its inverse. Furthermore, the neutral element in affine plane is, and in projective coordinates it is .
In some applications of elliptic curves for cryptography and integer factorization, it is necessary to compute scalar multiples of, say for some integer, and they are based on the double-and-add method, so the addition and doubling formulas are needed. Using affine coordinates, the addition and doubling formulas for this elliptic curve are as follows.
Let and ; then,, where
x | ||||||||||||||||||||||||
|
y | ||||||||||||||||||||||||||||||
|
Let ; then, where
x | ||||
|
y | ||||
|
Here some efficient algorithms of the addition and doubling law are given; they can be important in cryptographic computations, and the projective coordinates are used to this purpose.
A=X1 ⋅ Z2
B=Z1 ⋅ Z2
C=Y1X2
D=Y1 ⋅ Y2
E=Z1 ⋅ Y2
F=a ⋅ X1 ⋅ X2
X3=A ⋅ B-C ⋅ D
Y3=D ⋅ E-F ⋅ A
Z3=F ⋅ C-B ⋅ E
The cost of this algorithm is 12 multiplications, one multiplication by a constant, and 3 additions.
Example:
Let and be points over a twisted Hessian curve with . Then is given by:
A=-1;B=-1;C=-1;D=-1;E=1;F=2;
x3=0
y3=-3
z3=-3
That is, .
D=
3 | |
X | |
1 |
E=
3 | |
Y | |
1 |
F=
3 | |
Z | |
1 |
G=a ⋅ D
X3=X1 ⋅ (E-F)
Y3=Z1 ⋅ (G-E)
Z3=Y1 ⋅ (F-G)
The cost of this algorithm is 3 multiplications, one multiplication by a constant, 3 additions, and 3 cubings. This is the best result obtained for this curve.
Example:
Let be a point over the curve defined by as above; then, is given by:
D=1;E=-1;F=1;G=-4;
x3=-2
y3=-3
z3=-5
That is, .