Professional Documents
Culture Documents
Crypto Tutorial 5 b032110318
Crypto Tutorial 5 b032110318
Crypto Tutorial 5 b032110318
b= a∙ q +r u v w = u-v∙q
257 50 5 7 0 1 -5
50 7 7 1 1 -5 36
4. Add Point
To compute P3(x3, y3) = P1(x1, y1) ⊕ P2(x2, y2) = (34,25) ⊕ (173, 256)
Let us add 2 points P1(x1, y1) ⊕ P2(x2, y2) = (34,25) ⊕ (173, 256).
First, we compute denominator of the slope of secant line, (x2 -x1) = 173 – 34 = 139
Using Extended Eucladian Algorithm
b= a∙ q +r u v w = u-v∙q
257 139 1 118 0 1 -1
139 118 1 21 1 -1 2
118 21 5 13 -1 2 -11
21 13 1 8 2 -11 -9
13 8 1 5 -11 -9 -20
8 5 1 3 -9 -20 11
5 3 1 2 -20 11 -31
3 2 1 1 11 -31 44
Second, we need to an inverse of the denominator, (x2 -x1)-1 = 139-1 ≡ 44 (mod 257)
Let us compute the numerator = y2 -y1 = 256 – 25 = 231
Third, the slope of secant line shall be.
x3 = m2 – (x1 + x2) = 1412 – (173 + 34) = 92 – (173 + 34) = -47 +257 ≡ 210 (mod 257).
and
= 141(-37+257) – 25