#include "md5.h"
#include <string.h>
Go to the source code of this file.
Defines | |
#define | aud_md5_bytereverse(buf, len) do { } while (0) |
#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 ) |
Functions | |
void | aud_md5_init (aud_md5state_t *ctx) |
Start MD5 accumulation. | |
static void | aud_md5_transform (guint32 buf[4], guint32 const in[16]) |
void | aud_md5_append (aud_md5state_t *ctx, const guint8 *buf, guint len) |
Appends more data to the MD5 state context. | |
void | aud_md5_finish (aud_md5state_t *ctx, aud_md5hash_t digest) |
Calculates a MD5 hash digest from the given context. |
#define aud_md5_bytereverse | ( | buf, | |||
len | ) | do { } while (0) |
Definition at line 15 of file md5.c.
Referenced by aud_md5_append(), and aud_md5_finish().
#define F1 | ( | x, | |||
y, | |||||
z | ) | (z ^ (x & (y ^ z))) |
Definition at line 55 of file md5.c.
Referenced by aud_md5_transform().
#define F2 | ( | x, | |||
y, | |||||
z | ) | F1(z, x, y) |
Definition at line 56 of file md5.c.
Referenced by aud_md5_transform().
#define F3 | ( | x, | |||
y, | |||||
z | ) | (x ^ y ^ z) |
Definition at line 57 of file md5.c.
Referenced by aud_md5_transform().
#define F4 | ( | x, | |||
y, | |||||
z | ) | (y ^ (x | ~z)) |
Definition at line 58 of file md5.c.
Referenced by aud_md5_transform().
Definition at line 59 of file md5.c.
Referenced by aud_md5_transform().
void aud_md5_append | ( | aud_md5state_t * | ctx, | |
const guint8 * | buf, | |||
guint | len | |||
) |
void aud_md5_finish | ( | aud_md5state_t * | ctx, | |
aud_md5hash_t | digest | |||
) |
void aud_md5_init | ( | aud_md5state_t * | ctx | ) |
static void aud_md5_transform | ( | guint32 | buf[4], | |
guint32 const | in[16] | |||
) | [static] |
Definition at line 62 of file md5.c.
Referenced by aud_md5_append(), and aud_md5_finish().