forked from CryptoExperts/EC17-software-masking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mode.h
98 lines (72 loc) · 2.07 KB
/
mode.h
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
#ifndef _MODE_H
#define _MODE_H
/*****************************************************************************/
/* */
/* PARAMETERS DEFINITION */
/* */
/*****************************************************************************/
/********************************/
/* */
/* FIELD MULTIPLICATION */
/* */
/********************************/
#define BINMULT1 10
#define BINMULT2 11
#define EXPLOG1 12
#define EXPLOG2 13
#define KARA 14
#define HALFTAB 15
#define FULLTAB 16
#define FULLTABSHIFT 17
#define EXPLOG2SHIFT 18
#define HALFTABSHIFT 19
/********************************/
/* */
/* PARALLELISATION LEVEL */
/* */
/********************************/
#define NORMAL 20
#define PARA2 21
#define PARA4 22
#define PARA8 23
#define BITSLICE 24
/********************************/
/* */
/* CIPHER CHOICE */
/* */
/********************************/
#define ANY 30
#define KHL 31
#define RP 32
/********************************/
/* */
/* REF CHOICE */
/* */
/********************************/
#define RF1 40
#define RF4 41
/********************************/
/* */
/* RANDOM CHOICE */
/* */
/********************************/
#define TRNG 50
#define C_RAND 51
/********************************/
/* */
/* TEST CHOICE */
/* */
/********************************/
#define TEST_FIELDMULT 10
#define TEST_SECMULT_CPRR 20
#define TEST_SECMULT_ISW 21
#define TEST_SECSBOX_RPAES 32
#define TEST_SECSBOX_KHLAES 33
#define TEST_SECSBOX_FOGPRESENT 34
#define TEST_SECSBOX_BSAES 35
#define TEST_SECSBOX_BSPRESENT 36
#define TEST_SECCIPHER_REGAES 40
#define TEST_SECCIPHER_REGPRESENT 41
#define TEST_SECCIPHER_BSAES 42
#define TEST_SECCIPHER_BSPRESENT 43
#endif /* _MODE_H */