aboutsummaryrefslogtreecommitdiff
path: root/pyecsca
diff options
context:
space:
mode:
authorJ08nY2025-06-19 16:17:53 +0200
committerJ08nY2025-06-19 16:17:53 +0200
commitc10975ffd33edf0659f0ad6ef151139c6fabb61a (patch)
tree34e903b2a7b7eeb65bfb6f76a1c759a2b170889d /pyecsca
parent86f1472c0bc8118734920ccc8348a2f75afc8b41 (diff)
downloadpyecsca-c10975ffd33edf0659f0ad6ef151139c6fabb61a.tar.gz
pyecsca-c10975ffd33edf0659f0ad6ef151139c6fabb61a.tar.zst
pyecsca-c10975ffd33edf0659f0ad6ef151139c6fabb61a.zip
Diffstat (limited to 'pyecsca')
-rw-r--r--pyecsca/sca/re/rpa.py2
-rw-r--r--pyecsca/sca/re/zvp.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/sca/re/rpa.py b/pyecsca/sca/re/rpa.py
index c7f2f1e..6e6da08 100644
--- a/pyecsca/sca/re/rpa.py
+++ b/pyecsca/sca/re/rpa.py
@@ -425,7 +425,7 @@ def _cached_fake_mult(
mult_class: Type[ScalarMultiplier], mult_factory: Callable, params: DomainParameters
) -> ScalarMultiplier:
fm = fake_mult(mult_class, mult_factory, params)
- if fm.short_circuit:
+ if getattr(fm, "short_circuit", False):
raise ValueError("The multiplier must not short-circuit.")
return fm
diff --git a/pyecsca/sca/re/zvp.py b/pyecsca/sca/re/zvp.py
index 2b4de20..efa4ede 100644
--- a/pyecsca/sca/re/zvp.py
+++ b/pyecsca/sca/re/zvp.py
@@ -589,7 +589,7 @@ def _cached_fake_mult(
mult_class: Type[ScalarMultiplier], mult_factory: Callable, params: DomainParameters
) -> ScalarMultiplier:
fm = fake_mult(mult_class, mult_factory, params)
- if fm.short_circuit:
+ if getattr(fm, "short_circuit", False):
raise ValueError("The multiplier must not short-circuit.")
return fm