PandA-2024.02
chi.c
Go to the documentation of this file.
1 #include "Keccak.h"
2 
3 void chi(UINT64 *A)
4 {
5  unsigned int x, y;
6  UINT64 C[5];
7 
8  for(y=0; y<5; y++) {
9  for(x=0; x<5; x++)
10  C[x] = A[index(x, y)] ^ ((~A[index(x+1, y)]) & A[index(x+2, y)]);
11  for(x=0; x<5; x++)
12  A[index(x, y)] = C[x];
13  }
14 }
15 
16 
17 
#define C
Definition: generate.c:15
#define A
Definition: generate.c:13
#define index(x, y)
Definition: Keccak.c:74
unsigned long long int UINT64
Definition: Keccak.c:13
void chi(UINT64 *A)
Definition: chi.c:3
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