Ecc!
Ecc!
(ECC)
Basics of Elliptic Curve (EC)
• Set of points that satisfy a specific mathematical
equation. The cubic equation of an elliptic curve is
given below;
Y2 X3 + aX + b for some constants ‘a’ and ‘b’
with the condition 4a3 + 27b2 ≠ 0.
Types of EC
1. EC over real number.
2. EC over complex number.
3. EC over finite field. (GF(2), GF(5), GF(8),……..)
– NOTE: EC over Finite field is used in cryptography.
– Equation of EC over FF is:
Y2 X3 + aX + b mod p with the condition
4a3 + 27b2 mod p ≠ 0 where a and b
should not be greater than p.
1. Construction of EC
over Finite field
Construct EC over finite field
• Example : Let us consider Z/11 i.e., GF(11)
• Set of all integers in GF(11) = {0,1,2,…….,10}
satisfies the equation
Y2 X3 + aX + b mod p with the condition
4a3 + 27b2 mod p ≠ 0
• Let us take a = 1 and b = 1 then check whether
this satisfies the condition 4a3 + 27b2 mod p ≠ 0
4(13)+ 27(1)2 mod 11 = 31 mod 11 = 9 ≠ 0
• Thus a =1 and b =1 satisfies the condition
Compute all the points on EC
• Consider the equation;
Y2 X3 + aX + b mod p, we can rewrite this
equation as
Y2 mod p = X3 + aX + b mod p
• Substitute a = 1, b = 1, and p = 11 in the above
equation ;
Y2 mod 11 = X3 + X + 1 mod 11
• Use the above equation to find all the points
in EC.
Set of points on the curve
• In the table, find the values of X and Y to
satisfies the equation;
Y2 mod 11 = X3 + X + 1 mod 11
• For example when X = 0 and Y = 1, we will get
the same result which means ‘1’ in the table.
So, consider the point (0,1)
• Similarly, consider other points such as (0,10),
(1,5), (1,6), (2,0), (3,3), (3,8), (4,5), (4,6), (6,5),
(6,6), (8,2), (8,9)
Plotting elliptic curve E11(1,1)with
discovered set of points
12
10 0, 10
8, 9
8 3, 8
6 1, 6 4, 6 6, 6
1, 5 4, 5 6, 5
3, 3
2 8, 2
0, 1
0 2, 0
0 1 2 3 4 5 6 7 8 9
2. Check if the point falls
on the curve
Check if the point falls on the curve
• Check the point (3,8) falls on the elliptic group
E11(1,1).
• Consider the equation;
Y2 mod 11 = X3 + X + 1 mod 11
• Substitute X = 3 and Y = 8 in the above equation;
82 mod 11 = 33 + 3 + 1 mod 11
9 = 31 mod 11
9=9
• This says that the given point (3,8) satisfies the
equation, hence the point (3,8) lies in the curve
E11(1,1).
3. Adding two points on
the curve
(a)P + Q
(b)P + P
(a) Adding two points P and Q on the
EC