aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_impl.py
diff options
context:
space:
mode:
authorJ08nY2020-02-26 14:28:52 +0100
committerJ08nY2020-02-26 14:28:52 +0100
commitf78ff987ac2df62dbd8326ce33ae61c97673710e (patch)
tree9b63026e223254bc3c4e6af164bd3ae3bdcc0404 /test/test_impl.py
parent3892d994470b181f950703fabf719a9c963d1c20 (diff)
downloadpyecsca-codegen-f78ff987ac2df62dbd8326ce33ae61c97673710e.tar.gz
pyecsca-codegen-f78ff987ac2df62dbd8326ce33ae61c97673710e.tar.zst
pyecsca-codegen-f78ff987ac2df62dbd8326ce33ae61c97673710e.zip
Get stuff to work on STM32F0.
Diffstat (limited to 'test/test_impl.py')
-rw-r--r--test/test_impl.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_impl.py b/test/test_impl.py
index 267fc6b..f66d252 100644
--- a/test/test_impl.py
+++ b/test/test_impl.py
@@ -11,7 +11,7 @@ from pyecsca.ec.point import Point
from pyecsca.ec.signature import ECDSA_SHA1, SignatureResult
from pyecsca.codegen.builder import build_impl
-from pyecsca.codegen.client import BinaryTarget
+from pyecsca.codegen.client import HostTarget
class ImplTests(TestCase):
@@ -36,9 +36,8 @@ class ImplTests(TestCase):
*formulas,
f"{mult_name}({','.join(f'{key}={value}' for key, value in mult_kwargs.items())})",
"."])
- target = BinaryTarget(join(tmpdir, "pyecsca-codegen-HOST.elf"),
- params.curve.model,
- params.curve.coordinate_model)
+ target = HostTarget(params.curve.model, params.curve.coordinate_model,
+ binary=join(tmpdir, "pyecsca-codegen-HOST.elf"))
target.connect()
target.set_params(params)
formula_instances = [params.curve.coordinate_model.formulas[formula] for formula