#include "MD5.h"
#include <sstream>
#include <iomanip>
#include <ios>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Macros |
#define | rol(x, n) ( ((x) << (n)) | ((x) >> (32-(n))) ) |
| Rotate a 32 bit integer by n bytes.
|
#define | FF(b, c, d) (d ^ (b & (c ^ d))) |
#define | FG(b, c, d) FF (d, b, c) |
#define | FH(b, c, d) (b ^ c ^ d) |
#define | FI(b, c, d) (c ^ (b | ~d)) |
#define | OP(a, b, c, d, s, T) |
#define | OP(f, a, b, c, d, k, s, T) |
#define | X(a) do { *(u32*)p = (*this).a ; p += 4; } while(0) |
Macro Definition Documentation
#define FF |
( |
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| (d ^ (b & (c ^ d))) |
#define FG |
( |
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| FF (d, b, c) |
#define FH |
( |
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| (b ^ c ^ d) |
#define FI |
( |
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| (c ^ (b | ~d)) |
#define OP |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
s, |
|
|
|
T |
|
) |
| |
#define OP |
( |
|
f, |
|
|
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
k, |
|
|
|
s, |
|
|
|
T |
|
) |
| |
Value:do \
{ \
a += f (b, c, d) + correct_words[k] + T; \
a += b; \
} while (0)
#define rol |
( |
|
x, |
|
|
|
n |
|
) |
| ( ((x) << (n)) | ((x) >> (32-(n))) ) |
Rotate a 32 bit integer by n bytes.
Definition at line 64 of file MD5.cpp.
#define X |
( |
|
a | ) |
do { *(u32*)p = (*this).a ; p += 4; } while(0) |