20typedef unsigned __int8 uint8_t;
21typedef unsigned __int32 uint32_t;
58 std::string
operator()(
const void* data,
size_t numBytes);
63 void add(
const void* data,
size_t numBytes);
std::string getHash()
return latest hash as 8 hex characters
std::string operator()(const std::string &text)
compute CRC32 of a string, excluding final zero
void add(const void *data, size_t numBytes)
add arbitrary number of bytes
std::string operator()(const void *data, size_t numBytes)
compute CRC32 of a memory block
void getHash(unsigned char buffer[HashBytes])
return latest hash as bytes
Usage: std::string msg = "The quick brown fox jumps over the lazy dog"; std::string key = "key"; std:...