diff options
Diffstat (limited to 'pyecsca')
| -rw-r--r-- | pyecsca/sca/attack/CPA.py | 3 |
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) |
