aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJ08nY2025-03-11 21:54:35 +0100
committerJ08nY2025-03-11 21:54:35 +0100
commit90003215e350b16a43992e72decfe2b15125299e (patch)
tree48a55dda4ffc30cb9219dc24a4f5904ee43c8f33 /test
parent414c78a620d9bfcd730c0729c8d26fca58cac977 (diff)
downloadpyecsca-90003215e350b16a43992e72decfe2b15125299e.tar.gz
pyecsca-90003215e350b16a43992e72decfe2b15125299e.tar.zst
pyecsca-90003215e350b16a43992e72decfe2b15125299e.zip
Add different multiple tracking in multiples_computed.
Diffstat (limited to 'test')
-rw-r--r--test/sca/test_rpa.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/sca/test_rpa.py b/test/sca/test_rpa.py
index b17c6d4..6d58597 100644
--- a/test/sca/test_rpa.py
+++ b/test/sca/test_rpa.py
@@ -81,6 +81,24 @@ def test_multiples(rpa_params):
assert 0 not in multiples
+def test_multiples_kind(rpa_params):
+ multiples_all = multiples_computed(
+ 17, rpa_params, RTLMultiplier, RTLMultiplier, True, True,
+ kind="all"
+ )
+ multiples_input = multiples_computed(
+ 17, rpa_params, RTLMultiplier, RTLMultiplier, True, True,
+ kind="input"
+ )
+ multiples_necessary = multiples_computed(
+ 17, rpa_params, RTLMultiplier, RTLMultiplier, True, True,
+ kind="necessary"
+ )
+ assert multiples_all != multiples_input
+ assert multiples_all != multiples_necessary
+ assert multiples_input != multiples_necessary
+
+
def test_x0_point(rpa_params):
res = rpa_point_x0(rpa_params)
assert res is not None