aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sca
diff options
context:
space:
mode:
authorJ08nY2024-01-23 17:02:25 +0100
committerJ08nY2024-01-23 17:02:25 +0100
commitd47454693d92cddd971b652faa19801f7b196192 (patch)
treeffa20e9cb3118905acfaa66e3c498c78fd7ece01 /test/sca
parente2411faf8271c7fb442d086ff019c830275c90b1 (diff)
downloadpyecsca-d47454693d92cddd971b652faa19801f7b196192.tar.gz
pyecsca-d47454693d92cddd971b652faa19801f7b196192.tar.zst
pyecsca-d47454693d92cddd971b652faa19801f7b196192.zip
Add heuristic for PARI stack size allocation.
Diffstat (limited to 'test/sca')
-rw-r--r--test/sca/test_zvp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/sca/test_zvp.py b/test/sca/test_zvp.py
index d1b7930..601a695 100644
--- a/test/sca/test_zvp.py
+++ b/test/sca/test_zvp.py
@@ -292,3 +292,11 @@ def test_precomp(small_params):
)
assert res is not None
assert len(res) == len(chain)
+
+
+@pytest.mark.parametrize("k", [7, 25, 31])
+def test_big_boy(secp128r1, k):
+ poly_expr = sympify("x1*x2 + y1*y2")
+ poly = Poly(poly_expr, domain=FF(secp128r1.curve.prime))
+ res = zvp_points(poly, secp128r1.curve, k, secp128r1.order)
+ assert res is not None