diff options
Diffstat (limited to 'pyecsca')
| -rw-r--r-- | pyecsca/sca/re/rpa.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/re/zvp.py | 2 |
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 |
