diff options
| author | J08nY | 2019-04-21 17:41:20 +0200 |
|---|---|---|
| committer | J08nY | 2019-04-21 17:41:20 +0200 |
| commit | 1c5002cca81eee594041852b3748d4661d2b1968 (patch) | |
| tree | 062570d7a525de47aa3754aa3c3eb79ec786e965 /pyecsca/ec | |
| parent | c4b98adbb7c9898dc830b9c6f4b1f52890a17632 (diff) | |
| download | pyecsca-1c5002cca81eee594041852b3748d4661d2b1968.tar.gz pyecsca-1c5002cca81eee594041852b3748d4661d2b1968.tar.zst pyecsca-1c5002cca81eee594041852b3748d4661d2b1968.zip | |
Add codecov.
Diffstat (limited to 'pyecsca/ec')
| -rw-r--r-- | pyecsca/ec/curve.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyecsca/ec/curve.py b/pyecsca/ec/curve.py index 4b84d24..97ccb58 100644 --- a/pyecsca/ec/curve.py +++ b/pyecsca/ec/curve.py @@ -1,5 +1,5 @@ from public import public -from typing import Mapping, Union +from typing import MutableMapping, Union from .coordinates import CoordinateModel from .mod import Mod @@ -12,11 +12,11 @@ class EllipticCurve(object): model: CurveModel coordinate_model: CoordinateModel prime: int - parameters: Mapping[str, Mod] + parameters: MutableMapping[str, Mod] neutral: Point def __init__(self, model: CurveModel, coordinate_model: CoordinateModel, - prime: int, parameters: Mapping[str, Union[Mod, int]], neutral: Point): + prime: int, parameters: MutableMapping[str, Union[Mod, int]], neutral: Point): # TODO: Add base_point arg, order arg, cofactor arg. if coordinate_model not in model.coordinates.values(): raise ValueError |
