aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/ec/efd/shortw/jacobian/addition/add-1986-cc.op3
blob: 9774366d5a5dd0483cba9c48e2eb3ef27b1a3b93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
t0 = Z2^2
U1 = X1*t0
t1 = Z1^2
U2 = X2*t1
t2 = Z2^3
S1 = Y1*t2
t3 = Z1^3
S2 = Y2*t3
P = U2-U1
R = S2-S1
t4 = U1+U2
t5 = R^2
t6 = P^2
t7 = t4*t6
X3 = t5-t7
t8 = P^2
t9 = U1*t8
t10 = t9-X3
t11 = P^3
t12 = S1*t11
t13 = R*t10
Y3 = t13-t12
t14 = Z2*P
Z3 = Z1*t14