aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2020-07-10 17:30:27 +0200
committerJ08nY2020-07-10 17:30:27 +0200
commit2c6f3b41192bb06e4b8018d029af7f9980ef3cbc (patch)
tree6b37ea30be11719b5fc152e2e6ecabeb31ef834c
parent3975d2c8da225201bde9747b0438a317369a5e6c (diff)
downloadpyecsca-2c6f3b41192bb06e4b8018d029af7f9980ef3cbc.tar.gz
pyecsca-2c6f3b41192bb06e4b8018d029af7f9980ef3cbc.tar.bz2
pyecsca-2c6f3b41192bb06e4b8018d029af7f9980ef3cbc.zip
Fix point conversion from affine.
-rw-r--r--pyecsca/ec/point.py2
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))