diff options
| author | J08nY | 2024-08-28 14:53:02 +0200 |
|---|---|---|
| committer | J08nY | 2024-08-28 14:53:02 +0200 |
| commit | 3a882956572af3ffc92811e8bcac4f87b4ad0d2a (patch) | |
| tree | 2fcf46331b466df13ae5079972cfbb0581284d2a | |
| parent | 57b68a73b1c49b6eeb5b668bff4efb5ac1aef881 (diff) | |
| download | pyecsca-3a882956572af3ffc92811e8bcac4f87b4ad0d2a.tar.gz pyecsca-3a882956572af3ffc92811e8bcac4f87b4ad0d2a.tar.zst pyecsca-3a882956572af3ffc92811e8bcac4f87b4ad0d2a.zip | |
Fix multiplecontext issue.
| -rw-r--r-- | test/sca/test_rpa_context.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |
