|
Pol
Rev 533
|
#include <crypt.h>
Inheritance diagram for CCryptTwofish:
Collaboration diagram for CCryptTwofish:Public Member Functions | |
| CCryptTwofish () | |
| CCryptTwofish (unsigned int masterKey1, unsigned int masterKey2) | |
| ~CCryptTwofish () | |
| void | Encrypt (void *pvIn, void *pvOut, int len) |
| void | Init (void *pvSeed, int type=CCryptBase::typeAuto) |
| int | Receive (void *buffer, int max_expected, SOCKET socket) |
| void | SetMasterKeys (unsigned int masterKey1, unsigned int masterKey2) |
Public Attributes | |
| MD5Crypt | md5 |
| TwoFish | tfish |
Protected Member Functions | |
| void | Decrypt (void *pvIn, void *pvOut, int len) |
| CCryptTwofish::CCryptTwofish | ( | unsigned int | masterKey1, |
| unsigned int | masterKey2 | ||
| ) |
Definition at line 242 of file crypt.cpp.
References SetMasterKeys().
Here is the call graph for this function:| void CCryptTwofish::Decrypt | ( | void * | pvIn, |
| void * | pvOut, | ||
| int | len | ||
| ) | [protected, virtual] |
Implements CCryptBaseCrypt.
Definition at line 285 of file crypt.cpp.
References CRYPT_AUTO_VALUE, LoginCrypt::Decrypt(), TwoFish::Decrypt(), CCryptBaseCrypt::lcrypt, LoginCrypt::lkey, CCryptBaseCrypt::m_type, tfish, CCryptBase::typeAuto, CCryptBase::typeGame, and CCryptBase::typeLogin.
Referenced by Receive().
Here is the call graph for this function:
Here is the caller graph for this function:| void CCryptTwofish::Encrypt | ( | void * | pvIn, |
| void * | pvOut, | ||
| int | len | ||
| ) | [virtual] |
Reimplemented from CCryptBase.
Definition at line 277 of file crypt.cpp.
References MD5Crypt::Encrypt(), and md5.
Here is the call graph for this function:| void CCryptTwofish::Init | ( | void * | pvSeed, |
| int | type = CCryptBase::typeAuto |
||
| ) | [virtual] |
Implements CCryptBase.
Definition at line 266 of file crypt.cpp.
References LoginCrypt::Init(), MD5Crypt::Init(), TwoFish::Init(), CCryptBaseCrypt::lcrypt, CCryptBaseCrypt::m_masterKey, CCryptBaseCrypt::m_type, md5, TwoFish::subData3, and tfish.
Here is the call graph for this function:| int CCryptTwofish::Receive | ( | void * | buffer, |
| int | max_expected, | ||
| SOCKET | socket | ||
| ) | [virtual] |
Implements CCryptBase.
Definition at line 247 of file crypt.cpp.
References Decrypt(), CCryptBaseCrypt::encrypted_data, MAXBUFFER, passert, and passert_always.
Here is the call graph for this function:| void CCryptTwofish::SetMasterKeys | ( | unsigned int | masterKey1, |
| unsigned int | masterKey2 | ||
| ) | [virtual] |
Implements CCryptBaseCrypt.
Definition at line 260 of file crypt.cpp.
References CCryptBaseCrypt::m_masterKey.
Referenced by CCryptTwofish().
Here is the caller graph for this function: