diff options
| author | J08nY | 2020-03-09 12:44:03 +0100 |
|---|---|---|
| committer | J08nY | 2020-03-09 12:44:03 +0100 |
| commit | a7d3589c4ba3551ab614dfc9c931c5998fbf7fac (patch) | |
| tree | 7f09b68b16b461ee6fd47d366dfc3d8444cf513e /test/test_render.py | |
| parent | 0fde32d49ca8bcba19a370125be99ad0c7572009 (diff) | |
| download | pyecsca-codegen-a7d3589c4ba3551ab614dfc9c931c5998fbf7fac.tar.gz pyecsca-codegen-a7d3589c4ba3551ab614dfc9c931c5998fbf7fac.tar.zst pyecsca-codegen-a7d3589c4ba3551ab614dfc9c931c5998fbf7fac.zip | |
Add inversion to config, change scalar mult command.
Diffstat (limited to 'test/test_render.py')
| -rw-r--r-- | test/test_render.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_render.py b/test/test_render.py index eefa626..1c7acf7 100644 --- a/test/test_render.py +++ b/test/test_render.py @@ -1,7 +1,8 @@ import tempfile from unittest import TestCase -from pyecsca.ec.configuration import HashType, RandomMod, Multiplication, Squaring, Reduction +from pyecsca.ec.configuration import (HashType, RandomMod, Multiplication, Squaring, Reduction, + Inversion) from pyecsca.ec.curves import get_params from pyecsca.ec.mult import LTRMultiplier @@ -18,6 +19,7 @@ class RenderTests(TestCase): mult = Multiplication.BASE sqr = Squaring.BASE red = Reduction.BASE + inv = Inversion.GCD params = get_params("secg", "secp128r1", "projective") model = params.curve.model coords = params.curve.coordinate_model @@ -27,6 +29,6 @@ class RenderTests(TestCase): formulas = [add, dbl, scl] scalarmult = LTRMultiplier(add, dbl, scl) config = DeviceConfiguration(model, coords, formulas, scalarmult, hash_type, mod_rand, mult, - sqr, red, platform, True, True, True) + sqr, red, inv, platform, True, True, True) temp = tempfile.mkdtemp() render_and_build(config, temp, True) |
