aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/sca/attack/CPA.py
diff options
context:
space:
mode:
authorJ08nY2024-06-04 17:02:57 +0200
committerJ08nY2024-06-04 17:02:57 +0200
commit618deff9313f1b4ee91d8fe028d7103bfe95144b (patch)
treec932f16722fff2c754e18cd20eda2de1e9334e0a /pyecsca/sca/attack/CPA.py
parent4eadcd6ad1e4cadcb8bb0b6da8d9c0b62f2a09f0 (diff)
downloadpyecsca-618deff9313f1b4ee91d8fe028d7103bfe95144b.tar.gz
pyecsca-618deff9313f1b4ee91d8fe028d7103bfe95144b.tar.zst
pyecsca-618deff9313f1b4ee91d8fe028d7103bfe95144b.zip
New tree API.
Diffstat (limited to 'pyecsca/sca/attack/CPA.py')
-rw-r--r--pyecsca/sca/attack/CPA.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyecsca/sca/attack/CPA.py b/pyecsca/sca/attack/CPA.py
index 6efa3b5..efa406c 100644
--- a/pyecsca/sca/attack/CPA.py
+++ b/pyecsca/sca/attack/CPA.py
@@ -55,7 +55,7 @@ class CPA:
action_index += 2
elif bit == "0":
action_index += 1
- result = ctx.actions.get_by_index([action_index]).action
+ result = ctx.actions[0].get_by_index([action_index]).action
return result.output_points[0].X
def compute_correlation_trace(