diff options
| author | J08nY | 2024-01-27 12:02:40 +0100 |
|---|---|---|
| committer | J08nY | 2024-01-27 12:02:40 +0100 |
| commit | 03674b43a9900cf14a996e1a3dca74fc95591b23 (patch) | |
| tree | c23c0e9c30a006218921e37812fd8bcf61b61aae /pyecsca/ec | |
| parent | 8f05c2a23462be44b8f22da17f36eaf07e8cf9c4 (diff) | |
| download | pyecsca-03674b43a9900cf14a996e1a3dca74fc95591b23.tar.gz pyecsca-03674b43a9900cf14a996e1a3dca74fc95591b23.tar.zst pyecsca-03674b43a9900cf14a996e1a3dca74fc95591b23.zip | |
Fix switch_sign on xz.
Diffstat (limited to 'pyecsca/ec')
| -rw-r--r-- | pyecsca/ec/formula/switch_sign.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyecsca/ec/formula/switch_sign.py b/pyecsca/ec/formula/switch_sign.py index 9f19629..5a52ebc 100644 --- a/pyecsca/ec/formula/switch_sign.py +++ b/pyecsca/ec/formula/switch_sign.py @@ -63,6 +63,9 @@ def sign_test(output_signs: Dict[str, int], coordinate_model: Any): try: apoint = point.to_affine() except NotImplementedError: + # Ignore switch signs if we cannot test them. + if scale is None: + raise BadSignSwitch apoint = scale(p, point)[0] if set(apoint.coords.values()) != set([Mod(1, p)]): raise BadSignSwitch |
