|
Pol
Rev 533
|
#include <crypt.h>
Inheritance diagram for CCryptBlowfishTwofish:
Collaboration diagram for CCryptBlowfishTwofish:Public Member Functions | |
| CCryptBlowfishTwofish () | |
| CCryptBlowfishTwofish (unsigned int masterKey1, unsigned int masterKey2) | |
| ~CCryptBlowfishTwofish () | |
| 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 | |
| BlowFish | bfish |
| TwoFish | tfish |
Protected Member Functions | |
| void | Decrypt (void *pvIn, void *pvOut, int len) |
| CCryptBlowfishTwofish::CCryptBlowfishTwofish | ( | unsigned int | masterKey1, |
| unsigned int | masterKey2 | ||
| ) |
Definition at line 175 of file crypt.cpp.
References SetMasterKeys().
Here is the call graph for this function:| void CCryptBlowfishTwofish::Decrypt | ( | void * | pvIn, |
| void * | pvOut, | ||
| int | len | ||
| ) | [protected, virtual] |
Implements CCryptBaseCrypt.
Definition at line 210 of file crypt.cpp.
References bfish, CRYPT_AUTO_VALUE, LoginCrypt::Decrypt(), BlowFish::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 CCryptBlowfishTwofish::Init | ( | void * | pvSeed, |
| int | type = CCryptBase::typeAuto |
||
| ) | [virtual] |
Implements CCryptBase.
Definition at line 199 of file crypt.cpp.
References bfish, LoginCrypt::Init(), BlowFish::Init(), TwoFish::Init(), CCryptBaseCrypt::lcrypt, CCryptBaseCrypt::m_masterKey, CCryptBaseCrypt::m_type, and tfish.
Here is the call graph for this function:| int CCryptBlowfishTwofish::Receive | ( | void * | buffer, |
| int | max_expected, | ||
| SOCKET | socket | ||
| ) | [virtual] |
Implements CCryptBase.
Definition at line 180 of file crypt.cpp.
References Decrypt(), CCryptBaseCrypt::encrypted_data, MAXBUFFER, passert, and passert_always.
Here is the call graph for this function:| void CCryptBlowfishTwofish::SetMasterKeys | ( | unsigned int | masterKey1, |
| unsigned int | masterKey2 | ||
| ) | [virtual] |
Implements CCryptBaseCrypt.
Definition at line 193 of file crypt.cpp.
References CCryptBaseCrypt::m_masterKey.
Referenced by CCryptBlowfishTwofish().
Here is the caller graph for this function: