pyecsca.sca.ttest module

pyecsca.sca.ttest.welch_ttest(first_set, second_set)[source]

Perform the Welch’s t-test sample wise on two sets of traces first_set and second_set. Useful for Test Vector Leakage Analysis (TVLA).

Parameters:
  • first_set (Sequence[Trace]) –
  • second_set (Sequence[Trace]) –
Return type:

Optional[CombinedTrace]

Returns:

Welch’s t-values (samplewise)

pyecsca.sca.ttest.student_ttest(first_set, second_set)[source]

Perform the Students’s t-test sample wise on two sets of traces first_set and second_set. Useful for Test Vector Leakage Analysis (TVLA).

Parameters:
  • first_set (Sequence[Trace]) –
  • second_set (Sequence[Trace]) –
Return type:

Optional[CombinedTrace]

Returns:

Student’s t-values (samplewise)