UT_BlowfishStreamDecryptor Class Reference

#include <UT_BlowfishIO.h>

List of all members.

Public Member Functions

 UT_BlowfishStreamDecryptor (const uint8 *key, int key_length)
 ~UT_BlowfishStreamDecryptor ()
bool decrypt (const uint8 *input, uint8 *output, int input_size)

Static Public Member Functions

static int getEncryptedSize (int plain_text_size)
 Wrapper for UT_Blowfish::getEncryptionOutputSize().
static int getCryptBufferSize (int max_buffer_size)
 Wrapper for UT_Blowfish::getCryptBufferSize().
static int getBlockSize ()
 Wrapper for UT_Blowfish::getBlockSize().
static int getPreambleSize ()
static bool getVersion (const char *preamble, int preamble_length, int &version)
 Obtains the blowfish algorithm version used for the stream.
static bool getPlainTextLength (const char *preamble, int preamble_length, int64 &length)
 Obtains the plain-text length that is encoded in the cipher.


Detailed Description

Definition at line 64 of file UT_BlowfishIO.h.


Constructor & Destructor Documentation

UT_BlowfishStreamDecryptor::UT_BlowfishStreamDecryptor ( const uint8 key,
int  key_length 
)

UT_BlowfishStreamDecryptor::~UT_BlowfishStreamDecryptor (  ) 


Member Function Documentation

bool UT_BlowfishStreamDecryptor::decrypt ( const uint8 input,
uint8 output,
int  input_size 
)

Decrypts the input buffer into output buffer. See UT_Blowfish::decrypt() for details.

static int UT_BlowfishStreamDecryptor::getBlockSize (  )  [static]

static int UT_BlowfishStreamDecryptor::getCryptBufferSize ( int  max_buffer_size  )  [static]

static int UT_BlowfishStreamDecryptor::getEncryptedSize ( int  plain_text_size  )  [static]

static bool UT_BlowfishStreamDecryptor::getPlainTextLength ( const char *  preamble,
int  preamble_length,
int64 length 
) [static]

Obtains the plain-text length that is encoded in the cipher.

static int UT_BlowfishStreamDecryptor::getPreambleSize (  )  [static]

Gets the preamble size. The pramble contains some meta-data such as plain-text size, encryption version, and magic number.

static bool UT_BlowfishStreamDecryptor::getVersion ( const char *  preamble,
int  preamble_length,
int &  version 
) [static]

Obtains the blowfish algorithm version used for the stream.


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

Generated on Fri May 25 00:10:46 2012 for HDK by  doxygen 1.5.9