Pol  Revision:cb584c9
Pol::Crypt::BlowFish Class Reference

#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
 

Detailed Description

Definition at line 15 of file blowfish.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void Pol::Crypt::BlowFish::InitTables ( )
staticprotected

Definition at line 337 of file blowfish.cpp.

References CRYPT_GAMEKEY_COUNT, CRYPT_GAMEKEY_LENGTH, RawDecrypt(), and tables_ready.

Referenced by Init().

void Pol::Crypt::BlowFish::RawDecrypt ( unsigned int *  values,
int  table 
)
staticprotected

Definition at line 383 of file blowfish.cpp.

References ROUND.

Referenced by Decrypt(), and InitTables().

Member Data Documentation

int Pol::Crypt::BlowFish::block_pos
protected

Definition at line 32 of file blowfish.h.

Referenced by Decrypt(), and Init().

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

Definition at line 30 of file blowfish.h.

Referenced by BlowFish(), Decrypt(), and Init().

int Pol::Crypt::BlowFish::stream_pos
protected

Definition at line 33 of file blowfish.h.

Referenced by Decrypt(), and Init().

int Pol::Crypt::BlowFish::table_index
protected

Definition at line 31 of file blowfish.h.

Referenced by Decrypt(), and Init().

bool Pol::Crypt::BlowFish::tables_ready = false
staticprotected

Definition at line 29 of file blowfish.h.

Referenced by Init(), and InitTables().


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