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

Classes

struct  Digest
 
struct  Any
 

Typedefs

typedef char Suffix
 

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 char * kAlgorithmIds []
 
const unsigned kAlgorithmIdSizes [] = {0, 0, 7, 0}
 
const unsigned kMaxAlgorithmIdentifierSize = 7
 
const char kSuffixNone = 0
 
const char kSuffixCatalog = 'C'
 
const char kSuffixHistory = 'H'
 
const char kSuffixMicroCatalog = 'L'
 
const char kSuffixPartial = 'P'
 
const char kSuffixTemporary = 'T'
 
const char kSuffixCertificate = 'X'
 

Typedef Documentation

Definition at line 162 of file compat.h.

Enumeration Type Documentation

Enumerator
kMd5 
kSha1 
kRmd160 
kAny 

Definition at line 151 of file compat.h.

Function Documentation

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

Definition at line 44 of file compat.cc.

Variable Documentation

const char* compat::shash_v2::kAlgorithmIds[]

Hex representations of hashes with the same length need a suffix to be distinguished from each other. They should all have one but for backwards compatibility MD5 and SHA-1 have none. Initialized in hash.cc like const char *kAlgorithmIds[] = {"", "", "-rmd160", ...

Definition at line 33 of file hash.cc.

Referenced by shash::Digest< digest_size_, algorithm_ >::Hex::GetAlgorithmIdentifierChar(), and shash::HexPtr::IsValid().

const unsigned compat::shash_v2::kAlgorithmIdSizes[] = {0, 0, 7, 0}
const unsigned compat::shash_v2::kDigestSizes[] = {16, 20, 20, 20}
const unsigned compat::shash_v2::kMaxAlgorithmIdentifierSize = 7

Definition at line 161 of file compat.h.

const unsigned compat::shash_v2::kMaxDigestSize = 20

Definition at line 158 of file compat.h.

const char compat::shash_v2::kSuffixCatalog = 'C'

Definition at line 164 of file compat.h.

const char compat::shash_v2::kSuffixCertificate = 'X'

Definition at line 169 of file compat.h.

const char* compat::shash_v2::kSuffixes[] = {"", "", "-rmd160", ""}

Definition at line 42 of file compat.cc.

const char compat::shash_v2::kSuffixHistory = 'H'

Definition at line 165 of file compat.h.

const char compat::shash_v2::kSuffixMicroCatalog = 'L'

Definition at line 166 of file compat.h.

const char compat::shash_v2::kSuffixPartial = 'P'

Definition at line 167 of file compat.h.

const char compat::shash_v2::kSuffixTemporary = 'T'

Definition at line 168 of file compat.h.