aboutsummaryrefslogtreecommitdiff
path: root/test/sca
diff options
context:
space:
mode:
authorJ08nY2025-03-08 16:31:16 +0100
committerJ08nY2025-03-08 16:31:16 +0100
commit86768f810937382983c426a8151a26698afda3e8 (patch)
tree0f91a119fc9c2bc128c1e86353f2219bf9aca5b0 /test/sca
parent81f4d8ff8dab2a7884f0d74f23b3d78142eb176a (diff)
downloadpyecsca-86768f810937382983c426a8151a26698afda3e8.tar.gz
pyecsca-86768f810937382983c426a8151a26698afda3e8.tar.zst
pyecsca-86768f810937382983c426a8151a26698afda3e8.zip
Diffstat (limited to 'test/sca')
-rw-r--r--test/sca/test_rpa.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/sca/test_rpa.py b/test/sca/test_rpa.py
index d87e248..0d2860b 100644
--- a/test/sca/test_rpa.py
+++ b/test/sca/test_rpa.py
@@ -28,7 +28,7 @@ from pyecsca.sca.re.rpa import (
MultipleContext,
rpa_point_0y,
rpa_point_x0,
- rpa_distinguish,
+ rpa_distinguish, multiples_computed,
)
@@ -71,6 +71,12 @@ def rpa_params(model, coords):
return DomainParameters(curve, g, 0x85D265932D90785C, 1)
+def test_multiples(rpa_params):
+ multiples = multiples_computed(17, rpa_params, LTRMultiplier, LTRMultiplier, True, True)
+ assert 1 in multiples
+ assert 17 in multiples
+ assert 0 not in multiples
+
def test_x0_point(rpa_params):
res = rpa_point_x0(rpa_params)
assert res is not None