GNU libmicrohttpd
0.9.59
|
Go to the source code of this file.
Macros | |
#define | PUT_64BIT_LE(cp, value) |
#define | PUT_32BIT_LE(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 | |
void | MD5Init (struct MD5Context *ctx) |
void | MD5Update (struct MD5Context *ctx, const unsigned char *input, size_t len) |
void | MD5Pad (struct MD5Context *ctx) |
void | MD5Final (unsigned char digest[MD5_DIGEST_SIZE], struct MD5Context *ctx) |
void | MD5Transform (uint32_t state[4], const uint8_t block[MD5_BLOCK_SIZE]) |
Variables | |
static uint8_t | PADDING [MD5_BLOCK_SIZE] |
#define F1 | ( | x, | |
y, | |||
z | |||
) | (z ^ (x & (y ^ z))) |
Definition at line 153 of file md5.c.
Referenced by MD5Transform().
#define F2 | ( | x, | |
y, | |||
z | |||
) | F1(z, x, y) |
Definition at line 154 of file md5.c.
Referenced by MD5Transform().
#define F3 | ( | x, | |
y, | |||
z | |||
) | (x ^ y ^ z) |
Definition at line 155 of file md5.c.
Referenced by MD5Transform().
#define F4 | ( | x, | |
y, | |||
z | |||
) | (y ^ (x | ~z)) |
Definition at line 156 of file md5.c.
Referenced by MD5Transform().
Definition at line 159 of file md5.c.
Referenced by MD5Transform().
#define PUT_32BIT_LE | ( | cp, | |
value | |||
) |
Definition at line 33 of file md5.c.
Referenced by MD5Final().
#define PUT_64BIT_LE | ( | cp, | |
value | |||
) |
Definition at line 23 of file md5.c.
Referenced by MD5Pad().
void MD5Final | ( | unsigned char | digest[MD5_DIGEST_SIZE], |
struct MD5Context * | ctx | ||
) |
Definition at line 135 of file md5.c.
References MD5Pad(), PUT_32BIT_LE, and MD5Context::state.
Referenced by calculate_nonce(), digest_calc_ha1(), and digest_calc_response().
void MD5Init | ( | struct MD5Context * | ctx | ) |
Definition at line 50 of file md5.c.
References MD5Context::count, and MD5Context::state.
Referenced by calculate_nonce(), digest_calc_ha1(), and digest_calc_response().
void MD5Pad | ( | struct MD5Context * | ctx | ) |
Definition at line 111 of file md5.c.
References MD5Context::count, MD5_BLOCK_SIZE, MD5Update(), PADDING, and PUT_64BIT_LE.
Referenced by MD5Final().
void MD5Transform | ( | uint32_t | state[4], |
const uint8_t | block[MD5_BLOCK_SIZE] | ||
) |
Definition at line 168 of file md5.c.
References F1, F2, F3, F4, MD5_BLOCK_SIZE, MD5STEP, and MHD_Connection::state.
Referenced by MD5Update().
void MD5Update | ( | struct MD5Context * | ctx, |
const unsigned char * | input, | ||
size_t | len | ||
) |
Definition at line 67 of file md5.c.
References MD5Context::buffer, MD5Context::count, MD5_BLOCK_SIZE, MD5Transform(), and MD5Context::state.
Referenced by calculate_nonce(), digest_calc_ha1(), digest_calc_response(), and MD5Pad().
|
static |