Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SamKarkache committed Apr 17, 2024
2 parents 9567503 + 279da04 commit 66c5f64
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion WPI_SCA_LIBRARY/DPA.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def calculate_dpa(traces, iv, order=1, key_guess=0, window_size_fma=5, num_of_tr
return cpa_output, guess_corr, guess

if order == 2:
traces = traces[:, 0:4000]
if num_of_traces != 0:
fma = calculate_window_averages(traces, window_size=window_size_fma)
traces = np.array(fma[0:num_of_traces])
Expand Down

0 comments on commit 66c5f64

Please sign in to comment.