PandA-2024.02
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 
static unsigned char KeccakRhoOffsets[nrLanes]
Definition: rho.c:3
#define ROL64(a, offset)
Definition: Keccak.c:75
#define A
Definition: generate.c:13
#define index(x, y)
Definition: Keccak.c:74
unsigned long long int UINT64
Definition: Keccak.c:13
#define nrLanes
Definition: Keccak.c:45
void rho(UINT64 *A)
Definition: rho.c:31
x
Return the smallest n such that 2^n >= _x.

Generated on Mon Feb 12 2024 13:02:48 for PandA-2024.02 by doxygen 1.8.13