diff options
| author | andrr3j | 2023-07-19 10:42:45 +0200 |
|---|---|---|
| committer | andrr3j | 2023-07-19 10:42:45 +0200 |
| commit | 1252f69a677b432c9d19c2075c113ebae13924bc (patch) | |
| tree | 99b7c92eaae813b72e206d2a594ebd581655f7ee | |
| parent | 7acfaa0a687530ca195769644dbbc82b9bf3ed08 (diff) | |
| download | pyecsca-codegen-1252f69a677b432c9d19c2075c113ebae13924bc.tar.gz pyecsca-codegen-1252f69a677b432c9d19c2075c113ebae13924bc.tar.zst pyecsca-codegen-1252f69a677b432c9d19c2075c113ebae13924bc.zip | |
small fix in simulator tests
| -rw-r--r-- | test/test_simulator.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/test_simulator.py b/test/test_simulator.py index eb7f238..56349c8 100644 --- a/test/test_simulator.py +++ b/test/test_simulator.py @@ -100,7 +100,7 @@ class KeyGenerationTests(SimulatorTest): def do_keygen_test(self, runner, params, mult_class, formulas, mult_name): def callback(target, mult, params): - for _ in range(1): + for _ in range(3): priv, pub = target.generate() self.assertTrue(params.curve.is_on_curve(pub)) expected = mult.multiply(priv).to_affine() @@ -132,8 +132,7 @@ class KeyGenerationTests(SimulatorTest): class ScalarMultiplicationTests(SimulatorTest): def do_mult_test(self, runner, params, mult_class, formulas, mult_name): - #values = [15, 2355498743, 3253857901321912443757746] - values = [15] + values = [15, 2355498743, 3253857901321912443757746] def callback(target, mult, params): for value in values: @@ -166,8 +165,7 @@ class ScalarMultiplicationTests(SimulatorTest): class ECDHTests(SimulatorTest): def do_ecdh_test(self, runner, params, mult_class, formulas, mult_name): - #other_privs = [15, 2355498743, 3253857901321912443757746] - other_privs = [15] + other_privs = [15, 2355498743, 3253857901321912443757746] def callback(target, mult, params): for other_priv in other_privs: |
