#include "pch.h"
#include "twofish.h"
#include "secblock.h"
#include "misc.h"
Go to the source code of this file.
|
#define | Q(a, b, c, d, t) q[a][GETBYTE(t,0)] ^ (q[b][GETBYTE(t,1)] << 8) ^ (q[c][GETBYTE(t,2)] << 16) ^ (q[d][GETBYTE(t,3)] << 24) |
|
#define | G1(x) (m_s[0*256+GETBYTE(x,0)] ^ m_s[1*256+GETBYTE(x,1)] ^ m_s[2*256+GETBYTE(x,2)] ^ m_s[3*256+GETBYTE(x,3)]) |
|
#define | G2(x) (m_s[0*256+GETBYTE(x,3)] ^ m_s[1*256+GETBYTE(x,0)] ^ m_s[2*256+GETBYTE(x,1)] ^ m_s[3*256+GETBYTE(x,2)]) |
|
#define | ENCROUND(n, a, b, c, d) |
|
#define | ENCCYCLE(n) |
|
#define | DECROUND(n, a, b, c, d) |
|
#define | DECCYCLE(n) |
|
Value:
#define DECROUND(n, a, b, c, d)
Definition at line 105 of file twofish.cpp.
#define DECROUND |
( |
|
n, |
|
|
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| |
Value: (
d) ^= y + k[2 * (n) + 1]; \
T rotlFixed(T x, unsigned int y)
Performs a left rotate.
T rotrFixed(T x, unsigned int y)
Performs a right rotate.
Definition at line 97 of file twofish.cpp.
Value:
#define ENCROUND(n, a, b, c, d)
Definition at line 93 of file twofish.cpp.
#define ENCROUND |
( |
|
n, |
|
|
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| |
Value: x += y; y +=
x + k[2 * (n) + 1]; \
T rotlFixed(T x, unsigned int y)
Performs a left rotate.
T rotrFixed(T x, unsigned int y)
Performs a right rotate.
Definition at line 86 of file twofish.cpp.