From 3a882956572af3ffc92811e8bcac4f87b4ad0d2a Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 28 Aug 2024 14:53:02 +0200 Subject: Fix multiplecontext issue. --- test/sca/test_rpa_context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/sca') diff --git a/test/sca/test_rpa_context.py b/test/sca/test_rpa_context.py index fdb4788..7520516 100644 --- a/test/sca/test_rpa_context.py +++ b/test/sca/test_rpa_context.py @@ -74,13 +74,13 @@ def test_precomp(secp128r1, add, dbl, neg, scale): with local(MultipleContext()) as ctx: bnaf.init(secp128r1, secp128r1.generator) muls = list(ctx.points.values()) - assert muls == [1, -1] + assert muls == [1, 0, -1] wnaf = WindowNAFMultiplier(add, dbl, neg, 3, scale) with local(MultipleContext()) as ctx: wnaf.init(secp128r1, secp128r1.generator) muls = list(ctx.points.values()) - assert muls == [1, 2, 3, 5] + assert muls == [1, 0, 2, 3, 5] def test_window(secp128r1, add, dbl, neg): -- cgit v1.2.3-70-g09d2