aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJ08nY2024-07-11 19:05:54 +0200
committerJ08nY2024-07-11 19:05:54 +0200
commit455a335103f207d0471d1ce952a62e83df985ffb (patch)
treec2ed4fb091bebe6db51f6bcdb9783a2151e26185
parent857f5d315a653f8f69525b6d4ba31db0097810da (diff)
downloadpyecsca-455a335103f207d0471d1ce952a62e83df985ffb.tar.gz
pyecsca-455a335103f207d0471d1ce952a62e83df985ffb.tar.zst
pyecsca-455a335103f207d0471d1ce952a62e83df985ffb.zip
Prefer gmp to flint.
-rw-r--r--pyecsca/ec/mod.py2
-rw-r--r--pyecsca/misc/cfg.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/pyecsca/ec/mod.py b/pyecsca/ec/mod.py
index 241967b..978b853 100644
--- a/pyecsca/ec/mod.py
+++ b/pyecsca/ec/mod.py
@@ -151,7 +151,7 @@ class RandomModAction(ResultAction):
_mod_classes: Dict[str, Type] = {}
-_mod_order = ["flint", "gmp", "python"]
+_mod_order = ["gmp", "flint", "python"]
@public
diff --git a/pyecsca/misc/cfg.py b/pyecsca/misc/cfg.py
index eac5174..037074d 100644
--- a/pyecsca/misc/cfg.py
+++ b/pyecsca/misc/cfg.py
@@ -18,7 +18,7 @@ class ECConfig:
_non_residue_action: str = "error"
_unsatisfied_formula_assumption_action: str = "error"
_unsatisfied_coordinate_assumption_action: str = "error"
- _mod_implementation: str = "flint"
+ _mod_implementation: str = "gmp"
@property
def no_inverse_action(self) -> str:
@@ -109,8 +109,8 @@ class ECConfig:
One of:
- - ``"flint"``: Requires the flint library and `python-flint` package.
- ``"gmp"``: Requires the GMP library and `gmpy2` package.
+ - ``"flint"``: Requires the flint library and `python-flint` package.
- ``"python"``: Doesn't require anything.
- ``"symbolic"``: Requires sympy.
"""