aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/perf.yml2
-rw-r--r--.github/workflows/test.yml2
-rw-r--r--pyecsca/ec/mod.py6
3 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml
index 69ea332..ca3b1ae 100644
--- a/.github/workflows/perf.yml
+++ b/.github/workflows/perf.yml
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
- python-version: ["3.9", "3.10", "3.11"]
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
mod: ["python", "gmp", "flint"]
env:
PYTHON: ${{ matrix.python-version }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 1134792..95d6a3b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
- python-version: ["3.9", "3.10", "3.11"]
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
mod: ["python", "gmp", "flint"]
env:
PYTHON: ${{ matrix.python-version }}
diff --git a/pyecsca/ec/mod.py b/pyecsca/ec/mod.py
index 7637fd4..ecdf156 100644
--- a/pyecsca/ec/mod.py
+++ b/pyecsca/ec/mod.py
@@ -169,7 +169,7 @@ class Mod:
.. note::
This class dispatches to one of :py:class:`RawMod`, :py:class:`GMPMod` or :py:class:`FlintMod`
based on what packages are installed and what implementation is configured (see
- :py:module:`pyecsca.misc.cfg`).
+ :py:mod:`pyecsca.misc.cfg`).
Has all the usual special methods that upcast integers automatically:
@@ -194,7 +194,7 @@ class Mod:
False
>>> (a**2).is_residue()
True
- >>> (a**2).sqrt() == a
+ >>> (a**2).sqrt() in (a, -a)
True
"""
@@ -781,7 +781,7 @@ if has_flint:
@public
class FlintMod(Mod):
- """An element x of ℤₙ. Implemented by GMP."""
+ """An element x of ℤₙ. Implemented by flint."""
x: flint.fmpz_mod
_ctx: flint.fmpz_mod_ctx