MCPcopy Create free account
hub / github.com/SNAS/openbmp / hex_digest

Method hex_digest

Server/src/md5.cpp:258–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257
258char *MD5::hex_digest(){
259
260 int i;
261 char *s= new char[33];
262
263 if (!finalized){
264 cerr << "MD5::hex_digest: Can't get digest if you haven't "<<
265 "finalized the digest!" <<endl;
266 return const_cast<char *>("");
267 }
268
269 for (i=0; i<16; i++)
270 sprintf(s+i*2, "%02x", digest[i]);
271
272 s[32]='\0';
273
274 return s;
275}
276
277
278

Callers 1

md5.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected