aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/ec
diff options
context:
space:
mode:
authorJ08nY2020-12-10 17:33:19 +0100
committerJ08nY2020-12-10 17:33:19 +0100
commitc952dcb9b0f463c4a407d26a30a07b26779610b2 (patch)
treed6ed583682fe013b9d0bedf25bdb6b4958e88d56 /pyecsca/ec
parent9c4e18e8563c120f5dfaa5945d51e164f776adc2 (diff)
downloadpyecsca-c952dcb9b0f463c4a407d26a30a07b26779610b2.tar.gz
pyecsca-c952dcb9b0f463c4a407d26a30a07b26779610b2.tar.zst
pyecsca-c952dcb9b0f463c4a407d26a30a07b26779610b2.zip
Update docs and README.
Diffstat (limited to 'pyecsca/ec')
-rw-r--r--pyecsca/ec/mod.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyecsca/ec/mod.py b/pyecsca/ec/mod.py
index 6f9b91c..2e6e07a 100644
--- a/pyecsca/ec/mod.py
+++ b/pyecsca/ec/mod.py
@@ -188,6 +188,7 @@ class BaseMod(ABC):
return action.exit(cls(secrets.randbelow(n), n))
+@public
class RawMod(BaseMod):
"""An element x of ℤₙ."""
x: int
@@ -364,6 +365,7 @@ class Undefined(BaseMod):
if has_gmp:
+ @public
class GMPMod(BaseMod):
"""An element x of ℤₙ. Implemented by GMP."""
x: gmpy2.mpz