diff options
| author | J08nY | 2020-07-01 23:08:43 +0200 |
|---|---|---|
| committer | J08nY | 2020-07-01 23:09:30 +0200 |
| commit | 2aa191c63c556857ee22e801c19ee9822016f7cc (patch) | |
| tree | 8824b678714c71979c4f8579c9cf782a6fadcc5e /pyecsca/ec/model.py | |
| parent | 3eaaed8ff2dfa36ad31884bc4cb0f45e0bf8f427 (diff) | |
| download | pyecsca-2aa191c63c556857ee22e801c19ee9822016f7cc.tar.gz pyecsca-2aa191c63c556857ee22e801c19ee9822016f7cc.tar.zst pyecsca-2aa191c63c556857ee22e801c19ee9822016f7cc.zip | |
Add random generation of points, speedup computation.
Diffstat (limited to 'pyecsca/ec/model.py')
| -rw-r--r-- | pyecsca/ec/model.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyecsca/ec/model.py b/pyecsca/ec/model.py index a28e700..4832e3c 100644 --- a/pyecsca/ec/model.py +++ b/pyecsca/ec/model.py @@ -16,6 +16,7 @@ class CurveModel(object): parameter_names: List[str] coordinate_names: List[str] equation: Expression + ysquared: Expression base_addition: List[Module] base_doubling: List[Module] base_negation: List[Module] @@ -70,6 +71,8 @@ class EFDCurveModel(CurveModel): cls.coordinate_names.append(line[11:]) elif line.startswith("satisfying"): cls.equation = format_eq(line[11:], mode="eval") + elif line.startswith("ysquared"): + cls.ysquared = format_eq(line[9:], mode="eval") elif line.startswith("addition"): cls.base_addition.append(format_eq(line[9:])) elif line.startswith("doubling"): |
