Pol
Revision:cb584c9
|
#include <blowfish.h>
Public Member Functions | |
BlowFish () | |
~BlowFish () | |
void | Decrypt (unsigned char *in, unsigned char *out, int len) |
void | Init () |
Static Protected Member Functions | |
static void | InitTables () |
static void | RawDecrypt (unsigned int *values, int table) |
Protected Attributes | |
int | block_pos |
unsigned char | game_seed [CRYPT_GAMESEED_LENGTH] |
int | stream_pos |
int | table_index |
Static Protected Attributes | |
static bool | tables_ready = false |
Definition at line 15 of file blowfish.h.
Pol::Crypt::BlowFish::BlowFish | ( | ) |
Definition at line 271 of file blowfish.cpp.
References game_seed.
Pol::Crypt::BlowFish::~BlowFish | ( | ) |
Definition at line 275 of file blowfish.cpp.
void Pol::Crypt::BlowFish::Decrypt | ( | unsigned char * | in, |
unsigned char * | out, | ||
int | len | ||
) |
Definition at line 290 of file blowfish.cpp.
References block_pos, CRYPT_GAMESEED_LENGTH, CRYPT_GAMETABLE_MODULO, CRYPT_GAMETABLE_STEP, CRYPT_GAMETABLE_TRIGGER, game_seed, L2N, N2L, RawDecrypt(), stream_pos, and table_index.
Referenced by Pol::Crypt::CCryptBlowfish::Decrypt(), Pol::Crypt::CCryptBlowfishOld::Decrypt(), Pol::Crypt::CCrypt12536::Decrypt(), and Pol::Crypt::CCryptBlowfishTwofish::Decrypt().
void Pol::Crypt::BlowFish::Init | ( | ) |
Definition at line 279 of file blowfish.cpp.
References block_pos, CRYPT_GAMESEED_LENGTH, CRYPT_GAMETABLE_START, game_seed, InitTables(), stream_pos, table_index, and tables_ready.
Referenced by Pol::Crypt::CCryptBlowfish::Init(), and Pol::Crypt::CCryptBlowfishTwofish::Init().
|
staticprotected |
Definition at line 337 of file blowfish.cpp.
References CRYPT_GAMEKEY_COUNT, CRYPT_GAMEKEY_LENGTH, RawDecrypt(), and tables_ready.
Referenced by Init().
|
staticprotected |
Definition at line 383 of file blowfish.cpp.
References ROUND.
Referenced by Decrypt(), and InitTables().
|
protected |
Definition at line 32 of file blowfish.h.
|
protected |
Definition at line 30 of file blowfish.h.
Referenced by BlowFish(), Decrypt(), and Init().
|
protected |
Definition at line 33 of file blowfish.h.
|
protected |
Definition at line 31 of file blowfish.h.
|
staticprotected |
Definition at line 29 of file blowfish.h.
Referenced by Init(), and InitTables().