xoreos  0.0.5
Namespaces | Functions | Variables
md5.h File Reference

Hashing/digesting using the MD5 algorithm. More...

#include <vector>
#include "src/common/types.h"
Include dependency graph for md5.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Common
 

Functions

void Common::hashMD5 (ReadStream &stream, std::vector< byte > &digest)
 Hash the stream into an MD5 digest of 16 bytes. More...
 
void Common::hashMD5 (const byte *data, size_t dataLength, std::vector< byte > &digest)
 Hash the data into an MD5 digest of 16 bytes. More...
 
void Common::hashMD5 (const UString &string, std::vector< byte > &digest)
 Hash the string into an MD5 digest of 16 bytes. More...
 
void Common::hashMD5 (const std::vector< byte > &data, std::vector< byte > &digest)
 Hash the array of data into an MD5 digest of 16 bytes. More...
 
bool Common::compareMD5Digest (ReadStream &stream, const std::vector< byte > &digest)
 Hash the stream and compare the digests, returning true if they match. More...
 
bool Common::compareMD5Digest (const byte *data, size_t dataLength, const std::vector< byte > &digest)
 Hash the array of data and compare the digests, returning true if they match. More...
 
bool Common::compareMD5Digest (const UString &string, const std::vector< byte > &digest)
 Hash the string and compare the digests, returning true if they match. More...
 
bool Common::compareMD5Digest (const std::vector< byte > &data, const std::vector< byte > &digest)
 Hash the array of data and compare the digests, returning true if they match. More...
 

Variables

static const size_t Common::kMD5Length = 16
 The length of an MD5 digest in bytes. More...
 

Detailed Description

Hashing/digesting using the MD5 algorithm.

Definition in file md5.h.