aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2023-10-02 20:39:03 +0200
committerJ08nY2023-10-02 20:39:03 +0200
commit1c25c3fa1b752c170092d0fff34e1a14f363c602 (patch)
treeda65d8d555f17fcdb1fc653d94a3518ae5b0905d
parentb02be86f1e3dc1add26aded8f2ffc3350917d6fb (diff)
downloadpyecsca-1c25c3fa1b752c170092d0fff34e1a14f363c602.tar.gz
pyecsca-1c25c3fa1b752c170092d0fff34e1a14f363c602.tar.zst
pyecsca-1c25c3fa1b752c170092d0fff34e1a14f363c602.zip
-rw-r--r--test/sca/perf_zvp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sca/perf_zvp.py b/test/sca/perf_zvp.py
index 77a0429..3125627 100644
--- a/test/sca/perf_zvp.py
+++ b/test/sca/perf_zvp.py
@@ -3,7 +3,7 @@ import click
from pyecsca.ec.mod import has_gmp
from pyecsca.misc.cfg import TemporaryConfig
-from pyecsca.sca.re.zvp import zvp_points, unroll_formula
+from pyecsca.sca.re.zvp import zvp_points, unroll_formula, map_to_affine
from pyecsca.ec.params import get_params
from test.utils import Profiler
@@ -29,7 +29,8 @@ def main(profiler, mod, operations, directory):
cfg.ec.mod_implementation = mod
p128 = get_params("secg", "secp128r1", "projective")
formula = p128.curve.coordinate_model.formulas["add-2015-rcb"]
- unrolled = unroll_formula(formula, affine=True)
+ unrolled = unroll_formula(formula)
+ unrolled = map_to_affine(formula, unrolled)
poly = unrolled[6][1]
k = 5