aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca
diff options
context:
space:
mode:
authorJ08nY2023-12-16 18:26:23 +0100
committerJ08nY2023-12-16 18:26:23 +0100
commit88dc89b3824d3c196fab1899aac2892c39de8566 (patch)
treead7efee6a3319a32afb50a4b54f38c752fed13fc /pyecsca
parent0d7cad3bf6b34a0faad51af3cd808b61e267cff7 (diff)
downloadpyecsca-88dc89b3824d3c196fab1899aac2892c39de8566.tar.gz
pyecsca-88dc89b3824d3c196fab1899aac2892c39de8566.tar.zst
pyecsca-88dc89b3824d3c196fab1899aac2892c39de8566.zip
Fix typing.
Diffstat (limited to 'pyecsca')
-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 6d83528..9a9cef0 100644
--- a/pyecsca/sca/attack/CPA.py
+++ b/pyecsca/sca/attack/CPA.py
@@ -20,6 +20,7 @@ class CPA():
mult: ScalarMultiplier
params: DomainParameters
leakage_model: LeakageModel
+ correlations: dict[str, list[list[float]]]
def __init__(self, points: list[Point], traces: list[Trace], leakage_model: LeakageModel, mult: ScalarMultiplier, params: DomainParameters):
'''
@@ -57,7 +58,7 @@ class CPA():
for trace in self.traces:
correlation_trace.append(pearsonr(intermediate_values, trace)[0])
return correlation_trace
-
+
def plot_correlations(self, ct):
return plot_trace(Trace(np.array(ct))).opts(width=950, height=600)