diff options
| author | J08nY | 2020-07-10 17:30:27 +0200 |
|---|---|---|
| committer | J08nY | 2020-07-10 17:30:27 +0200 |
| commit | 2c6f3b41192bb06e4b8018d029af7f9980ef3cbc (patch) | |
| tree | 6b37ea30be11719b5fc152e2e6ecabeb31ef834c /pyecsca/ec | |
| parent | 3975d2c8da225201bde9747b0438a317369a5e6c (diff) | |
| download | pyecsca-2c6f3b41192bb06e4b8018d029af7f9980ef3cbc.tar.gz pyecsca-2c6f3b41192bb06e4b8018d029af7f9980ef3cbc.tar.zst pyecsca-2c6f3b41192bb06e4b8018d029af7f9980ef3cbc.zip | |
Fix point conversion from affine.
Diffstat (limited to 'pyecsca/ec')
| -rw-r--r-- | pyecsca/ec/point.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyecsca/ec/point.py b/pyecsca/ec/point.py index 268f6f4..a77332f 100644 --- a/pyecsca/ec/point.py +++ b/pyecsca/ec/point.py @@ -84,7 +84,7 @@ class Point(object): elif var.startswith("Z"): result[var] = Mod(1, n) elif var == "T": - result[var] = Mod(affine_point.coords["x"] * affine_point.coords["y"], n) + result[var] = Mod(int(affine_point.coords["x"] * affine_point.coords["y"]), n) else: raise NotImplementedError return action.exit(Point(coordinate_model, **result)) |
