CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
compat::shash_v1 Namespace Reference

Classes

struct  Digest
 
struct  Md5
 
struct  Any
 

Enumerations

enum  Algorithms { kMd5 = 0, kSha1, kRmd160, kAny }
 

Functions

void MigrateAny (const Any *old_hash, shash::Any *new_hash)
 

Variables

const char * kSuffixes [] = {"", "", "-rmd160", ""}
 
const unsigned kDigestSizes [] = {16, 20, 20, 20}
 
const unsigned kMaxDigestSize = 20
 
const unsigned kSuffixLengths [] = {0, 0, 7, 0}
 
const unsigned kMaxSuffixLength = 7
 

Enumeration Type Documentation

Enumerator
kMd5 
kSha1 
kRmd160 
kAny 

Definition at line 31 of file compat.h.

Function Documentation

void compat::shash_v1::MigrateAny ( const Any *  old_hash,
shash::Any new_hash 
)

Definition at line 28 of file compat.cc.

Referenced by compat::chunk_tables::Migrate(), and compat::chunk_tables_v2::Migrate().

Here is the caller graph for this function:

Variable Documentation

const unsigned compat::shash_v1::kMaxDigestSize = 20

Definition at line 38 of file compat.h.

const unsigned compat::shash_v1::kMaxSuffixLength = 7

Definition at line 41 of file compat.h.

const char * compat::shash_v1::kSuffixes = {"", "", "-rmd160", ""}

Definition at line 19 of file compat.cc.

Referenced by compat::shash_v1::Digest< 16, kMd5 >::ToString().

const unsigned compat::shash_v1::kSuffixLengths[] = {0, 0, 7, 0}

Definition at line 40 of file compat.h.

Referenced by compat::shash_v1::Digest< 16, kMd5 >::GetHexSize().