#include "precompiled.h"
#include "MD5.h"
Go to the source code of this file.
|
#define | rotlFixed(x, y) (((x) << (y)) | ((x) >> (32 - (y)))) |
|
#define | F1(x, y, z) (z ^ (x & (y ^ z))) |
|
#define | F2(x, y, z) F1(z, x, y) |
|
#define | F3(x, y, z) (x ^ y ^ z) |
|
#define | F4(x, y, z) (y ^ (x | ~z)) |
|
#define | MD5STEP(f, w, x, y, z, data, s) t = w + f(x, y, z) + data; w = rotlFixed(t, s) + x |
|
#define F1 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (z ^ (x & (y ^ z))) |
#define F2 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| F1(z, x, y) |
#define F3 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (x ^ y ^ z) |
#define F4 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (y ^ (x | ~z)) |
#define MD5STEP |
( |
|
f, |
|
|
|
w, |
|
|
|
x, |
|
|
|
y, |
|
|
|
z, |
|
|
|
data, |
|
|
|
s |
|
) |
| t = w + f(x, y, z) + data; w = rotlFixed(t, s) + x |
#define rotlFixed |
( |
|
x, |
|
|
|
y |
|
) |
| (((x) << (y)) | ((x) >> (32 - (y)))) |