12static void MDPrint(
unsigned char digest[16]);
19 unsigned char digest[16];
20 unsigned int len = strlen(
string);
22 xMD5Update(&context,
string, len);
23 xMD5Final(digest, &context);
24 printf(
"MD5 (\"%s\") = ",
string);
33 for (i = 0; i < 16; i++)
34 printf(
"%02x", digest[i]);
40 printf(
"MD5 test suite:\n");
45 MDString(
"abcdefghijklmnopqrstuvwxyz");
46 MDString(
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
47 MDString(
"1234567890123456789012345678901234567890"
48 "1234567890123456789012345678901234567890");
static void MDPrint(unsigned char digest[16])
int main(int argc, char **argv)
static void MDString(char *string)