aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJ08nY2025-03-28 10:08:17 +0100
committerJ08nY2025-03-28 10:08:17 +0100
commit7afddf743cfdadbaff1a3bf2581c039c6e0816bb (patch)
tree5d912f55679428f31ac620b009b94d82ecd5a40f /test
parent1e72c45f317103bee20e00e66eff473ade40e33d (diff)
downloadpyecsca-7afddf743cfdadbaff1a3bf2581c039c6e0816bb.tar.gz
pyecsca-7afddf743cfdadbaff1a3bf2581c039c6e0816bb.tar.zst
pyecsca-7afddf743cfdadbaff1a3bf2581c039c6e0816bb.zip
Diffstat (limited to 'test')
-rw-r--r--test/sca/test_rpa.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/sca/test_rpa.py b/test/sca/test_rpa.py
index 8be35f1..3bcf987 100644
--- a/test/sca/test_rpa.py
+++ b/test/sca/test_rpa.py
@@ -84,6 +84,15 @@ def test_multiples(rpa_params):
assert 0 not in multiples
+def test_multiples_bnaf(rpa_params):
+ mult_partial = partial(BinaryNAFMultiplier, always=True, direction=ProcessingDirection.LTR)
+ multiples = multiples_computed(
+ 199, rpa_params, BinaryNAFMultiplier, mult_partial, True, True,
+ kind="all"
+ )
+ assert 23 in multiples
+
+
def test_multiples_kind(rpa_params):
multiples_all = multiples_computed(
17, rpa_params, RTLMultiplier, RTLMultiplier, True, True,