| 1 |
root |
1.1 |
#include <inttypes.h> |
| 2 |
|
|
|
| 3 |
|
|
/* typedef a 32 bit type */ |
| 4 |
|
|
typedef uint32_t UINT4; |
| 5 |
|
|
|
| 6 |
|
|
/* Data structure for MD5 (Message Digest) computation */ |
| 7 |
|
|
typedef struct { |
| 8 |
|
|
UINT4 i[2]; /* number of _bits_ handled mod 2^64 */ |
| 9 |
|
|
UINT4 buf[4]; /* scratch buffer */ |
| 10 |
|
|
unsigned char in[64]; /* input buffer */ |
| 11 |
|
|
unsigned char digest[16]; /* actual digest after MD5Final call */ |
| 12 |
|
|
} MD5_CTX; |
| 13 |
|
|
|
| 14 |
|
|
void MD5Init (MD5_CTX *mdContext); |
| 15 |
|
|
void MD5Update (MD5_CTX *mdContext, const unsigned char *inBuf, unsigned int inLen); |
| 16 |
|
|
void MD5Final (MD5_CTX *mdContext); |
| 17 |
|
|
|