Pol  Rev 533
BlowFish Class Reference

#include <blowfish.h>

List of all members.

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

Detailed Description

Definition at line 12 of file blowfish.h.


Constructor & Destructor Documentation

Definition at line 291 of file blowfish.cpp.

Definition at line 294 of file blowfish.cpp.


Member Function Documentation

void BlowFish::Decrypt ( unsigned char *  in,
unsigned char *  out,
int  len 
)
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:


Member Data Documentation

int BlowFish::block_pos [protected]

Definition at line 30 of file blowfish.h.

Referenced by Decrypt(), and Init().

unsigned char BlowFish::game_seed[CRYPT_GAMESEED_LENGTH] [protected]

Definition at line 28 of file blowfish.h.

Referenced by Decrypt(), and Init().

int BlowFish::stream_pos [protected]

Definition at line 31 of file blowfish.h.

Referenced by Decrypt(), and Init().

int BlowFish::table_index [protected]

Definition at line 29 of file blowfish.h.

Referenced by Decrypt(), and Init().

bool BlowFish::tables_ready = false [static, protected]

Definition at line 27 of file blowfish.h.

Referenced by Init(), and InitTables().


The documentation for this class was generated from the following files: