#include <stdio.h>
#include <string.h>
#include "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 | H(x, y, z) (((x) ^ (y)) ^ (z)) |
|
#define | H2(x, y, z) ((x) ^ ((y) ^ (z))) |
|
#define | I(x, y, z) ((y) ^ ((x) | ~(z))) |
|
#define | STEP(f, a, b, c, d, x, t, s) |
|
#define | SET(n) |
|
#define | GET(n) (ctx->block[(n)]) |
|
#define | OUT(dst, src) |
|
#define F |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((z) ^ ((x) & ((y) ^ (z)))) |
Definition at line 90 of file md5.c.
#define G |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((y) ^ ((z) & ((x) ^ (y)))) |
Definition at line 91 of file md5.c.
◆ GET
#define GET |
( |
|
n | ) |
(ctx->block[(n)]) |
#define H |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (((x) ^ (y)) ^ (z)) |
Definition at line 92 of file md5.c.
◆ H2
#define H2 |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((x) ^ ((y) ^ (z))) |
Definition at line 93 of file md5.c.
#define I |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((y) ^ ((x) | ~(z))) |
Definition at line 94 of file md5.c.
◆ OUT
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 273 of file md5.c.
◆ SET
Value:
Definition at line 108 of file md5.c.
◆ STEP
#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 99 of file md5.c.
◆ MD5_u32plus
Definition at line 74 of file md5.c.
◆ body()
static const void * body |
( |
MD5_CTX * |
ctx, |
|
|
const void * |
data, |
|
|
unsigned long |
size |
|
) |
| |
|
static |
◆ create_md5sum()
void create_md5sum |
( |
const unsigned char * |
input, |
|
|
int |
len, |
|
|
char |
output[MD5_HEX_BYTES+1] |
|
) |
| |
◆ md5_buffer()
static void md5_buffer |
( |
const unsigned char * |
buffer, |
|
|
size_t |
len, |
|
|
unsigned char * |
resblock |
|
) |
| |
|
static |
◆ MD5_Final()
static void MD5_Final |
( |
unsigned char * |
result, |
|
|
MD5_CTX * |
ctx |
|
) |
| |
|
static |
◆ MD5_Init()
static void MD5_Init |
( |
MD5_CTX * |
ctx | ) |
|
|
static |
◆ MD5_Update()
static void MD5_Update |
( |
MD5_CTX * |
ctx, |
|
|
const void * |
data, |
|
|
unsigned long |
size |
|
) |
| |
|
static |