#include <string.h>
#include <external/md5.h>
Go to the source code of this file.
|
#define | F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) |
|
#define | G(x, y, z) ((y) ^ ((z) & ((x) ^ (y)))) |
|
#define | GET(n) (ctx->block[(n)]) |
|
#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 | OUT(dst, src) |
|
#define | SET(n) |
|
#define | STEP(f, a, b, c, d, x, t, s) |
|
#define F |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((z) ^ ((x) & ((y) ^ (z)))) |
#define G |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((y) ^ ((z) & ((x) ^ (y)))) |
#define GET |
( |
|
n | ) |
(ctx->block[(n)]) |
#define H |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (((x) ^ (y)) ^ (z)) |
#define H2 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((x) ^ ((y) ^ (z))) |
#define I |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((y) ^ ((x) | ~(z))) |
Value:(dst)[0] = (unsigned char)(src); \
(dst)[1] = (unsigned char)((src) >> 8); \
(dst)[2] = (unsigned char)((src) >> 16); \
(dst)[3] = (unsigned char)((src) >> 24);
Definition at line 252 of file md5.cpp.
Value:(ctx->block[(n)] = \
uint32_t MD5_u32plus
Integer type to use.
Definition at line 86 of file md5.cpp.
#define STEP |
( |
|
f, |
|
|
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
x, |
|
|
|
t, |
|
|
|
s |
|
) |
| |
Value:(a) +=
f((b), (c), (d)) + (x) + (t); \
(a) = (((a) << (
s)) | (((a) & 0xffffffff) >> (32 - (
s)))); \
(a) += (b);
Definition at line 60 of file md5.cpp.
static const void* body |
( |
MD5_CTX * |
ctx, |
|
|
const void * |
data, |
|
|
unsigned long |
size |
|
) |
| |
|
static |
void MD5_Final |
( |
unsigned char * |
result, |
|
|
MD5_CTX * |
ctx |
|
) |
| |
Finalize MD5 context.
- Parameters
-
Definition at line 258 of file md5.cpp.
Init MD5 context.
- Parameters
-
Definition at line 207 of file md5.cpp.
void MD5_Update |
( |
MD5_CTX * |
ctx, |
|
|
const void * |
data, |
|
|
unsigned long |
size |
|
) |
| |
Update MD5 context.
- Parameters
-
ctx | Context |
data | Data |
size | Length |
Definition at line 218 of file md5.cpp.