|
EvEmu
0.8.4
11 September 2021
|
Sha1 module for username + password hashes. More...
#include "ShaModule.h"
Classes | |
| struct | SHAobject |
Public Types | |
| typedef uint8 | SHA_BYTE |
| typedef uint32 | SHA_INT32 |
Static Public Member Functions | |
| static void | longReverse (SHA_INT32 *buffer, int byteCount, int Endianness) |
| static void | SHAcopy (SHAobject *src, SHAobject *dest) |
| static void | sha_transform (SHAobject *sha_info) |
| static void | sha_init (SHAobject *sha_info) |
| static void | sha_update (SHAobject *sha_info, const SHA_BYTE *buffer, int count) |
| static void | sha_update (SHAobject *sha_info, const std::wstring &value) |
| static void | sha_final (unsigned char digest[20], SHAobject *sha_info) |
| static void | sha_digest (SHAobject *self, uint8 *digest) |
| static void | sha_digest (SHAobject *self, std::string &digest) |
| static std::string | Hexify (const char *data, size_t len) |
| static std::string | SHA_hexdigest (SHAobject *self) |
Sha1 module for username + password hashes.
Definition at line 38 of file ShaModule.h.
| typedef uint8 ShaModule::SHA_BYTE |
Definition at line 60 of file ShaModule.h.
| typedef uint32 ShaModule::SHA_INT32 |
Definition at line 61 of file ShaModule.h.
|
inlinestatic |
Hexify is a small until function to do a simple convention to hex representation.
| [in] | data | the char array that contains the data |
| [in] | len | the length of data |
Definition at line 391 of file ShaModule.h.
|
inlinestatic |
Definition at line 81 of file ShaModule.h.
References PCT_BIG_ENDIAN.
Referenced by sha_transform().

Definition at line 363 of file ShaModule.h.
References sha_final(), and SHAcopy().
Referenced by PasswordModule::GeneratePassHash().


|
inlinestatic |
Definition at line 373 of file ShaModule.h.
References SHA_DIGESTSIZE, sha_final(), and SHAcopy().

|
inlinestatic |
Definition at line 309 of file ShaModule.h.
References ShaModule::SHAobject::count_hi, ShaModule::SHAobject::count_lo, ShaModule::SHAobject::data, ShaModule::SHAobject::digest, SHA_BLOCKSIZE, and sha_transform().
Referenced by PasswordModule::GeneratePassHash(), sha_digest(), and SHA_hexdigest().


|
inlinestatic |
Definition at line 412 of file ShaModule.h.
References SHA_DIGESTSIZE, sha_final(), and SHAcopy().

|
inlinestatic |
Definition at line 245 of file ShaModule.h.
References ShaModule::SHAobject::count_hi, ShaModule::SHAobject::count_lo, ShaModule::SHAobject::digest, ShaModule::SHAobject::Endianness, ShaModule::SHAobject::local, and TestEndianness.
Referenced by PasswordModule::GeneratePassHash().

|
inlinestatic |
Definition at line 184 of file ShaModule.h.
References ShaModule::SHAobject::data, ShaModule::SHAobject::digest, EvE::Trig::E, ShaModule::SHAobject::Endianness, FA, FB, FC, FD, FE, FG, FT, longReverse(), and R32.
Referenced by sha_final(), and sha_update().


|
inlinestatic |
Definition at line 261 of file ShaModule.h.
References ShaModule::SHAobject::count_hi, ShaModule::SHAobject::count_lo, ShaModule::SHAobject::data, ShaModule::SHAobject::local, SHA_BLOCKSIZE, and sha_transform().
Referenced by PasswordModule::GeneratePassHash(), and sha_update().


|
inlinestatic |
Definition at line 299 of file ShaModule.h.
References sha_update().

Definition at line 97 of file ShaModule.h.
References ShaModule::SHAobject::count_hi, ShaModule::SHAobject::count_lo, ShaModule::SHAobject::data, ShaModule::SHAobject::digest, ShaModule::SHAobject::Endianness, and ShaModule::SHAobject::local.
Referenced by sha_digest(), and SHA_hexdigest().
