aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJ08nY2025-11-19 19:02:58 +0100
committerJ08nY2025-11-19 19:02:58 +0100
commit1fd95b25b8afde7d7afcf49c71a08c25e8639c5b (patch)
treefc4ae37f6f9943537cd85ca1be3e33a1622a9b7f
parent128d0cb90c97e7b57d51dad22824224cf3186542 (diff)
downloadpyecsca-1fd95b25b8afde7d7afcf49c71a08c25e8639c5b.tar.gz
pyecsca-1fd95b25b8afde7d7afcf49c71a08c25e8639c5b.tar.zst
pyecsca-1fd95b25b8afde7d7afcf49c71a08c25e8639c5b.zip
Fix Comb precomputation.
Diffstat (limited to '')
-rw-r--r--pyecsca/ec/mult/comb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyecsca/ec/mult/comb.py b/pyecsca/ec/mult/comb.py
index d24f557..ae6d0c1 100644
--- a/pyecsca/ec/mult/comb.py
+++ b/pyecsca/ec/mult/comb.py
@@ -198,7 +198,7 @@ class CombMultiplier(AccumulatorMultiplier, PrecompMultiplier, ScalarMultiplier)
current_point = point
for i in range(self.width):
base_points[i] = current_point
- if i != d - 1:
+ if i != self.width - 1:
for _ in range(d):
current_point = self._dbl(current_point)
self._points = {}