Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
BlowfishEngine Class Reference

#include <blowfish.h>

Public Types

enum  { MAX_KEY_LENGTH =56 }
 
enum  { MAX_KEY_LENGTH =56 , BYTES_PER_BLOCK =8 }
 

Public Member Functions

 BlowfishEngine (void)
 
 ~BlowfishEngine (void)
 
void Submit_Key (void const *key, int length)
 
int Encrypt (void const *plaintext, int length, void *cyphertext)
 
int Decrypt (void const *cyphertext, int length, void *plaintext)
 
 BlowfishEngine (void)
 
 ~BlowfishEngine (void)
 
void Submit_Key (void const *key, int length)
 
int Encrypt (void const *plaintext, int length, void *cyphertext)
 
int Decrypt (void const *cyphertext, int length, void *plaintext)
 

Detailed Description

Definition at line 63 of file blowfish.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_KEY_LENGTH 

Definition at line 68 of file BFISH.H.

◆ anonymous enum

anonymous enum
Enumerator
MAX_KEY_LENGTH 

Definition at line 76 of file blowfish.h.

Constructor & Destructor Documentation

◆ BlowfishEngine() [1/2]

BlowfishEngine::BlowfishEngine ( void )
inline

Definition at line 65 of file blowfish.h.

◆ ~BlowfishEngine() [1/2]

BlowfishEngine::~BlowfishEngine ( void )

Definition at line 81 of file blowfish.cpp.

◆ BlowfishEngine() [2/2]

BlowfishEngine::BlowfishEngine ( void )
inline

Definition at line 57 of file BFISH.H.

◆ ~BlowfishEngine() [2/2]

BlowfishEngine::~BlowfishEngine ( void )

Member Function Documentation

◆ Decrypt() [1/2]

int BlowfishEngine::Decrypt ( void const * cyphertext,
int length,
void * plaintext )

Definition at line 279 of file blowfish.cpp.

◆ Decrypt() [2/2]

int BlowfishEngine::Decrypt ( void const * cyphertext,
int length,
void * plaintext )

◆ Encrypt() [1/2]

int BlowfishEngine::Encrypt ( void const * plaintext,
int length,
void * cyphertext )

Definition at line 213 of file blowfish.cpp.

◆ Encrypt() [2/2]

int BlowfishEngine::Encrypt ( void const * plaintext,
int length,
void * cyphertext )

◆ Submit_Key() [1/2]

void BlowfishEngine::Submit_Key ( void const * key,
int length )

Definition at line 113 of file blowfish.cpp.

◆ Submit_Key() [2/2]

void BlowfishEngine::Submit_Key ( void const * key,
int length )

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