PROLEAD
A Probing-Based Leakage Detection Tool for Hardware and Software
|
Defines a contingency table. More...
#include <Util.hpp>
Public Member Functions | |
void | CalculateTraces (int, double, double) |
Computes the required number of traces. | |
Public Attributes | |
std::vector< TableEntryStruct > | Entries |
Different entries of a contingency table, i.e. one entry per sample. | |
std::vector< std::vector< std::vector< std::vector< unsigned char > > > > | OnlyOneEntry |
Stores all entires that occurred only once. | |
double | Probability |
The false-positive probability computed with the G-test. | |
unsigned int | Traces |
The number of traces required to achieve a desired confidence level computed via statistical power analysis. | |
Defines a contingency table.
Defines the contingency table related to a probing set. Every contingency table encompasses a list of contingency table entries.
void Util::ContingencyTableStruct::CalculateTraces | ( | int | , |
double | , | ||
double | |||
) |
Computes the required number of traces.
Computes the number of traces required to achieve a pre-defined confidence level, i.e. false-negative probability.
NumberOfGroups | Number of user-defined groups. |
BetaThreshold | The pre-defined false-negative probability to achieve. |
EffectSize | The statistical effect size for which the false-negative probability should be achieved. |
std::vector<TableEntryStruct> Util::ContingencyTableStruct::Entries |
std::vector<std::vector<std::vector<std::vector<unsigned char> > > > Util::ContingencyTableStruct::OnlyOneEntry |
Stores all entires that occurred only once.
Temporary storage for all samples that occurred only once. To save memory, we create a new entry in the table only if the sample occurres multiple times. Hence, only the sample itself must be stored without corresponding counters. The structure is as follows:
double Util::ContingencyTableStruct::Probability |
unsigned int Util::ContingencyTableStruct::Traces |