diff options
| author | J08nY | 2024-04-03 15:46:51 +0200 |
|---|---|---|
| committer | J08nY | 2024-04-03 15:46:51 +0200 |
| commit | 7e48ad69a0c8200642559675749b80f98cc5147b (patch) | |
| tree | c9da6349bcc338f6631117efc1e0385a6f9c3c21 /test/sca | |
| parent | c79dec57fd13142cf043c24f9c4977a1f8043b26 (diff) | |
| download | pyecsca-7e48ad69a0c8200642559675749b80f98cc5147b.tar.gz pyecsca-7e48ad69a0c8200642559675749b80f98cc5147b.tar.zst pyecsca-7e48ad69a0c8200642559675749b80f98cc5147b.zip | |
Short circuit in ZVP eliminate_y if already eliminated.
Diffstat (limited to 'test/sca')
| -rw-r--r-- | test/sca/test_zvp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/sca/test_zvp.py b/test/sca/test_zvp.py index 51b0327..99b7105 100644 --- a/test/sca/test_zvp.py +++ b/test/sca/test_zvp.py @@ -134,6 +134,9 @@ def test_eliminate_y(secp128r1, formula): assert y1 not in eliminated.gens assert y2 not in eliminated.gens + eliminated_second = eliminate_y(eliminated, secp128r1.curve.model) + assert eliminated_second == eliminated + def test_full(secp128r1, formula): unrolled = unroll_formula(formula) |
