aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/ec
diff options
context:
space:
mode:
authorJ08nY2021-05-20 23:16:34 +0200
committerJ08nY2021-05-20 23:16:34 +0200
commitda1022d678aa6e5e8036d5f0046320a9659cd8ac (patch)
treeec61ff805e42d99cf39e886ab611c7bff234c48d /pyecsca/ec
parenta10c12943d1a27bec481dae9a1d012df6f39c7d9 (diff)
downloadpyecsca-da1022d678aa6e5e8036d5f0046320a9659cd8ac.tar.gz
pyecsca-da1022d678aa6e5e8036d5f0046320a9659cd8ac.tar.zst
pyecsca-da1022d678aa6e5e8036d5f0046320a9659cd8ac.zip
Add reproducer for issue #14.
Diffstat (limited to 'pyecsca/ec')
-rw-r--r--pyecsca/ec/formula.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyecsca/ec/formula.py b/pyecsca/ec/formula.py
index ef206ab..0188271 100644
--- a/pyecsca/ec/formula.py
+++ b/pyecsca/ec/formula.py
@@ -200,7 +200,8 @@ class Formula(ABC):
break
else:
raise UnsatisfiedAssumptionError(
- f"Unsatisfied assumption in the formula ({assumption_string})."
+ f"Unsatisfied assumption in the formula ({assumption_string}).\n"
+ f"'{expr}' has no roots in the base field {k}."
)
def __call__(self, field: int, *points: Any, **params: Mod) -> Tuple[Any, ...]: