13 #define md5_init cctools_md5_init
14 #define md5_update cctools_md5_update
15 #define md5_final cctools_md5_final
16 #define md5_buffer cctools_md5_buffer
17 #define md5_file cctools_md5_file
18 #define md5_string cctools_md5_string
24 #define MD5_DIGEST_LENGTH 16
25 #define MD5_DIGEST_LENGTH_HEX (MD5_DIGEST_LENGTH<<1)
35 void md5_final(
unsigned char digest[MD5_DIGEST_LENGTH],
md5_context_t * ctx);
45 void md5_buffer(
const void *
buffer,
size_t length,
unsigned char digest[MD5_DIGEST_LENGTH]);
55 int md5_file(
const char *filename,
unsigned char digest[MD5_DIGEST_LENGTH]);
62 const char *
md5_string(
unsigned char digest[MD5_DIGEST_LENGTH]);
69 char *md5_cal(
const char *s);
const char * md5_string(unsigned char digest[MD5_DIGEST_LENGTH])
Convert an MD5 digest into a printable string.
void md5_buffer(const void *buffer, size_t length, unsigned char digest[MD5_DIGEST_LENGTH])
Checksum a memory buffer.
int md5_file(const char *filename, unsigned char digest[MD5_DIGEST_LENGTH])
Checksum a local file.