Crypto hash output. More...
#include <CryptoHash.h>
Public Member Functions | |
CryptoHash () | |
Default constructor - init to zero. | |
CryptoHash & | operator= (CryptoHash const &that) |
Assignment - bitwise copy. | |
bool | operator== (CryptoHash const &that) const |
Equality - bitwise identical. | |
bool | operator!= (CryptoHash const &that) const |
Equality - bitwise identical. | |
uint64_t | fold () const |
Reduce to 64 bit value. | |
uint64_t | operator[] (int i) const |
Access 64 bit slice. | |
uint64_t | slice64 (int i) const |
Access 64 bit slice. | |
uint32_t | slice32 (int i) const |
Access 32 bit slice. | |
char * | toHexStr (char buffer[33]) |
Fast conversion to hex in fixed sized string. | |
Data Fields | |
uint64_t | b [2] |
uint64_t | u64 [2] |
uint32_t | u32 [4] |
uint8_t | u8 [16] |
Crypto hash output.
Definition at line 29 of file CryptoHash.h.
ats::CryptoHash::CryptoHash | ( | ) | [inline] |
uint64_t ats::CryptoHash::fold | ( | ) | const [inline] |
Reduce to 64 bit value.
Definition at line 59 of file CryptoHash.h.
References u64.
Referenced by build_vol_hash_table(), cache_hash(), LogObject::compute_signature(), CacheVC::evacuateDocDone(), fold_md5(), UpdateConfigList::HashAdd(), LogFormat::id_from_name(), and ClusterVConnectionCache::MD5ToIndex().
bool ats::CryptoHash::operator!= | ( | CryptoHash const & | that | ) | const [inline] |
Equality - bitwise identical.
Definition at line 54 of file CryptoHash.h.
CryptoHash& ats::CryptoHash::operator= | ( | CryptoHash const & | that | ) | [inline] |
bool ats::CryptoHash::operator== | ( | CryptoHash const & | that | ) | const [inline] |
uint64_t ats::CryptoHash::operator[] | ( | int | i | ) | const [inline] |
uint32_t ats::CryptoHash::slice32 | ( | int | i | ) | const [inline] |
Access 32 bit slice.
Definition at line 75 of file CryptoHash.h.
References u32.
Referenced by Vol::aggWrite(), Cache_dir(), OpenDir::close_write(), RamCacheCLFUS::compress_entries(), RamCacheCLFUS::destroy(), dir_compare_tag(), dir_delete(), dir_insert(), dir_lookaside_cleanup(), dir_lookaside_fixup(), dir_lookaside_insert(), dir_lookaside_probe(), dir_lookaside_remove(), dir_overwrite(), dir_probe(), Vol::evacuate_cleanup_blocks(), evacuate_fragments(), CacheVC::evacuateDocDone(), Vol::evacuateDocReadDone(), CacheVC::evacuateReadHead(), RamCacheLRU::fixup(), RamCacheCLFUS::fixup(), RamCacheLRU::get(), RamCacheCLFUS::get(), PrefetchTransform::hash_add(), Cache::key_to_vol(), Cache::open_write(), OpenDir::open_write(), CacheVC::openReadChooseWriter(), CacheVC::openReadFromWriter(), CacheVC::openReadFromWriterMain(), CacheVC::openReadMain(), CacheVC::openReadReadDone(), CacheVC::openReadStartHead(), CacheVC::openWriteCloseDir(), CacheVC::openWriteWriteDone(), RamCacheLRU::put(), RamCacheCLFUS::put(), RamCacheLRU::remove(), RamCacheLRU::resize_hashtable(), RamCacheCLFUS::resize_hashtable(), CacheVC::scanOpenWrite(), RamCacheCLFUS::tick(), and RamCacheCLFUS::victimize().
uint64_t ats::CryptoHash::slice64 | ( | int | i | ) | const [inline] |
Access 64 bit slice.
Definition at line 70 of file CryptoHash.h.
References u64.
Referenced by CacheVC::handleReadDone().
char* ats::CryptoHash::toHexStr | ( | char | buffer[33] | ) | [inline] |
Fast conversion to hex in fixed sized string.
Definition at line 80 of file CryptoHash.h.
References ink_code_to_hex_str(), and u8.
Referenced by ShowCache::handleCacheEvent(), CacheVC::handleReadDone(), CacheVC::openReadMain(), CacheVC::openReadReadDone(), CacheVC::openReadStartEarliest(), and CacheVC::openReadStartHead().
uint64_t ats::CryptoHash::b[2] |
Definition at line 30 of file CryptoHash.h.
Referenced by Cache_dir(), CacheTestSM::check_buffer(), CacheTestSM::fill_buffer(), CacheVC::handleReadDone(), CacheVC::openWriteCloseDir(), and rand_CacheKey().
uint32_t ats::CryptoHash::u32[4] |
Definition at line 32 of file CryptoHash.h.
Referenced by slice32().
uint64_t ats::CryptoHash::u64[2] |
Definition at line 31 of file CryptoHash.h.
Referenced by CryptoHash(), fold(), operator=(), operator==(), operator[](), and slice64().
uint8_t ats::CryptoHash::u8[16] |
Definition at line 33 of file CryptoHash.h.
Referenced by MMHContext::finalize(), MD5Context::finalize(), and toHexStr().