From 88dc89b3824d3c196fab1899aac2892c39de8566 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sat, 16 Dec 2023 18:26:23 +0100 Subject: Fix typing. --- pyecsca/sca/attack/CPA.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2