#include <UT_BlowfishIO.h>

Public Member Functions | |
| UT_BlowfishEncryptFilter (const uint8 *key_bytes, int key_size) | |
| constructor and destructor. | |
| virtual | ~UT_BlowfishEncryptFilter () |
| virtual int | getDataChunkLength (int buffer_size) |
| virtual int | beginFilter (char *buffer, int buffer_size, int stream_size) |
| virtual int | doFilterChunk (char *buffer, int data_size, int buffer_size) |
| Performs the encryption of the data in the buffer. | |
| virtual int | endFilter (char *buffer, int buffer_size) |
Static Public Member Functions | |
| static int | getFilteredSize (int original_size) |
Definition at line 30 of file UT_BlowfishIO.h.
| UT_BlowfishEncryptFilter::UT_BlowfishEncryptFilter | ( | const uint8 * | key_bytes, | |
| int | key_size | |||
| ) |
constructor and destructor.
| virtual UT_BlowfishEncryptFilter::~UT_BlowfishEncryptFilter | ( | ) | [virtual] |
| virtual int UT_BlowfishEncryptFilter::beginFilter | ( | char * | buffer, | |
| int | buffer_size, | |||
| int | stream_size | |||
| ) | [virtual] |
Writes out the length of the original stream to the buffer. It is used when decrypting.
Reimplemented from UT_StreamBufferFilter.
| virtual int UT_BlowfishEncryptFilter::doFilterChunk | ( | char * | buffer, | |
| int | data_size, | |||
| int | buffer_size | |||
| ) | [virtual] |
| virtual int UT_BlowfishEncryptFilter::endFilter | ( | char * | buffer, | |
| int | buffer_size | |||
| ) | [virtual] |
Writes out any remaining ciphertext that has not been written out yet, and concludes encryption.
Reimplemented from UT_StreamBufferFilter.
| virtual int UT_BlowfishEncryptFilter::getDataChunkLength | ( | int | buffer_size | ) | [virtual] |
This method returns the the maximum input size (no larger than the specified buffer size) with which the filter can work, given the buffer size.
Reimplemented from UT_StreamBufferFilter.
| static int UT_BlowfishEncryptFilter::getFilteredSize | ( | int | original_size | ) | [static] |
1.5.9