BlowFish Class Reference

List of all members.

Detailed Description

BlowFish encryption class.


Public Member Functions

 BlowFish (const uint8 *keyData, int keyBytes)
 Creates an object that can encode/decode based on the specified key.
 BlowFish (const BlowFish &other)
 Creates a copy of another blowfish object.
const BlowFishoperator= (const BlowFish &other)
 Copies another blowfish object.
 ~BlowFish ()
 Destructor.
void encrypt (uint32 &data1, uint32 &data2) const
 Encrypts a pair of 32-bit integers.
void decrypt (uint32 &data1, uint32 &data2) const
 Decrypts a pair of 32-bit integers.


Constructor & Destructor Documentation

BlowFish::BlowFish const uint8 keyData,
int  keyBytes
 

Creates an object that can encode/decode based on the specified key.

The key data can be up to 72 bytes long.

BlowFish::BlowFish const BlowFish other  ) 
 

Creates a copy of another blowfish object.

BlowFish::~BlowFish  ) 
 

Destructor.


Member Function Documentation

const BlowFish& BlowFish::operator= const BlowFish other  ) 
 

Copies another blowfish object.

void BlowFish::encrypt uint32 data1,
uint32 data2
const
 

Encrypts a pair of 32-bit integers.

void BlowFish::decrypt uint32 data1,
uint32 data2
const
 

Decrypts a pair of 32-bit integers.


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