|
Pol
Rev 533
|
#include <blowfish.h>
Public Member Functions | |
| BlowFish () | |
| ~BlowFish () | |
| void | Decrypt (unsigned char *in, unsigned char *out, int len) |
| void | Init () |
Protected Member Functions | |
| void | InitTables () |
| 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 12 of file blowfish.h.
Definition at line 291 of file blowfish.cpp.
Definition at line 294 of file blowfish.cpp.
| void BlowFish::Decrypt | ( | unsigned char * | in, |
| unsigned char * | out, | ||
| int | len | ||
| ) |
Definition at line 311 of file blowfish.cpp.
References block_pos, CRYPT_GAMESEED_LENGTH, CRYPT_GAMETABLE_MODULO, CRYPT_GAMETABLE_STEP, CRYPT_GAMETABLE_TRIGGER, game_seed, L2N, N2L, RawDecrypt(), seed_table, stream_pos, and table_index.
Referenced by CCryptBlowfish::Decrypt(), CCryptBlowfishOld::Decrypt(), CCrypt12536::Decrypt(), and CCryptBlowfishTwofish::Decrypt().
Here is the call graph for this function:
Here is the caller graph for this function:| void BlowFish::Init | ( | ) |
Definition at line 300 of file blowfish.cpp.
References block_pos, CRYPT_GAMESEED_LENGTH, CRYPT_GAMETABLE_START, game_seed, InitTables(), seed_table, stream_pos, table_index, and tables_ready.
Referenced by CCryptBlowfish::Init(), and CCryptBlowfishTwofish::Init().
Here is the call graph for this function:
Here is the caller graph for this function:| void BlowFish::InitTables | ( | ) | [protected] |
Definition at line 358 of file blowfish.cpp.
References CRYPT_GAMEKEY_COUNT, CRYPT_GAMEKEY_LENGTH, key_table, p_box, p_table, RawDecrypt(), s_box, s_table, and tables_ready.
Referenced by Init().
Here is the call graph for this function:
Here is the caller graph for this function:| void BlowFish::RawDecrypt | ( | unsigned int * | values, |
| int | table | ||
| ) | [protected] |
Definition at line 404 of file blowfish.cpp.
References p_table, ROUND, and s_table.
Referenced by Decrypt(), and InitTables().
Here is the caller graph for this function:int BlowFish::block_pos [protected] |
Definition at line 30 of file blowfish.h.
unsigned char BlowFish::game_seed[CRYPT_GAMESEED_LENGTH] [protected] |
Definition at line 28 of file blowfish.h.
int BlowFish::stream_pos [protected] |
Definition at line 31 of file blowfish.h.
int BlowFish::table_index [protected] |
Definition at line 29 of file blowfish.h.
bool BlowFish::tables_ready = false [static, protected] |
Definition at line 27 of file blowfish.h.
Referenced by Init(), and InitTables().