PROLEAD
A Probing-Based Leakage Detection Tool for Hardware and Software
Loading...
Searching...
No Matches
Test.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <numeric>
5#include <omp.h>
6
7#include <boost/math/distributions/chi_squared.hpp>
8#include <boost/math/distributions/inverse_chi_squared.hpp>
9#include <boost/math/distributions/non_central_chi_squared.hpp>
10
12#include "Util/Util.hpp"
13
14namespace Hardware
15{
16 namespace Test
17 {
30 void CompactTableUpdate(Hardware::SimulationStruct&, unsigned int, Hardware::TestStruct&, std::vector<int>&);
31
39
52
61
69 int SearchKey(std::vector<std::vector<unsigned char>>&, std::vector<unsigned char>&, unsigned int);
70
80 }
81}
void NormalTableUpdate(Hardware::SimulationStruct &, Hardware::TestStruct &, Hardware::ProbingSetStruct &, std::vector< Util::TableEntryStruct > &)
Normal update of all contingency tables.
void CompactTableUpdate(Hardware::SimulationStruct &, unsigned int, Hardware::TestStruct &, std::vector< int > &)
Compact update of a single contingency table.
void CompactTest(Hardware::SimulationStruct &, Hardware::TestStruct &)
Adds the new simulations to the contingency tables in compact mode and computes a new g-value for eac...
void All(Hardware::SettingsStruct &, Hardware::SimulationStruct &, Hardware::TestStruct &, char)
Performs the full test procedure.
void NormalTest(Hardware::SettingsStruct &, Hardware::SimulationStruct &, Hardware::TestStruct &)
Adds the new simulations to the contingency tables in normal mode, computes a new g-value for each ta...
int SearchKey(std::vector< std::vector< unsigned char > > &, std::vector< unsigned char > &, unsigned int)
Searches for a particular probed state in a normal mode continagency table.
Defines a probing set.
Defines the settings of the evaluation procedure.
Defines all settings regarding simulations.
Defines all settings belonging to the test prodecure.