aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJ08nY2024-07-15 15:26:09 +0200
committerJ08nY2024-07-15 15:26:09 +0200
commita66332f7d1b42dcb2c761f7c085a3ca531975979 (patch)
treee4d4902ac7fdd22511dc4f3cdb83f499c0baae4b
parent72c5f70c01af2c16f76dc6ddba7de55cc6d9583f (diff)
parent3081d7927fb3681a4388ba01696a4188b510d812 (diff)
downloadpyecsca-a66332f7d1b42dcb2c761f7c085a3ca531975979.tar.gz
pyecsca-a66332f7d1b42dcb2c761f7c085a3ca531975979.tar.zst
pyecsca-a66332f7d1b42dcb2c761f7c085a3ca531975979.zip
Merge branch 'feat/py3.12'
-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