43 void hashMD5(
const byte *data,
size_t dataLength, std::vector<byte> &digest);
47 void hashMD5(
const std::vector<byte> &data, std::vector<byte> &digest);
56 bool compareMD5Digest(
const std::vector<byte> &data,
const std::vector<byte> &digest);
60 #endif // COMMON_MD5_H void hashMD5(ReadStream &stream, std::vector< byte > &digest)
Hash the stream into an MD5 digest of 16 bytes.
Generic interface for a readable data stream.
A class holding an UTF-8 string.
Low-level type definitions to handle fixed width types portably.
bool compareMD5Digest(ReadStream &stream, const std::vector< byte > &digest)
Hash the stream and compare the digests, returning true if they match.
static const size_t kMD5Length
The length of an MD5 digest in bytes.