From 8aa3a0f62d78a34aa00d9f3601991ea2100e731f Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 19 Oct 2025 13:14:11 +0200 Subject: Fix lint. --- pyecsca/ec/countermeasures.py | 2 ++ 1 file changed, 2 insertions(+) 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, -- cgit v1.2.3-70-g09d2