Go to the source code of this file.
Defines | |
#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 ) |
Typedefs | |
typedef struct MD5Context | MD5_CTX |
Functions | |
int | md5_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
void | MD5Final (unsigned char digest[16], struct MD5Context *ctx) |
void | MD5Init (struct MD5Context *ctx) |
static void | MD5Transform (u32 buf[4], u32 const in[16]) |
void | MD5Update (struct MD5Context *ctx, unsigned char const *buf, unsigned len) |
#define byteReverse | ( | buf, | |
len | |||
) | /* Nothing */ |
Definition at line 69 of file md5-internal.c.
Definition at line 203 of file md5-internal.c.
typedef struct MD5Context MD5_CTX |
Definition at line 26 of file md5-internal.c.
int md5_vector | ( | size_t | num_elem, |
const u8 * | addr[], | ||
const size_t * | len, | ||
u8 * | mac | ||
) |
md5_vector - MD5 hash for data vector : Number of elements in the data vector : Pointers to the data areas : Lengths of the data blocks : Buffer for the hash Returns: 0 on success, -1 of failure
Definition at line 37 of file md5-internal.c.
void MD5Final | ( | unsigned char | digest[16], |
struct MD5Context * | ctx | ||
) |
Definition at line 153 of file md5-internal.c.
void MD5Init | ( | struct MD5Context * | ctx | ) |
Definition at line 90 of file md5-internal.c.
static void MD5Transform | ( | u32 | buf[4], |
u32 const | in[16] | ||
) | [static] |
Definition at line 211 of file md5-internal.c.
void MD5Update | ( | struct MD5Context * | ctx, |
unsigned char const * | buf, | ||
unsigned | len | ||
) |
Definition at line 105 of file md5-internal.c.