aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/installation.rst1
-rw-r--r--pyecsca/ec/point.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/installation.rst b/docs/installation.rst
index 2396171..55277a6 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -48,6 +48,7 @@ Requirements
It uses `ChipWhisperer`_ as one of its targets. It also supports working with Riscure_ Inspector trace sets, which are of a proprietary format.
+ Optionally, you can Cythonize the `pyecsca/ec/mod` subpackage and sometimes gain a performance benefit, YMMV.
.. dropdown:: Testing & Development
diff --git a/pyecsca/ec/point.py b/pyecsca/ec/point.py
index ba79ace..1b11e3f 100644
--- a/pyecsca/ec/point.py
+++ b/pyecsca/ec/point.py
@@ -131,7 +131,7 @@ class Point:
for var in coordinate_model.variables:
if var in locls:
result[var] = (
- mod(locls[var], curve.prime)
+ mod(locls[var], curve.prime) # type: ignore
if not isinstance(locls[var], Mod)
else locls[var]
)