cvmfs/hash.cc
Md5::Md5(const AsciiPtr ascii) {
  algorithm = kMd5;
  const string *str = ascii.str;

  MD5_CTX md5_state;
  MD5_Init(&md5_state);
  MD5_Update(&md5_state, reinterpret_cast<const unsigned char *>(&(*str)[0]),
             str->length());
  MD5_Final(digest, &md5_state);
}
/**
 * Fast constructor for hashing path names.
 */
Fast constructor for hashing path names.
Fast constructor for hashing path names .
Md5::Md5(const AsciiPtr ascii) {
  algorithm = kMd5;
  const string *str = ascii.str;
  MD5_CTX md5_state;
  MD5_Init(&md5_state);
  MD5_Update(&md5_state, reinterpret_cast<const unsigned char *>(&(*str)[0]),
             str->length());
  MD5_Final(digest, &md5_state);
}
Md5 :: Md5 ( const AsciiPtr ascii ) { algorithm = kMd5 ; const string * str = ascii . str ; MD5_CTX md5_state ; MD5_Init ( & md5_state ) ; MD5_Update ( & md5_state , reinterpret_cast < const unsigned char * > ( & ( * str ) [ 0 ] ) , str -> length ( ) ) ; MD5_Final ( digest , & md5_state ) ; }
Fast constructor for hashing path names.
Fast constructor for hashing path names .