#include <sha1.h>
◆ SHA1()
◆ ~SHA1()
◆ addBytes() [1/2]
void SHA1::addBytes |
( |
const char * | data, |
|
|
Uint32 | num ) |
References bytes, process(), size, and unprocessedBytes.
Referenced by addBytes(), Server::addMediaFile(), IClientMediaDownloader::checkAndLoad(), getDigest(), Client::handleCommand_MediaPush(), ModApiUtil::l_sha1(), TestMapSettingsManager::testMapSettingsManager(), and translate_password().
◆ addBytes() [2/2]
void SHA1::addBytes |
( |
std::string_view | data | ) |
|
|
inline |
◆ getDigest() [1/2]
std::string SHA1::getDigest |
( |
| ) |
|
|
inline |
◆ getDigest() [2/2]
void SHA1::getDigest |
( |
unsigned char * | to | ) |
|
References addBytes(), H0, H1, H2, H3, H4, size, storeBigEndianUint32(), and unprocessedBytes.
Referenced by Server::addMediaFile(), IClientMediaDownloader::checkAndLoad(), Client::handleCommand_MediaPush(), ModApiUtil::l_sha1(), TestMapSettingsManager::testMapSettingsManager(), and translate_password().
◆ hexPrinter()
void SHA1::hexPrinter |
( |
unsigned char * | c, |
|
|
int | l ) |
|
static |
◆ lrot()
◆ process()
◆ storeBigEndianUint32()
void SHA1::storeBigEndianUint32 |
( |
unsigned char * | byte, |
|
|
Uint32 | num ) |
|
static |
◆ bytes
unsigned char SHA1::bytes[64] |
|
private |
◆ H0
◆ H1
◆ H2
◆ H3
◆ H4
◆ size
◆ unprocessedBytes
Uint32 SHA1::unprocessedBytes = 0 |
|
private |
The documentation for this class was generated from the following files: