-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattack_list.cpp
More file actions
121 lines (119 loc) · 3.48 KB
/
Copy pathattack_list.cpp
File metadata and controls
121 lines (119 loc) · 3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#include "attack.h"
#include "aes128/aes128_enum/aes128_enum.h"
#include "aes128/aes128_enum/aes128_enum_params.h"
#include "aes128/aes128_enum/aes128_enum_cost.h"
#include "aes128/aes128_enum/aes128_enum_prob.h"
#include "uniformmatrix/bruteforce/bruteforce.h"
#include "uniformmatrix/bruteforce/bruteforce_params.h"
#include "uniformmatrix/bruteforce/bruteforce_cost.h"
#include "uniformmatrix/bruteforce/bruteforce_prob.h"
#include "uniformmatrix/bruteforce2/bruteforce2.h"
#include "uniformmatrix/bruteforce2/bruteforce2_params.h"
#include "uniformmatrix/bruteforce2/bruteforce2_cost.h"
#include "uniformmatrix/bruteforce2/bruteforce2_prob.h"
#include "uniformmatrix/isd0/isd0.h"
#include "uniformmatrix/isd0/isd0_params.h"
#include "uniformmatrix/isd0/isd0_cost.h"
#include "uniformmatrix/isd0/isd0_prob.h"
#include "uniformmatrix/isd1/isd1.h"
#include "uniformmatrix/isd1/isd1_params.h"
#include "uniformmatrix/isd1/isd1_cost.h"
#include "uniformmatrix/isd1/isd1_prob.h"
#include "uniformmatrix/isd1_parallel/isd1_parallel.h"
#include "uniformmatrix/isd1_parallel/isd1_parallel_params.h"
#include "uniformmatrix/isd1_parallel/isd1_parallel_cost.h"
#include "uniformmatrix/isd1_parallel/isd1_parallel_depth.h"
#include "uniformmatrix/isd1_parallel/isd1_parallel_prob.h"
#include "uniformmatrix/isd2/isd2.h"
#include "uniformmatrix/isd2/isd2_params.h"
#include "uniformmatrix/isd2/isd2_cost.h"
#include "uniformmatrix/isd2/isd2_prob.h"
std::vector<attack> attack_list = {
// {
// name of the problem,
// name of the attack,
// function that performs the attack,
// validation function of the attack parameters,
// generation function of the attack parameters,
// cost function of attack,
// probability function of attack,
// depth function of attack,
// names of the attack parameters
// },
{
"aes128",
"aes128_enum",
aes128_enum, aes128_enum_params_valid,
aes128_enum_params,
aes128_enum_cost,
aes128_enum_prob,
aes128_enum_cost,
{"I","QX","QU","QF"}
},
{
"uniformmatrix",
"bruteforce",
bruteforce,
0,
bruteforce_params,
bruteforce_cost,
bruteforce_prob,
bruteforce_cost,
{"I"}
},
{
"uniformmatrix",
"bruteforce2",
bruteforce2,
0,
bruteforce2_params,
bruteforce2_cost,
bruteforce2_prob,
bruteforce2_cost,
{"I"}
},
{
"uniformmatrix",
"isd0",
isd0,
isd0_params_valid,
isd0_params,
isd0_cost,
isd0_prob,
isd0_cost,
{"I","RE","X","YX","P","L","Z","QU","QF","FW"}
},
{
"uniformmatrix",
"isd1",
isd1,
isd1_params_valid,
isd1_params,
isd1_cost,
isd1_prob,
isd1_cost,
{"I","RE","X","YX","PI","L","Z","QU","QF","WI","FW"}
},
{
"uniformmatrix",
"isd1_parallel",
isd1_parallel,
isd1_parallel_params_valid,
isd1_parallel_params,
isd1_parallel_cost,
isd1_parallel_prob,
isd1_parallel_depth,
{"I","RE","X","YX","PI","L","Z","QU","QF","WI","FW","PF"}
},
{
"uniformmatrix",
"isd2",
isd2,
isd2_params_valid,
isd2_params,
isd2_cost,
isd2_prob,
isd2_cost,
{"I","RE","X","YX","PIJ","PI","L0","L1","CP","CS","D","Z","QU0","QF0","WI0","QU1","QF1","WI1","FW"}
},
} ;