aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/ec
diff options
context:
space:
mode:
authorJ08nY2023-11-07 16:35:08 +0100
committerJ08nY2023-11-07 16:35:35 +0100
commit5f0c3ddcda211ad490bb96044b5b878e2d28c436 (patch)
treed23361b5022020a437327ac5af8861465bcb6bf8 /test/ec
parent82dc198ae6cca542ed99b4740a639dda870e6dda (diff)
downloadpyecsca-5f0c3ddcda211ad490bb96044b5b878e2d28c436.tar.gz
pyecsca-5f0c3ddcda211ad490bb96044b5b878e2d28c436.tar.zst
pyecsca-5f0c3ddcda211ad490bb96044b5b878e2d28c436.zip
Fix assumption eval.
Fixes #53.
Diffstat (limited to 'test/ec')
-rw-r--r--test/ec/test_regress.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ec/test_regress.py b/test/ec/test_regress.py
index af67096..8d54e98 100644
--- a/test/ec/test_regress.py
+++ b/test/ec/test_regress.py
@@ -125,3 +125,10 @@ def test_issue_14():
R = formula(p, P, Q, **curve.parameters)[0]
Raff = R.to_affine()
assert PQaff == Raff
+
+
+def test_issue_53():
+ secp128r1 = get_params("secg", "secp128r1", "jacobian")
+ coords = secp128r1.curve.coordinate_model
+ formula = coords.formulas["dbl-1998-hnm"]
+ formula(secp128r1.curve.prime, secp128r1.generator, **secp128r1.curve.parameters)