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

#include <UT_BlowfishIO.h>

+ Inheritance diagram for UT_BlowfishEncryptFilter:

Public Member Functions

 UT_BlowfishEncryptFilter (const uint8 *key_bytes, int key_size)
 constructor and destructor. More...
 
 ~UT_BlowfishEncryptFilter () override
 
int getDataChunkLength (int buffer_size) override
 
int beginFilter (char *buffer, int buffer_size, int stream_size) override
 
int doFilterChunk (char *buffer, int data_size, int buffer_size) override
 Performs the encryption of the data in the buffer. More...
 
int endFilter (char *buffer, int buffer_size) override
 
virtual int64 getMemoryUsage (bool inclusive) const
 Gets the amount of memory owned by this UT_BlowfishEncryptFilter. More...
 
- Public Member Functions inherited from UT_StreamBufferFilter
 UT_StreamBufferFilter ()=default
 
virtual ~UT_StreamBufferFilter ()=default
 
 UT_StreamBufferFilter (const UT_StreamBufferFilter &)=delete
 
UT_StreamBufferFilteroperator= (const UT_StreamBufferFilter &)=delete
 

Static Public Member Functions

static int getFilteredSize (int original_size)
 

Detailed Description

Definition at line 22 of file UT_BlowfishIO.h.

Constructor & Destructor Documentation

UT_BlowfishEncryptFilter::UT_BlowfishEncryptFilter ( const uint8 key_bytes,
int  key_size 
)

constructor and destructor.

UT_BlowfishEncryptFilter::~UT_BlowfishEncryptFilter ( )
override

Member Function Documentation

int UT_BlowfishEncryptFilter::beginFilter ( char *  buffer,
int  buffer_size,
int  stream_size 
)
overridevirtual

Writes out the length of the original stream to the buffer. It is used when decrypting.

Reimplemented from UT_StreamBufferFilter.

int UT_BlowfishEncryptFilter::doFilterChunk ( char *  buffer,
int  data_size,
int  buffer_size 
)
overridevirtual

Performs the encryption of the data in the buffer.

Implements UT_StreamBufferFilter.

int UT_BlowfishEncryptFilter::endFilter ( char *  buffer,
int  buffer_size 
)
overridevirtual

Writes out any remaining ciphertext that has not been written out yet, and concludes encryption.

Reimplemented from UT_StreamBufferFilter.

int UT_BlowfishEncryptFilter::getDataChunkLength ( int  buffer_size)
overridevirtual

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

Gets the amount of memory owned by this UT_BlowfishEncryptFilter.


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