|
LIPH's C++ Codes
|
#include "liph/crypto/md5.h"#include <algorithm>#include <cassert>#include <cstdint>#include <cstring>#include <vector>Namespaces | |
| namespace | liph |
Macros | |
| #define | F(x, y, z) (((x) & (y)) | ((~x) & (z))) |
| #define | G(x, y, z) (((x) & (z)) | ((y) & (~z))) |
| #define | H(x, y, z) ((x) ^ (y) ^ (z)) |
| #define | I(x, y, z) ((y) ^ ((x) | (~z))) |
| #define | ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) |
| #define | FF(a, b, c, d, x, s, i) |
| #define | GG(a, b, c, d, x, s, i) |
| #define | HH(a, b, c, d, x, s, i) |
| #define | II(a, b, c, d, x, s, i) |
Functions | |
| std::string | liph::MD5 (const std::string &msg) |
| std::string | liph::md5 (const std::string &msg) |
| #define F | ( | x, | |
| y, | |||
| z | |||
| ) | (((x) & (y)) | ((~x) & (z))) |
| #define FF | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| x, | |||
| s, | |||
| i | |||
| ) |
| #define G | ( | x, | |
| y, | |||
| z | |||
| ) | (((x) & (z)) | ((y) & (~z))) |
| #define GG | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| x, | |||
| s, | |||
| i | |||
| ) |
| #define H | ( | x, | |
| y, | |||
| z | |||
| ) | ((x) ^ (y) ^ (z)) |
| #define HH | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| x, | |||
| s, | |||
| i | |||
| ) |
| #define I | ( | x, | |
| y, | |||
| z | |||
| ) | ((y) ^ ((x) | (~z))) |
| #define II | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| x, | |||
| s, | |||
| i | |||
| ) |
| #define ROTATE_LEFT | ( | x, | |
| n | |||
| ) | (((x) << (n)) | ((x) >> (32 - (n)))) |