Strophe
0.9
XMPP client library
|
MD5 hash. More...
Macros | |
#define | GET_32BIT_LSB_FIRST(cp) |
#define | PUT_32BIT_LSB_FIRST(cp, value) |
#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 | |
static void | MD5Transform (uint32_t buf[4], const unsigned char inext[64], struct MD5Context *ctx) |
void | MD5Init (struct MD5Context *ctx) |
void | MD5Update (struct MD5Context *ctx, unsigned char const *buf, uint32_t len) |
void | MD5Final (unsigned char digest[16], struct MD5Context *ctx) |
MD5 hash.
#define GET_32BIT_LSB_FIRST | ( | cp | ) |
#define PUT_32BIT_LSB_FIRST | ( | cp, | |
value | |||
) |
#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 MD5Init | ( | struct MD5Context * | ctx | ) |
void MD5Update | ( | struct MD5Context * | ctx, |
unsigned char const * | buf, | ||
uint32_t | len | ||
) |
void MD5Final | ( | unsigned char | digest[16], |
struct MD5Context * | ctx | ||
) |