aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJ08nY2025-11-20 13:57:06 +0100
committerJ08nY2025-11-20 13:57:06 +0100
commit4e550565bec16916d9658a521d64128888f9f579 (patch)
treebb7100351424112da565fd88595ce7799c2db0fc /test
parent0783d266a2d258dae76d5cfccdb7bead472066cc (diff)
downloadpyecsca-4e550565bec16916d9658a521d64128888f9f579.tar.gz
pyecsca-4e550565bec16916d9658a521d64128888f9f579.tar.zst
pyecsca-4e550565bec16916d9658a521d64128888f9f579.zip
Fix rpa tests.
Diffstat (limited to 'test')
-rw-r--r--test/sca/test_rpa.py2
-rw-r--r--test/sca/test_rpa_context.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/sca/test_rpa.py b/test/sca/test_rpa.py
index e92ec44..6497ba2 100644
--- a/test/sca/test_rpa.py
+++ b/test/sca/test_rpa.py
@@ -94,7 +94,7 @@ def test_multiples_no_multiply(rpa_params):
wnaf = partial(WindowNAFMultiplier, width=4)
multiples = multiples_computed(78699, rpa_params, WindowNAFMultiplier, wnaf, True, False)
- assert multiples == {1, 2, 3, 5, 7, 9}
+ assert multiples == {1, 2, 3, 5, 7}
def test_multiples_bnaf(rpa_params):
diff --git a/test/sca/test_rpa_context.py b/test/sca/test_rpa_context.py
index c50b420..515a1a2 100644
--- a/test/sca/test_rpa_context.py
+++ b/test/sca/test_rpa_context.py
@@ -79,7 +79,7 @@ def test_precomp(secp128r1, add, dbl, neg, scale):
with local(MultipleContext()) as ctx:
wnaf.init(secp128r1, secp128r1.generator)
muls = list(ctx.points.values())
- assert muls == [1, 0, 2, 3, 5]
+ assert muls == [1, 0, 2, 3]
def test_window(secp128r1, add, dbl, neg):