diff options
| author | J08nY | 2025-10-18 21:24:08 +0200 |
|---|---|---|
| committer | J08nY | 2025-10-18 21:24:08 +0200 |
| commit | 218318cbb9252ea291f9d37c80a8554ffa3dfd07 (patch) | |
| tree | f2d5b143588652183ce00286b1194a61125443c5 /pyecsca/ec | |
| parent | 8b9bf1bcbc963b432bcd44c781b60a7267007d96 (diff) | |
| download | pyecsca-218318cbb9252ea291f9d37c80a8554ffa3dfd07.tar.gz pyecsca-218318cbb9252ea291f9d37c80a8554ffa3dfd07.tar.zst pyecsca-218318cbb9252ea291f9d37c80a8554ffa3dfd07.zip | |
Diffstat (limited to 'pyecsca/ec')
| -rw-r--r-- | pyecsca/ec/countermeasures.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pyecsca/ec/countermeasures.py b/pyecsca/ec/countermeasures.py index 5e940e2..e7c1a5a 100644 --- a/pyecsca/ec/countermeasures.py +++ b/pyecsca/ec/countermeasures.py @@ -76,12 +76,7 @@ class ScalarMultiplierCountermeasure(ABC): :param mult: The scalar multiplier to use. :return: An instance of the countermeasure. """ - th = get_type_hints(cls.__init__) - num = 0 - for name, arg_type in th.items(): - if name.startswith("mult"): - num += 1 - mults = [mult] * num + mults = [mult] * cls.nmults return cls(*mults, **kwargs) def _apply_formula(self, shortname: str, *points: Point) -> Point: |
