CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
shash::Md5 Struct Reference

#include <hash.h>

Inheritance diagram for shash::Md5:
Collaboration diagram for shash::Md5:

Public Member Functions

 Md5 ()
 
 Md5 (const AsciiPtr ascii)
 
 Md5 (const HexPtr hex)
 
 Md5 (const char *chars, const unsigned length)
 
 Md5 (const uint64_t lo, const uint64_t hi)
 
void ToIntPair (uint64_t *lo, uint64_t *hi) const
 
- Public Member Functions inherited from shash::Digest< 16, kMd5 >
unsigned GetDigestSize () const
 
unsigned GetHexSize () const
 
 Digest ()
 
 Digest (const Algorithms a, const HexPtr hex, const char s=0)
 
 Digest (const Algorithms a, const unsigned char *digest_buffer, const Suffix s=kSuffixNone)
 
void Randomize ()
 
void Randomize (const uint64_t seed)
 
void Randomize (Prng *prng)
 
bool HasSuffix () const
 
void set_suffix (const Suffix s)
 
std::string ToString (const bool with_suffix=false) const
 
std::string ToFingerprint (const bool with_suffix=false) const
 
std::string ToStringWithSuffix () const
 
std::string MakePath () const
 
std::string MakeAlternativePath () const
 
std::string MakePathWithoutSuffix () const
 
std::string MakePathExplicit (const unsigned dir_levels, const unsigned digits_per_level, const Suffix hash_suffix=kSuffixNone) const
 
bool IsNull () const
 
uint32_t Partial32 () const
 
void SetNull ()
 
bool operator== (const Digest< digest_size_, algorithm_ > &other) const
 
bool operator!= (const Digest< digest_size_, algorithm_ > &other) const
 
bool operator< (const Digest< digest_size_, algorithm_ > &other) const
 
bool operator> (const Digest< digest_size_, algorithm_ > &other) const
 

Additional Inherited Members

- Public Attributes inherited from shash::Digest< 16, kMd5 >
unsigned char digest [digest_size_]
 
Algorithms algorithm
 
Suffix suffix
 

Detailed Description

Definition at line 445 of file hash.h.

Constructor & Destructor Documentation

shash::Md5::Md5 ( )
inline

Definition at line 446 of file hash.h.

shash::Md5::Md5 ( const AsciiPtr  ascii)
explicit

Fast constructor for hashing path names.

Definition at line 356 of file hash.cc.

shash::Md5::Md5 ( const HexPtr  hex)
inlineexplicit

Definition at line 448 of file hash.h.

shash::Md5::Md5 ( const char *  chars,
const unsigned  length 
)

Definition at line 368 of file hash.cc.

shash::Md5::Md5 ( const uint64_t  lo,
const uint64_t  hi 
)

An MD5 hash can be seen as two 64bit integers.

Definition at line 379 of file hash.cc.

Member Function Documentation

void shash::Md5::ToIntPair ( uint64_t *  lo,
uint64_t *  hi 
) const

Definition at line 385 of file hash.cc.

Referenced by catalog::SqlCatalog::BindMd5(), and publish::CmdHash::Main().

Here is the caller graph for this function:


The documentation for this struct was generated from the following files: