diff options
| author | J08nY | 2024-07-15 17:59:15 +0200 |
|---|---|---|
| committer | J08nY | 2024-07-15 17:59:15 +0200 |
| commit | ba894fe889d003f2766b7bb90503960fd0429cd5 (patch) | |
| tree | 60bf4df586a1e3035491b2b80807ee115a224785 | |
| parent | ce862a86bb0a59313527e3fdd97631ab1f36b8bd (diff) | |
| download | pyecsca-ba894fe889d003f2766b7bb90503960fd0429cd5.tar.gz pyecsca-ba894fe889d003f2766b7bb90503960fd0429cd5.tar.zst pyecsca-ba894fe889d003f2766b7bb90503960fd0429cd5.zip | |
| -rw-r--r-- | pyecsca/ec/mod/test.pyx | 7 | ||||
| -rwxr-xr-x | test/ec/perf_formula.py | 3 | ||||
| -rwxr-xr-x | test/ec/perf_mod.py | 4 | ||||
| -rwxr-xr-x | test/ec/perf_mult.py | 3 | ||||
| -rw-r--r-- | test/sca/perf_zvp.py | 3 |
5 files changed, 16 insertions, 4 deletions
diff --git a/pyecsca/ec/mod/test.pyx b/pyecsca/ec/mod/test.pyx new file mode 100644 index 0000000..080d950 --- /dev/null +++ b/pyecsca/ec/mod/test.pyx @@ -0,0 +1,7 @@ +import cython + + +@cython.cclass +class Test: + def __new__(cls, *args, **kwargs): + pass diff --git a/test/ec/perf_formula.py b/test/ec/perf_formula.py index 60b2b7d..782631c 100755 --- a/test/ec/perf_formula.py +++ b/test/ec/perf_formula.py @@ -1,7 +1,8 @@ #!/usr/bin/env python import click -from pyecsca.ec.mod import has_gmp, has_flint +from pyecsca.ec.mod.gmp import has_gmp +from pyecsca.ec.mod.flint import has_flint from pyecsca.ec.params import get_params from pyecsca.misc.cfg import TemporaryConfig from test.utils import Profiler diff --git a/test/ec/perf_mod.py b/test/ec/perf_mod.py index 925360e..8f07fc5 100755 --- a/test/ec/perf_mod.py +++ b/test/ec/perf_mod.py @@ -1,7 +1,9 @@ #!/usr/bin/env python import click -from pyecsca.ec.mod import Mod, has_gmp, has_flint +from pyecsca.ec.mod import Mod +from pyecsca.ec.mod.gmp import has_gmp +from pyecsca.ec.mod.flint import has_flint from pyecsca.misc.cfg import TemporaryConfig from test.utils import Profiler diff --git a/test/ec/perf_mult.py b/test/ec/perf_mult.py index 50a7191..82d2976 100755 --- a/test/ec/perf_mult.py +++ b/test/ec/perf_mult.py @@ -5,7 +5,8 @@ import click from pyecsca.ec.context import local, DefaultContext from pyecsca.ec.formula import AdditionFormula, DoublingFormula -from pyecsca.ec.mod import has_gmp, has_flint +from pyecsca.ec.mod.gmp import has_gmp +from pyecsca.ec.mod.flint import has_flint from pyecsca.ec.mult import LTRMultiplier from pyecsca.ec.params import get_params from pyecsca.misc.cfg import TemporaryConfig diff --git a/test/sca/perf_zvp.py b/test/sca/perf_zvp.py index 2175d49..7a04dd6 100644 --- a/test/sca/perf_zvp.py +++ b/test/sca/perf_zvp.py @@ -1,7 +1,8 @@ #!/usr/bin/env python import click -from pyecsca.ec.mod import has_gmp, has_flint +from pyecsca.ec.mod.gmp import has_gmp +from pyecsca.ec.mod.flint import has_flint from pyecsca.misc.cfg import TemporaryConfig from pyecsca.sca.re.zvp import zvp_points, map_to_affine from pyecsca.ec.formula.unroll import unroll_formula |
