aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/sca/attack/CPA.py
diff options
context:
space:
mode:
authorAndrej Bátora2023-10-05 20:18:51 +0200
committerAndrej Bátora2023-10-05 20:18:51 +0200
commit509ffef3df7a98cc8cceccbb7d1ca3e8440ea4f5 (patch)
tree7f6688e1dd94b90c9d3a1a1e47ba9285986a0d6b /pyecsca/sca/attack/CPA.py
parent71bac00f26e745c929d318b607d1794568fc6514 (diff)
downloadpyecsca-509ffef3df7a98cc8cceccbb7d1ca3e8440ea4f5.tar.gz
pyecsca-509ffef3df7a98cc8cceccbb7d1ca3e8440ea4f5.tar.zst
pyecsca-509ffef3df7a98cc8cceccbb7d1ca3e8440ea4f5.zip
typing fixes
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)):