MCPcopy Create free account
hub / github.com/Vector35/debugger / MDString

Function MDString

test/src/md5/md5driver.c:102–116  ·  view source on GitHub ↗

Digests a string and prints the result. */

(string)

Source from the content-addressed store, hash-verified

100/* Digests a string and prints the result.
101*/
102static void MDString (string)
103char *string;
104{
105 MD_CTX context;
106 unsigned char digest[16];
107 unsigned int len = strlen (string);
108
109 MDInit (&context);
110 MDUpdate (&context, string, len);
111 MDFinal (digest, &context);
112
113 printf ("MD%d (\"%s\") = ", MD, string);
114 MDPrint (digest);
115 printf ("\n");
116}
117
118/* Measures the time to digest TEST_BLOCK_COUNT TEST_BLOCK_LEN-byte
119 blocks.

Callers 2

mainFunction · 0.85
MDTestSuiteFunction · 0.85

Calls 1

MDPrintFunction · 0.85

Tested by

no test coverage detected