aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/sca/attack/CPA.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca/sca/attack/CPA.py')
-rw-r--r--pyecsca/sca/attack/CPA.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyecsca/sca/attack/CPA.py b/pyecsca/sca/attack/CPA.py
index 3ef57b0..e46181e 100644
--- a/pyecsca/sca/attack/CPA.py
+++ b/pyecsca/sca/attack/CPA.py
@@ -7,6 +7,7 @@ from pyecsca.sca.trace import Trace
from public import public
from scipy.stats import pearsonr
from pyecsca.sca.attack.leakage_model import LeakageModel
+from typing import Any
import numpy as np
from numpy.typing import NDArray
@@ -45,7 +46,7 @@ class CPA():
result = ctx.actions.get_by_index([0, action_index])[0]
return result.output_points[0].X
- def compute_correlation_trace(self, guessed_scalar: int, target_bit: int) -> list[any]:
+ def compute_correlation_trace(self, guessed_scalar: int, target_bit: int) -> list[Any]:
correlation_trace = []
intermediate_values = []
for i in range(len(self.points)):