aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/ec/efd/shortw/xyzz-3/addition/madd-2008-s.op3
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca/ec/efd/shortw/xyzz-3/addition/madd-2008-s.op3')
-rw-r--r--pyecsca/ec/efd/shortw/xyzz-3/addition/madd-2008-s.op317
1 files changed, 17 insertions, 0 deletions
diff --git a/pyecsca/ec/efd/shortw/xyzz-3/addition/madd-2008-s.op3 b/pyecsca/ec/efd/shortw/xyzz-3/addition/madd-2008-s.op3
new file mode 100644
index 0000000..a1bc5ed
--- /dev/null
+++ b/pyecsca/ec/efd/shortw/xyzz-3/addition/madd-2008-s.op3
@@ -0,0 +1,17 @@
+U2 = X2*ZZ1
+S2 = Y2*ZZZ1
+P = U2-X1
+R = S2-Y1
+PP = P^2
+PPP = P*PP
+Q = X1*PP
+t0 = R^2
+t1 = 2*Q
+t2 = t0-PPP
+X3 = t2-t1
+t3 = Q-X3
+t4 = Y1*PPP
+t5 = R*t3
+Y3 = t5-t4
+ZZ3 = ZZ1*PP
+ZZZ3 = ZZZ1*PPP