58 std::string ret(20,
'\000');
59 getDigest(
reinterpret_cast<unsigned char*
>(ret.data()));
66 static void hexPrinter(
unsigned char *c,
int l);
static Uint32 lrot(Uint32 x, int bits)
Definition sha1.cpp:48
void addBytes(const char *data, Uint32 num)
Definition sha1.cpp:137
Uint32 H2
Definition sha1.h:41
Uint32 H0
Definition sha1.h:39
Uint32 H4
Definition sha1.h:43
static void hexPrinter(unsigned char *c, int l)
Definition sha1.cpp:35
Uint32 unprocessedBytes
Definition sha1.h:45
~SHA1()
Definition sha1.cpp:72
static void storeBigEndianUint32(unsigned char *byte, Uint32 num)
Definition sha1.cpp:54
std::string getDigest()
Definition sha1.h:57
void addBytes(std::string_view data)
Definition sha1.h:53
unsigned char bytes[64]
Definition sha1.h:44
void process()
Definition sha1.cpp:81
Uint32 H1
Definition sha1.h:40
SHA1()
Definition sha1.cpp:65
Uint32 size
Definition sha1.h:46
Uint32 H3
Definition sha1.h:42
uint32_t Uint32
Definition sha1.h:33