Public Member Functions | Data Fields

ats::CryptoHash Union Reference

Crypto hash output. More...

#include <CryptoHash.h>

Public Member Functions

 CryptoHash ()
 Default constructor - init to zero.
CryptoHashoperator= (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]

Detailed Description

Crypto hash output.

Definition at line 29 of file CryptoHash.h.


Constructor & Destructor Documentation

ats::CryptoHash::CryptoHash (  )  [inline]

Default constructor - init to zero.

Definition at line 36 of file CryptoHash.h.

References u64.


Member Function Documentation

uint64_t ats::CryptoHash::fold (  )  const [inline]
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]

Assignment - bitwise copy.

Definition at line 42 of file CryptoHash.h.

References u64.

bool ats::CryptoHash::operator== ( CryptoHash const &  that  )  const [inline]

Equality - bitwise identical.

Definition at line 49 of file CryptoHash.h.

References u64.

uint64_t ats::CryptoHash::operator[] ( int  i  )  const [inline]

Access 64 bit slice.

Definition at line 64 of file CryptoHash.h.

References u64.

uint32_t ats::CryptoHash::slice32 ( int  i  )  const [inline]
uint64_t ats::CryptoHash::slice64 ( int  i  )  const [inline]

Access 64 bit slice.

Note:
Identical to @ operator[] but included for symmetry.

Definition at line 70 of file CryptoHash.h.

References u64.

Referenced by CacheVC::handleReadDone().

char* ats::CryptoHash::toHexStr ( char  buffer[33]  )  [inline]

Field Documentation

uint64_t ats::CryptoHash::b[2]
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().


The documentation for this union was generated from the following file: