#include <stdint.h>
#include <string.h>
#include "libmd5.h"
Go to the source code of this file.
#define | byteReverse(buf, len) /* Nothing */ |
|
#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) ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) |
|
static void | MD5Transform (uint32_t buf[4], uint32_t const in[16]) |
|
void | MD5Init (context_md5_t *ctx) |
|
void | MD5Update (context_md5_t *ctx, unsigned char *buf, unsigned len) |
|
void | MD5Final (unsigned char digest[16], context_md5_t *ctx) |
|
#define byteReverse |
( |
|
buf, |
|
|
|
len |
|
) |
| /* Nothing */ |
#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 |
|
) |
| ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) |
void MD5Update |
( |
context_md5_t * |
ctx, |
|
|
unsigned char * |
buf, |
|
|
unsigned |
len |
|
) |
| |