#include <UT_BlowfishIO.h>
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. | |
Definition at line 64 of file UT_BlowfishIO.h.
| UT_BlowfishStreamDecryptor::UT_BlowfishStreamDecryptor | ( | const uint8 * | key, | |
| int | key_length | |||
| ) |
| UT_BlowfishStreamDecryptor::~UT_BlowfishStreamDecryptor | ( | ) |
Decrypts the input buffer into output buffer. See UT_Blowfish::decrypt() for details.
| static int UT_BlowfishStreamDecryptor::getBlockSize | ( | ) | [static] |
Wrapper for UT_Blowfish::getBlockSize().
| static int UT_BlowfishStreamDecryptor::getCryptBufferSize | ( | int | max_buffer_size | ) | [static] |
Wrapper for UT_Blowfish::getCryptBufferSize().
| static int UT_BlowfishStreamDecryptor::getEncryptedSize | ( | int | plain_text_size | ) | [static] |
Wrapper for UT_Blowfish::getEncryptionOutputSize().
| 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.
1.5.9