|
Gammu internals
1.38.0
|

Go to the source code of this file.
Data Structures | |
| struct | MD5Context |
Macros | |
| #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 unsigned int | uint32 |
| typedef struct MD5Context | MD5_CTX |
Functions | |
| void | MD5Init (struct MD5Context *) |
| void | MD5Update (struct MD5Context *, unsigned const char *, unsigned) |
| void | MD5Final (unsigned char digest[16], struct MD5Context *) |
| void | MD5Transform (uint32 buf[4], uint32 const in[16]) |
| static void | byteReverse (unsigned char *buf, unsigned longs) |
| static void | putu32 (uint32 data, unsigned char *addr) |
| void | CalculateMD5 (unsigned char *buffer, int length, char *checksum) |
| #define F1 | ( | x, | |
| y, | |||
| z | |||
| ) | (z ^ (x & (y ^ z))) |
Definition at line 178 of file md5.c.
Referenced by MD5Transform().
| #define F2 | ( | x, | |
| y, | |||
| z | |||
| ) | F1(z, x, y) |
Definition at line 179 of file md5.c.
Referenced by MD5Transform().
| #define F3 | ( | x, | |
| y, | |||
| z | |||
| ) | (x ^ y ^ z) |
Definition at line 180 of file md5.c.
Referenced by MD5Transform().
| #define F4 | ( | x, | |
| y, | |||
| z | |||
| ) | (y ^ (x | ~z)) |
Definition at line 181 of file md5.c.
Referenced by MD5Transform().
| #define MD5STEP | ( | f, | |
| w, | |||
| x, | |||
| y, | |||
| z, | |||
| data, | |||
| s | |||
| ) | ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) |
Definition at line 184 of file md5.c.
Referenced by MD5Transform().
| typedef struct MD5Context MD5_CTX |
|
static |
Definition at line 48 of file md5.c.
Referenced by MD5Final(), and MD5Update().
| void CalculateMD5 | ( | unsigned char * | buffer, |
| int | length, | ||
| char * | checksum | ||
| ) |
Wrapper for glib checksum functionality.
Definition at line 275 of file md5.c.
References MD5Final(), MD5Init(), and MD5Update().
| void MD5Final | ( | unsigned char | digest[16], |
| struct MD5Context * | ctx | ||
| ) |
Definition at line 134 of file md5.c.
References MD5Context::bits, MD5Context::buf, byteReverse(), MD5Context::in, MD5Transform(), and putu32().
Referenced by CalculateMD5().
| void MD5Init | ( | struct MD5Context * | ctx | ) |
Definition at line 71 of file md5.c.
References MD5Context::bits, and MD5Context::buf.
Referenced by CalculateMD5().
Definition at line 192 of file md5.c.
References F1, F2, F3, F4, and MD5STEP.
Referenced by MD5Final(), and MD5Update().
| void MD5Update | ( | struct MD5Context * | ctx, |
| unsigned const char * | buf, | ||
| unsigned | len | ||
| ) |
Definition at line 86 of file md5.c.
References MD5Context::bits, MD5Context::buf, byteReverse(), MD5Context::in, and MD5Transform().
Referenced by CalculateMD5().
|
static |
Definition at line 59 of file md5.c.
Referenced by MD5Final().