diff options
| -rw-r--r-- | pyecsca/ec/countermeasures.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyecsca/ec/countermeasures.py b/pyecsca/ec/countermeasures.py index e7c1a5a..9ff5fd0 100644 --- a/pyecsca/ec/countermeasures.py +++ b/pyecsca/ec/countermeasures.py @@ -81,6 +81,8 @@ class ScalarMultiplierCountermeasure(ABC): def _apply_formula(self, shortname: str, *points: Point) -> Point: if formula := getattr(self, shortname, None): + if self.params is None: + raise ValueError("Not initialized.") return formula( self.params.curve.prime, *points, |
