Pol
Revision:cb584c9
|
Go to the source code of this file.
Classes | |
struct | Pol::Crypt::tagcipherInstance |
struct | Pol::Crypt::tagkeyInstance |
class | Pol::Crypt::TwoFish |
Namespaces | |
Pol | |
Pol::Crypt | |
Macros | |
#define | _b(x, N) ( ( (unsigned char*)&x )[( (N)&3 ) ^ 0] ) |
#define | Bswap(x) ( x ) |
#define | LFSR1(x) ( ( ( x ) >> 1 ) ^ ( ( (x)&0x01 ) ? 0x169 / 2 : 0 ) ) |
#define | LFSR2(x) ( ( ( x ) >> 2 ) ^ ( ( (x)&0x02 ) ? 0x169 / 2 : 0 ) ^ ( ( (x)&0x01 ) ? 0x169 / 4 : 0 ) ) |
#define | M00 Mul_1 |
#define | M01 Mul_Y |
#define | M02 Mul_X |
#define | M03 Mul_X |
#define | M10 Mul_X |
#define | M11 Mul_Y |
#define | M12 Mul_Y |
#define | M13 Mul_1 |
#define | M20 Mul_Y |
#define | M21 Mul_X |
#define | M22 Mul_1 |
#define | M23 Mul_Y |
#define | M30 Mul_Y |
#define | M31 Mul_1 |
#define | M32 Mul_Y |
#define | M33 Mul_X |
#define | Mul_1 Mx_1 |
#define | Mul_X Mx_X |
#define | Mul_Y Mx_Y |
#define | Mx_1(x) ( (unsigned int)( x ) ) |
#define | Mx_X(x) ( (unsigned int)( ( x ) ^ LFSR2( x ) ) ) |
#define | Mx_Y(x) ( (unsigned int)( ( x ) ^ LFSR1( x ) ^ LFSR2( x ) ) ) |
#define | p8(N) P8x8[P_##N] |
#define | P_00 1 |
#define | P_01 0 |
#define | P_02 0 |
#define | P_03 ( P_01 ^ 1 ) |
#define | P_04 1 |
#define | P_10 0 |
#define | P_11 0 |
#define | P_12 1 |
#define | P_13 ( P_11 ^ 1 ) |
#define | P_14 0 |
#define | P_20 1 |
#define | P_21 1 |
#define | P_22 0 |
#define | P_23 ( P_21 ^ 1 ) |
#define | P_24 0 |
#define | P_30 0 |
#define | P_31 1 |
#define | P_32 1 |
#define | P_33 ( P_31 ^ 1 ) |
#define | P_34 1 |
#define | ROL(x, n) ( ( ( x ) << ( (n)&0x1F ) ) | ( ( x ) >> ( 32 - ( (n)&0x1F ) ) ) ) |
#define | ROR(x, n) ( ( ( x ) >> ( (n)&0x1F ) ) | ( ( x ) << ( 32 - ( (n)&0x1F ) ) ) ) |
#define | RS_rem(x) |
Typedefs | |
typedef struct Pol::Crypt::tagcipherInstance | Pol::Crypt::CipherInstance |
typedef struct Pol::Crypt::tagkeyInstance | Pol::Crypt::KeyInstance |
#define _b | ( | x, | |
N | |||
) | ( ( (unsigned char*)&x )[( (N)&3 ) ^ 0] ) |
Definition at line 129 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define Bswap | ( | x | ) | ( x ) |
Definition at line 128 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::BlockEncrypt(), Pol::Crypt::TwoFish::CipherInit(), and Pol::Crypt::TwoFish::F32().
#define LFSR1 | ( | x | ) | ( ( ( x ) >> 1 ) ^ ( ( (x)&0x01 ) ? 0x169 / 2 : 0 ) ) |
#define LFSR2 | ( | x | ) | ( ( ( x ) >> 2 ) ^ ( ( (x)&0x02 ) ? 0x169 / 2 : 0 ) ^ ( ( (x)&0x01 ) ? 0x169 / 4 : 0 ) ) |
#define M00 Mul_1 |
Definition at line 87 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M01 Mul_Y |
Definition at line 88 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M02 Mul_X |
Definition at line 89 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M03 Mul_X |
Definition at line 90 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M10 Mul_X |
Definition at line 91 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M11 Mul_Y |
Definition at line 92 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M12 Mul_Y |
Definition at line 93 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M13 Mul_1 |
Definition at line 94 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M20 Mul_Y |
Definition at line 95 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M21 Mul_X |
Definition at line 96 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M22 Mul_1 |
Definition at line 97 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M23 Mul_Y |
Definition at line 98 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M30 Mul_Y |
Definition at line 99 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M31 Mul_1 |
Definition at line 100 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M32 Mul_Y |
Definition at line 101 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define M33 Mul_X |
Definition at line 102 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define p8 | ( | N | ) | P8x8[P_##N] |
Definition at line 72 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::F32().
#define ROL | ( | x, | |
n | |||
) | ( ( ( x ) << ( (n)&0x1F ) ) | ( ( x ) >> ( 32 - ( (n)&0x1F ) ) ) ) |
Definition at line 126 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::BlockEncrypt(), and Pol::Crypt::TwoFish::ReKey().
#define ROR | ( | x, | |
n | |||
) | ( ( ( x ) >> ( (n)&0x1F ) ) | ( ( x ) << ( 32 - ( (n)&0x1F ) ) ) ) |
Definition at line 127 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::BlockEncrypt().
#define RS_rem | ( | x | ) |
Definition at line 73 of file twofish.h.
Referenced by Pol::Crypt::TwoFish::RS_MDS_Encode().