20typedef unsigned __int8 uint8_t;
21typedef unsigned __int32 uint32_t;
22typedef unsigned __int64 uint64_t;
54 std::string
operator()(
const void* data,
size_t numBytes);
59 void add(
const void* data,
size_t numBytes);
71 void processBlock(
const void* data);
84 uint32_t m_hash[HashValues];
std::string getHash()
return latest hash as 64 hex characters
void getHash(unsigned char buffer[HashBytes])
return latest hash as bytes
std::string operator()(const void *data, size_t numBytes)
compute SHA256 of a memory block
std::string operator()(const std::string &text)
compute SHA256 of a string, excluding final zero
void add(const void *data, size_t numBytes)
add arbitrary number of bytes
Usage: std::string msg = "The quick brown fox jumps over the lazy dog"; std::string key = "key"; std:...