|
C++ common classes
General purpose classes for use across projects (Apache license)
|
#include <CSporeEncrypt.h>
Public Member Functions | |
| CSporeEncrypt () | |
| virtual | ~CSporeEncrypt () |
Static Public Member Functions | |
| static void | BF_encrypt (const unsigned char *keydata, int keydatalen, unsigned char *in, unsigned char *out, unsigned int inlen) |
| Encrypt buffer. | |
| static void | BF_decrypt (const unsigned char *keydata, int keydatalen, unsigned char *in, unsigned char *out, unsigned int inlen) |
| Decrypt buffer. | |
Static Public Attributes | |
| static int | iKeySize = 0 |
| static unsigned char * | ucKey = NULL |
Static Protected Member Functions | |
| static void | GetKey () |
Definition at line 16 of file CSporeEncrypt.h.
Definition at line 14 of file CSporeEncrypt.cpp.
| CSporeEncrypt::~CSporeEncrypt | ( | ) | [virtual] |
Definition at line 19 of file CSporeEncrypt.cpp.
| void CSporeEncrypt::BF_decrypt | ( | const unsigned char * | keydata, |
| int | keydatalen, | ||
| unsigned char * | in, | ||
| unsigned char * | out, | ||
| unsigned int | inlen | ||
| ) | [static] |
Decrypt buffer.
Definition at line 69 of file CSporeEncrypt.cpp.
| void CSporeEncrypt::BF_encrypt | ( | const unsigned char * | keydata, |
| int | keydatalen, | ||
| unsigned char * | in, | ||
| unsigned char * | out, | ||
| unsigned int | inlen | ||
| ) | [static] |
Encrypt buffer.
Definition at line 57 of file CSporeEncrypt.cpp.
| void CSporeEncrypt::GetKey | ( | ) | [static, protected] |
Definition at line 25 of file CSporeEncrypt.cpp.
int CSporeEncrypt::iKeySize = 0 [static] |
Definition at line 31 of file CSporeEncrypt.h.
unsigned char * CSporeEncrypt::ucKey = NULL [static] |
Definition at line 32 of file CSporeEncrypt.h.