aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJ08nY2024-07-16 16:38:16 +0200
committerJ08nY2024-07-16 16:38:16 +0200
commitb492e5d621c3173e5a64bebfd79d54e8c4ce8bb3 (patch)
tree499fce5eb6b6c5b006107d1abdc75d3679cd5a0d
parenteea57d6019d7b13a3c9e01cf1ecb11b132e5e291 (diff)
downloadpyecsca-b492e5d621c3173e5a64bebfd79d54e8c4ce8bb3.tar.gz
pyecsca-b492e5d621c3173e5a64bebfd79d54e8c4ce8bb3.tar.zst
pyecsca-b492e5d621c3173e5a64bebfd79d54e8c4ce8bb3.zip
Explain option to cythonize in docs.
-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]
)