#include <sha1.h>
Public Member Functions | |
SHA1 () | |
~SHA1 () | |
void | addBytes (const char *data, Uint32 num) |
void | addBytes (std::string_view data) |
void | getDigest (unsigned char *to) |
std::string | getDigest () |
Static Public Member Functions | |
static Uint32 | lrot (Uint32 x, int bits) |
static void | storeBigEndianUint32 (unsigned char *byte, Uint32 num) |
static void | hexPrinter (unsigned char *c, int l) |
Private Member Functions | |
void | process () |
Private Attributes | |
Uint32 | H0 = 0x67452301 |
Uint32 | H1 = 0xefcdab89 |
Uint32 | H2 = 0x98badcfe |
Uint32 | H3 = 0x10325476 |
Uint32 | H4 = 0xc3d2e1f0 |
unsigned char | bytes [64] |
Uint32 | unprocessedBytes = 0 |
Uint32 | size = 0 |
SHA1::SHA1 | ( | ) |
void SHA1::addBytes | ( | const char * | data, |
Uint32 | num ) |
References bytes, process(), size, and unprocessedBytes.
Referenced by addBytes(), and getDigest().
|
inline |
|
inline |
References getDigest().
Referenced by getDigest().
void SHA1::getDigest | ( | unsigned char * | to | ) |
References addBytes(), H0, H1, H2, H3, H4, size, storeBigEndianUint32(), and unprocessedBytes.
|
static |
|
private |
References bytes, H0, H1, H2, H3, H4, lrot(), and unprocessedBytes.
Referenced by addBytes().
|
static |
|
private |
Referenced by ~SHA1(), addBytes(), and process().
|
private |
Referenced by ~SHA1(), getDigest(), and process().
|
private |
Referenced by ~SHA1(), getDigest(), and process().
|
private |
Referenced by ~SHA1(), getDigest(), and process().
|
private |
Referenced by ~SHA1(), getDigest(), and process().
|
private |
Referenced by ~SHA1(), getDigest(), and process().
|
private |
Referenced by ~SHA1(), addBytes(), and getDigest().
|
private |
Referenced by ~SHA1(), addBytes(), getDigest(), and process().