|
Pol
Rev 533
|
#include <crypt.h>
Inheritance diagram for CCryptBlowfish:
Collaboration diagram for CCryptBlowfish:Public Types | |
| typedef CCryptBaseCrypt | base |
Public Member Functions | |
| CCryptBlowfish () | |
| CCryptBlowfish (unsigned int masterKey1, unsigned int masterKey2) | |
| ~CCryptBlowfish () | |
| virtual void | Init (void *pvSeed, int type=CCryptBase::typeAuto) |
| virtual int | Receive (void *buffer, int max_expected, SOCKET socket) |
| virtual void | SetMasterKeys (unsigned int masterKey1, unsigned int masterKey2) |
Public Attributes | |
| BlowFish | bfish |
Protected Member Functions | |
| virtual void | Decrypt (void *pvIn, void *pvOut, int len) |
| typedef CCryptBaseCrypt CCryptBlowfish::base |
| CCryptBlowfish::CCryptBlowfish | ( | unsigned int | masterKey1, |
| unsigned int | masterKey2 | ||
| ) |
Definition at line 38 of file crypt.cpp.
References SetMasterKeys().
Here is the call graph for this function:| void CCryptBlowfish::Decrypt | ( | void * | pvIn, |
| void * | pvOut, | ||
| int | len | ||
| ) | [protected, virtual] |
Implements CCryptBaseCrypt.
Reimplemented in CCrypt12536, and CCryptBlowfishOld.
Definition at line 72 of file crypt.cpp.
References bfish, CRYPT_AUTO_VALUE, LoginCrypt::Decrypt(), BlowFish::Decrypt(), CCryptBaseCrypt::lcrypt, LoginCrypt::lkey, CCryptBaseCrypt::m_type, 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 CCryptBlowfish::Init | ( | void * | pvSeed, |
| int | type = CCryptBase::typeAuto |
||
| ) | [virtual] |
Implements CCryptBase.
Definition at line 62 of file crypt.cpp.
References bfish, LoginCrypt::Init(), BlowFish::Init(), CCryptBaseCrypt::lcrypt, CCryptBaseCrypt::m_masterKey, and CCryptBaseCrypt::m_type.
Here is the call graph for this function:| int CCryptBlowfish::Receive | ( | void * | buffer, |
| int | max_expected, | ||
| SOCKET | socket | ||
| ) | [virtual] |
Implements CCryptBase.
Definition at line 43 of file crypt.cpp.
References Decrypt(), CCryptBaseCrypt::encrypted_data, MAXBUFFER, passert, and passert_always.
Here is the call graph for this function:| void CCryptBlowfish::SetMasterKeys | ( | unsigned int | masterKey1, |
| unsigned int | masterKey2 | ||
| ) | [virtual] |
Implements CCryptBaseCrypt.
Definition at line 56 of file crypt.cpp.
References CCryptBaseCrypt::m_masterKey.
Referenced by CCrypt12536::CCrypt12536(), CCryptBlowfish(), and CCryptBlowfishOld::CCryptBlowfishOld().
Here is the caller graph for this function:Definition at line 44 of file crypt.h.
Referenced by Decrypt(), CCryptBlowfishOld::Decrypt(), CCrypt12536::Decrypt(), and Init().