aboutsummaryrefslogtreecommitdiff
path: root/pyecsca
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca')
-rw-r--r--pyecsca/ec/countermeasures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyecsca/ec/countermeasures.py b/pyecsca/ec/countermeasures.py
index eff10c2..a310ce4 100644
--- a/pyecsca/ec/countermeasures.py
+++ b/pyecsca/ec/countermeasures.py
@@ -148,7 +148,7 @@ class AdditiveSplitting(ScalarMultiplierCountermeasure):
order = self.params.order
r = Mod.random(order)
s = scalar - r
- bits = max(self.bits, order.bit_length()) + 1
+ bits = max(self.bits, order.bit_length())
self.mult.init(self.params, self.point, bits)
R = self.mult.multiply(int(r))
S = self.mult.multiply(int(s))