aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/misc/cfg.py
diff options
context:
space:
mode:
authorJ08nY2023-07-29 16:08:03 +0200
committerJ08nY2023-07-29 16:08:03 +0200
commit58b3e0f862ab13f7125d40c9360b4b348366370a (patch)
treee6dc34a67e75585ed0125e133d6c7bc8e21dc2d4 /pyecsca/misc/cfg.py
parentb003b1d2437b842beafca0f13bea368c92a422fe (diff)
downloadpyecsca-58b3e0f862ab13f7125d40c9360b4b348366370a.tar.gz
pyecsca-58b3e0f862ab13f7125d40c9360b4b348366370a.tar.zst
pyecsca-58b3e0f862ab13f7125d40c9360b4b348366370a.zip
Diffstat (limited to 'pyecsca/misc/cfg.py')
-rw-r--r--pyecsca/misc/cfg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyecsca/misc/cfg.py b/pyecsca/misc/cfg.py
index 2affb27..ee9c95d 100644
--- a/pyecsca/misc/cfg.py
+++ b/pyecsca/misc/cfg.py
@@ -111,13 +111,14 @@ class ECConfig:
- ``"gmp"``: Requires the GMP library and `gmpy2` package.
- ``"python"``: Doesn't require anything.
+ - ``"symbolic"``: Requires sympy.
"""
return self._mod_implementation
@mod_implementation.setter
def mod_implementation(self, value: str):
- if value not in ("python", "gmp"):
- raise ValueError("Bad Mod implementaiton, can be one of 'python' or 'gmp'.")
+ if value not in ("python", "gmp", "symbolic"):
+ raise ValueError("Bad Mod implementaiton, can be one of 'python', 'gmp' or 'symbolic'.")
self._mod_implementation = value