diff options
| author | J08nY | 2025-10-19 13:14:11 +0200 |
|---|---|---|
| committer | J08nY | 2025-10-19 13:14:11 +0200 |
| commit | 8aa3a0f62d78a34aa00d9f3601991ea2100e731f (patch) | |
| tree | ce08ce22f37f14ac3a312ce27f78772d014a9ef2 /pyecsca/ec | |
| parent | 218318cbb9252ea291f9d37c80a8554ffa3dfd07 (diff) | |
| download | pyecsca-8aa3a0f62d78a34aa00d9f3601991ea2100e731f.tar.gz pyecsca-8aa3a0f62d78a34aa00d9f3601991ea2100e731f.tar.zst pyecsca-8aa3a0f62d78a34aa00d9f3601991ea2100e731f.zip | |
Diffstat (limited to 'pyecsca/ec')
| -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, |
