From f78ff987ac2df62dbd8326ce33ae61c97673710e Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 26 Feb 2020 14:28:52 +0100 Subject: Get stuff to work on STM32F0. --- test/test_impl.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/test_impl.py') 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 -- cgit v1.3.1