PandA-2024.02
iota.c
Go to the documentation of this file.
1 #include "Keccak.h"
2 
3 #define GET_KRC_VAL(index) (KeccakRoundConstants[index])
4 
6  0x0000000000000001ULL,
7  0x0000000000008082ULL,
8  0x800000000000808aULL,
9  0x8000000080008000ULL,
10  0x000000000000808bULL,
11  0x0000000080000001ULL,
12  0x8000000080008081ULL,
13  0x8000000000008009ULL,
14  0x000000000000008aULL,
15  0x0000000000000088ULL,
16  0x0000000080008009ULL,
17  0x000000008000000aULL,
18  0x000000008000808bULL,
19  0x800000000000008bULL,
20  0x8000000000008089ULL,
21  0x8000000000008003ULL,
22  0x8000000000008002ULL,
23  0x8000000000000080ULL,
24  0x000000000000800aULL,
25  0x800000008000000aULL,
26  0x8000000080008081ULL,
27  0x8000000000008080ULL,
28  0x0000000080000001ULL,
29  0x8000000080008008ULL
30 };
31 
32 void iota(UINT64 *A, unsigned int indexRound)
33 {
34  A[index(0, 0)] ^= GET_KRC_VAL(indexRound);
35 }
36 
#define GET_KRC_VAL(index)
Definition: iota.c:3
void iota(UINT64 *A, unsigned int indexRound)
Definition: iota.c:32
#define A
Definition: generate.c:13
#define index(x, y)
Definition: Keccak.c:74
unsigned long long int UINT64
Definition: Keccak.c:13
#define nrRounds
Definition: Keccak.c:14
static UINT64 KeccakRoundConstants[nrRounds]
Definition: iota.c:5

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