PandA-2024.02
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
+
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
+
Enumerations
a
b
c
d
f
g
i
m
n
o
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
+
Related Functions
a
b
c
e
f
h
i
l
o
p
r
s
t
u
v
w
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
q
r
s
t
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Enumerations
a
b
c
d
e
f
h
i
k
l
m
o
p
r
s
t
u
v
+
Enumerator
a
b
c
d
e
f
g
i
k
l
n
o
p
r
s
t
u
v
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
examples
crypto_designs
multi-keccak
src
theta
theta.c
Go to the documentation of this file.
1
#include "Keccak.h"
2
3
void
theta
(
UINT64
*
A
)
4
{
5
unsigned
int
x
, y;
6
UINT64
C
[5],
D
[5];
7
8
for
(x=0; x<5; x++) {
9
C[
x
] = 0;
10
for
(y=0; y<5; y++)
11
C[x] ^= A[
index
(x, y)];
12
}
13
for
(x=0; x<5; x++)
14
D[x] =
ROL64
(C[(x+1)%5], 1) ^ C[(x+4)%5];
15
for
(x=0; x<5; x++)
16
for
(y=0; y<5; y++)
17
A[
index
(x, y)] ^= D[
x
];
18
}
19
theta
void theta(UINT64 *A)
Definition:
theta.c:3
C
#define C
Definition:
generate.c:15
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
D
#define D
Definition:
generate.c:16
UINT64
unsigned long long int UINT64
Definition:
Keccak.c:13
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