aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/sca/trace/match.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca/sca/trace/match.py')
-rw-r--r--pyecsca/sca/trace/match.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyecsca/sca/trace/match.py b/pyecsca/sca/trace/match.py
index ba69026..3b4daed 100644
--- a/pyecsca/sca/trace/match.py
+++ b/pyecsca/sca/trace/match.py
@@ -32,6 +32,7 @@ def match_pattern(trace: Trace, pattern: Trace, threshold: float = 0.8) -> List[
filtered_peaks.append(peak - half)
return filtered_peaks
+
@public
def match_part(trace: Trace, offset: int, length: int) -> List[int]:
return match_pattern(trace, trim(trace, offset, offset + length))