HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_BlowfishStreamDecryptor Class Reference

#include <UT_BlowfishIO.h>

Public Member Functions

 UT_BlowfishStreamDecryptor (const uint8 *key, int key_length)
 
 ~UT_BlowfishStreamDecryptor ()
 
 UT_BlowfishStreamDecryptor (const UT_BlowfishStreamDecryptor &)=delete
 
UT_BlowfishStreamDecryptor operator= (const UT_BlowfishStreamDecryptor &)=delete
 
bool decrypt (const uint8 *input, uint8 *output, int input_size)
 
int64 getMemoryUsage (bool inclusive) const
 Gets the amount of memory owned by this UT_BlowfishStreamDecryptor. More...
 

Static Public Member Functions

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

Detailed Description

Definition at line 61 of file UT_BlowfishIO.h.

Constructor & Destructor Documentation

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

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
int64 UT_BlowfishStreamDecryptor::getMemoryUsage ( bool  inclusive) const

Gets the amount of memory owned by this UT_BlowfishStreamDecryptor.

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.

UT_BlowfishStreamDecryptor UT_BlowfishStreamDecryptor::operator= ( const UT_BlowfishStreamDecryptor )
delete

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