aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/ec/params.py
diff options
context:
space:
mode:
authorJ08nY2020-07-10 18:54:15 +0200
committerJ08nY2020-07-10 18:54:15 +0200
commitfcdea31b2a6efb49357ef8b2e69212ec412feaa0 (patch)
tree3a986c2bb7010bfdb59a9062de3cd78de8dc4b51 /pyecsca/ec/params.py
parenta10e4c4339c11d5ff6b438569e3af96c1beae3e5 (diff)
downloadpyecsca-fcdea31b2a6efb49357ef8b2e69212ec412feaa0.tar.gz
pyecsca-fcdea31b2a6efb49357ef8b2e69212ec412feaa0.tar.zst
pyecsca-fcdea31b2a6efb49357ef8b2e69212ec412feaa0.zip
Fix modified coords to_model transformation.
Diffstat (limited to 'pyecsca/ec/params.py')
-rw-r--r--pyecsca/ec/params.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyecsca/ec/params.py b/pyecsca/ec/params.py
index 9f1865f..abe716a 100644
--- a/pyecsca/ec/params.py
+++ b/pyecsca/ec/params.py
@@ -143,7 +143,7 @@ def get_params(category: str, name: str, coords: str, infty: bool = True) -> Dom
affine = Point(AffineCoordinateModel(model), x=Mod(int(curve["generator"]["x"], 16), field),
y=Mod(int(curve["generator"]["y"], 16), field))
if not isinstance(coord_model, AffineCoordinateModel):
- generator = Point.from_affine(coord_model, affine)
+ generator = affine.to_model(coord_model, elliptic_curve)
else:
generator = affine
return DomainParameters(elliptic_curve, generator, order, cofactor, name, category)