CernVM-FS
2.12.0
|
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 char compat::shash_v2::Suffix |
void compat::shash_v2::MigrateAny | ( | const Any * | old_hash, |
shash::Any * | new_hash | ||
) |
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} |
Definition at line 160 of file compat.h.
Referenced by shash::Digest< 16, kMd5 >::GetHexSize(), compat::shash_v2::Digest< 20, kAny >::GetHexSize(), shash::HexPtr::IsValid(), shash::MkFromHexPtr(), and shash::MkFromSuffixedHexPtr().
const unsigned compat::shash_v2::kDigestSizes[] = {16, 20, 20, 20} |
Definition at line 157 of file compat.h.
Referenced by compat::shash_v2::Digest< 20, kAny >::GetDigestSize(), and compat::shash_v2::Digest< 20, kAny >::GetHexSize().
const unsigned compat::shash_v2::kMaxAlgorithmIdentifierSize = 7 |
const char* compat::shash_v2::kSuffixes[] = {"", "", "-rmd160", ""} |
const char compat::shash_v2::kSuffixNone = 0 |
Definition at line 163 of file compat.h.
Referenced by shash::Digest< 16, kMd5 >::HasSuffix(), shash::Digest< 16, kMd5 >::MakePathExplicit(), shash::Digest< 16, kMd5 >::MakePathWithoutSuffix(), and shash::MkFromSuffixedHexPtr().