|
xoreos
0.0.5
|
Hashing/digesting using the MD5 algorithm. More...
#include <cstring>#include "src/common/md5.h"#include "src/common/ustring.h"#include "src/common/readstream.h"
Go to the source code of this file.
Classes | |
| struct | Common::MD5Context |
Namespaces | |
| Common | |
Macros | |
| #define | F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) |
| #define | G(x, y, z) ((y) ^ ((z) & ((x) ^ (y)))) |
| #define | H(x, y, z) (((x) ^ (y)) ^ (z)) |
| #define | H2(x, y, z) ((x) ^ ((y) ^ (z))) |
| #define | I(x, y, z) ((y) ^ ((x) | ~(z))) |
| #define | STEP(f, a, b, c, d, x, t, s) |
| #define | SET(n) |
| #define | GET(n) (ctx.block[(n)]) |
Functions | |
| static const byte * | Common::md5Body (MD5Context &ctx, const byte *data, size_t size) |
| static void | Common::md5Update (MD5Context &ctx, const byte *data, size_t size) |
| static void | Common::md5Final (byte *result, MD5Context &ctx) |
| 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... | |
Hashing/digesting using the MD5 algorithm.
Definition in file md5.cpp.
| #define G | ( | x, | |
| y, | |||
| z | |||
| ) | ((y) ^ ((z) & ((x) ^ (y)))) |
Definition at line 95 of file md5.cpp.
Referenced by Common::md5Body().
| #define GET | ( | n | ) | (ctx.block[(n)]) |
Definition at line 128 of file md5.cpp.
Referenced by Common::md5Body().
| #define SET | ( | n | ) |
| #define STEP | ( | f, | |
| a, | |||
| b, | |||
| c, | |||
| d, | |||
| x, | |||
| t, | |||
| s | |||
| ) |
Definition at line 103 of file md5.cpp.
Referenced by Common::md5Body().
1.8.14