aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
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)