diff options
Diffstat (limited to 'pyecsca/ec/coordinates.py')
| -rw-r--r-- | pyecsca/ec/coordinates.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyecsca/ec/coordinates.py b/pyecsca/ec/coordinates.py index 8684223..25c4d09 100644 --- a/pyecsca/ec/coordinates.py +++ b/pyecsca/ec/coordinates.py @@ -86,6 +86,7 @@ class EFDCoordinateModel(CoordinateModel): self.satisfying = [] self.toaffine = [] self.tosystem = [] + self.homogweights = {} self.parameters = [] self.assumptions = [] self.neutral = [] @@ -146,6 +147,12 @@ class EFDCoordinateModel(CoordinateModel): self.tosystem.append(code) except SyntaxError: pass + elif line.startswith("homogweight"): + try: + var, weight = line[11:].split("=") + self.homogweights[var.strip()] = int(weight) + except SyntaxError: + pass elif line.startswith("parameter"): self.parameters.append(line[10:]) elif line.startswith("assume"): |
