PandA-2024.02
documentation
tutorial_fpt_2017
intro
third
src
rho
rho.c
Go to the documentation of this file.
1
#include "Keccak.h"
2
3
static
unsigned
char
KeccakRhoOffsets
[
nrLanes
] = {
4
0,
5
1,
6
62,
7
28,
8
27,
9
36,
10
44,
11
6,
12
55,
13
20,
14
3,
15
10,
16
43,
17
25,
18
39,
19
41,
20
45,
21
15,
22
21,
23
8,
24
18,
25
2,
26
61,
27
56,
28
14
29
};
30
31
void
rho
(
UINT64
*
A
)
32
{
33
unsigned
int
x
, y;
34
35
for
(x=0; x<5; x++)
for
(y=0; y<5; y++)
36
A[
index
(x, y)] =
ROL64
(A[
index
(x, y)],
KeccakRhoOffsets
[
index
(x, y)]);
37
}
38
39
ROL64
#define ROL64(a, offset)
Definition:
Keccak.c:75
A
#define A
Definition:
generate.c:13
index
#define index(x, y)
Definition:
Keccak.c:74
UINT64
unsigned long long int UINT64
Definition:
Keccak.c:13
nrLanes
#define nrLanes
Definition:
Keccak.c:45
KeccakRhoOffsets
static unsigned char KeccakRhoOffsets[nrLanes]
Definition:
rho.c:3
rho
void rho(UINT64 *A)
Definition:
rho.c:31
x
x
Return the smallest n such that 2^n >= _x.
Definition:
math_function.hpp:170
Generated on Mon Feb 12 2024 13:02:48 for PandA-2024.02 by
1.8.13