aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/ec/mult/binary.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca/ec/mult/binary.py')
-rw-r--r--pyecsca/ec/mult/binary.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/ec/mult/binary.py b/pyecsca/ec/mult/binary.py
index 5b6bed7..f0cb5ac 100644
--- a/pyecsca/ec/mult/binary.py
+++ b/pyecsca/ec/mult/binary.py
@@ -94,7 +94,7 @@ class DoubleAndAddMultiplier(AccumulatorMultiplier, ScalarMultiplier, ABC):
if self.complete:
q = self._point
r = copy(self._params.curve.neutral)
- top = self._params.order.bit_length() - 1
+ top = self._bits - 1
else:
q = copy(self._point)
r = copy(self._point)
@@ -112,7 +112,7 @@ class DoubleAndAddMultiplier(AccumulatorMultiplier, ScalarMultiplier, ABC):
q = self._point
r = copy(self._params.curve.neutral)
if self.complete:
- top = self._params.order.bit_length()
+ top = self._bits
else:
top = scalar.bit_length()
for _ in range(top):