diff options
| author | J08nY | 2023-09-30 12:09:36 +0200 |
|---|---|---|
| committer | J08nY | 2023-09-30 12:09:36 +0200 |
| commit | ba9a123fc0db1074b4d635c3698bf584a92b32b1 (patch) | |
| tree | 73060b6e2f80a2d1b26ed089c1ae1fbdd1351036 | |
| parent | 053db0e3b98948813fe011af9105903aa4e33369 (diff) | |
| download | pyecsca-ba9a123fc0db1074b4d635c3698bf584a92b32b1.tar.gz pyecsca-ba9a123fc0db1074b4d635c3698bf584a92b32b1.tar.zst pyecsca-ba9a123fc0db1074b4d635c3698bf584a92b32b1.zip | |
Fix typing.
| -rw-r--r-- | pyecsca/sca/re/zvp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/sca/re/zvp.py b/pyecsca/sca/re/zvp.py index 206fc5e..89a0166 100644 --- a/pyecsca/sca/re/zvp.py +++ b/pyecsca/sca/re/zvp.py @@ -307,8 +307,8 @@ def zvp_points(poly: Poly, curve: EllipticCurve, k: int, n: int) -> Set[Point]: if not set(symbols("x1,x2,y1,y2")).intersection(poly.gens): # type: ignore[attr-defined] return set() poly = Poly(poly, domain=FF(curve.prime)) - only_1 = all((not str(gen).endswith("2")) for gen in poly.gens) - only_2 = all((not str(gen).endswith("1")) for gen in poly.gens) + only_1 = all((not str(gen).endswith("2")) for gen in poly.gens) # type: ignore[attr-defined] + only_2 = all((not str(gen).endswith("1")) for gen in poly.gens) # type: ignore[attr-defined] # Start with removing all squares of Y1, Y2 subbed = subs_curve_equation(poly, curve) # Remove the Zs by setting them to 1 |
