aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/sca
diff options
context:
space:
mode:
authorJ08nY2024-08-24 16:40:28 +0200
committerJ08nY2024-08-24 16:40:28 +0200
commit11ed8dbba54168adc3b6b25fff811510786a234d (patch)
treeb3516bab867aef8533415811a32dc19354848c60 /pyecsca/sca
parent0217078cc1f10881b60be613fd4c6e0ef9677ce6 (diff)
downloadpyecsca-11ed8dbba54168adc3b6b25fff811510786a234d.tar.gz
pyecsca-11ed8dbba54168adc3b6b25fff811510786a234d.tar.zst
pyecsca-11ed8dbba54168adc3b6b25fff811510786a234d.zip
Diffstat (limited to 'pyecsca/sca')
-rw-r--r--pyecsca/sca/re/zvp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyecsca/sca/re/zvp.py b/pyecsca/sca/re/zvp.py
index 4954baa..298158a 100644
--- a/pyecsca/sca/re/zvp.py
+++ b/pyecsca/sca/re/zvp.py
@@ -5,6 +5,7 @@ Implements ZVP point construction from [FFD]_.
"""
from typing import List, Set, Tuple, Dict, Type
from public import public
+import warnings
from astunparse import unparse
from sympy import FF, Poly, Monomial, Symbol, Expr, sympify, symbols, div
@@ -521,6 +522,7 @@ def solve_hard_dcp(xonly_polynomial: Poly, curve: EllipticCurve, k: int) -> Set[
if has_pari:
roots = solve_hard_dcp_cypari(xonly_polynomial, curve, k)
else:
+ warnings.warn("Falling-back to slow hard-DCP computation due to missing [pari] (cypari2 and libpari) dependency.")
# Substitute in the mult-by-k map
dlog = subs_dlog(xonly_polynomial, k, curve)
# Put in concrete curve parameters