MD5 checksum routines used for authentication. Not covered by GPL, but in the public domain as per the copyright below. More...
Go to the source code of this file.
Macros | |
#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 ) |
Functions | |
void | MD5Final (unsigned char digest[16], struct MD5Context *ctx) |
void | MD5Init (struct MD5Context *ctx) |
void | MD5Transform (uint32_t buf[4], uint32_t const in[16]) |
void | MD5Update (struct MD5Context *ctx, unsigned char const *buf, unsigned len) |
MD5 checksum routines used for authentication. Not covered by GPL, but in the public domain as per the copyright below.
Definition in file md5.c.
#define byteReverse | ( | buf, | |
len | |||
) | /* Nothing */ |
Definition at line 34 of file md5.c.
Referenced by MD5Final(), and MD5Update().
#define F1 | ( | x, | |
y, | |||
z | |||
) | (z ^ (x & (y ^ z))) |
Definition at line 170 of file md5.c.
Referenced by MD5Transform().
#define F2 | ( | x, | |
y, | |||
z | |||
) | F1(z, x, y) |
Definition at line 171 of file md5.c.
Referenced by MD5Transform().
#define F3 | ( | x, | |
y, | |||
z | |||
) | (x ^ y ^ z) |
Definition at line 172 of file md5.c.
Referenced by MD5Transform().
#define F4 | ( | x, | |
y, | |||
z | |||
) | (y ^ (x | ~z)) |
Definition at line 173 of file md5.c.
Referenced by MD5Transform().
Definition at line 176 of file md5.c.
Referenced by MD5Transform().
void MD5Final | ( | unsigned char | digest[16], |
struct MD5Context * | ctx | ||
) |
Definition at line 122 of file md5.c.
References MD5Context::bits, MD5Context::buf, byteReverse, MD5Context::in, and MD5Transform().
Referenced by ast_md5_hash(), authenticate(), authenticate_verify(), decrypt_frame(), festival_exec(), iax2_key_rotate(), prov_ver_calc(), register_verify(), try_firmware(), try_load_key(), and verify_key().
void MD5Init | ( | struct MD5Context * | ctx | ) |
Definition at line 59 of file md5.c.
References MD5Context::bits, and MD5Context::buf.
Referenced by ast_md5_hash(), authenticate(), authenticate_verify(), decrypt_frame(), festival_exec(), iax2_key_rotate(), prov_ver_calc(), register_verify(), try_firmware(), try_load_key(), and verify_key().
void MD5Transform | ( | uint32_t | buf[4], |
uint32_t const | in[16] | ||
) |
Definition at line 184 of file md5.c.
References F1, F2, F3, F4, and MD5STEP.
Referenced by MD5Final(), and MD5Update().
void MD5Update | ( | struct MD5Context * | ctx, |
unsigned char const * | buf, | ||
unsigned | len | ||
) |
Definition at line 74 of file md5.c.
References MD5Context::bits, MD5Context::buf, byteReverse, if(), MD5Context::in, and MD5Transform().
Referenced by ast_md5_hash(), authenticate(), authenticate_verify(), decrypt_frame(), festival_exec(), iax2_key_rotate(), prov_ver_calc(), register_verify(), try_firmware(), try_load_key(), and verify_key().