aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2020-03-08 20:12:29 +0100
committerJ08nY2020-03-08 20:12:29 +0100
commitc6229526332f03a90e7a59253a8c3652bf890d8b (patch)
tree4a10ca7f90e97ddb6aaae1edafd017e816547ed3
parentff41706679b7a2adf973b5ef3743e969d3b62054 (diff)
downloadpyecsca-c6229526332f03a90e7a59253a8c3652bf890d8b.tar.gz
pyecsca-c6229526332f03a90e7a59253a8c3652bf890d8b.tar.bz2
pyecsca-c6229526332f03a90e7a59253a8c3652bf890d8b.zip
Fix dbl-2016-rcb in projective-3 coords.
-rw-r--r--pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb2
-rw-r--r--pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb.op32
2 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb b/pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb
index d40242e..2147637 100644
--- a/pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb
+++ b/pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb
@@ -26,7 +26,7 @@ compute t0 = t3 + t0
compute t0 = t0 - t2
compute t0 = t0 Z3
compute Y3 = Y3 + t0
-compute t0 = X1 Z1
+compute t0 = Y1 Z1
compute t0 = t0 + t0
compute Z3 = t0 Z3
compute X3 = X3 - Z3
diff --git a/pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb.op3 b/pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb.op3
index 3b75d41..afc2056 100644
--- a/pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb.op3
+++ b/pyecsca/ec/efd/shortw/projective-3/doubling/dbl-2016-rcb.op3
@@ -25,7 +25,7 @@ t0 = t3+t0
t0 = t0-t2
t0 = t0*Z3
Y3 = Y3+t0
-t0 = X1*Z1
+t0 = Y1*Z1
t0 = t0+t0
Z3 = t0*Z3
X3 = X3-Z3