aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJ08nY2023-11-27 14:35:12 +0100
committerJ08nY2023-11-27 14:35:12 +0100
commitfbd9ee3bd9baaa567ea80d1f86ca43727fa5173c (patch)
tree87d8c7b35750d3d1542e8bbd69c2ed74c4f83845 /test
parentedd0ce5c5748d1bbb34a48172af95010e1103eab (diff)
downloadpyecsca-fbd9ee3bd9baaa567ea80d1f86ca43727fa5173c.tar.gz
pyecsca-fbd9ee3bd9baaa567ea80d1f86ca43727fa5173c.tar.zst
pyecsca-fbd9ee3bd9baaa567ea80d1f86ca43727fa5173c.zip
Make RPA-RE work based on the inputs.
Diffstat (limited to 'test')
-rw-r--r--test/sca/test_rpa.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sca/test_rpa.py b/test/sca/test_rpa.py
index 950c030..f09a1a1 100644
--- a/test/sca/test_rpa.py
+++ b/test/sca/test_rpa.py
@@ -102,7 +102,7 @@ def test_distinguish(secp128r1, add, dbl, neg):
with local(MultipleContext()) as ctx:
real_mult.init(secp128r1, point)
real_mult.multiply(scalar)
- return any(map(lambda P: P.X == 0 or P.Y == 0, ctx.points.keys()))
+ return any(map(lambda P: P.X == 0 or P.Y == 0, sum(ctx.parents.values(), [])))
with redirect_stdout(io.StringIO()):
result = rpa_distinguish(secp128r1, multipliers, simulated_oracle)