SipHash24.
More...
#include <hash.h>

 CSipHasher (uint64_t k0, uint64_t k1) 
 Construct a SipHash calculator initialized with 128bit key (k0, k1) More...


CSipHasher &  Write (uint64_t data) 
 Hash a 64bit integer worth of data It is treated as if this was the littleendian interpretation of 8 bytes. More...


CSipHasher &  Write (const unsigned char *data, size_t size) 
 Hash arbitrary bytes. More...


uint64_t  Finalize () const 
 Compute the 64bit SipHash24 of the data written so far. More...


SipHash24.
Definition at line 198 of file hash.h.
CSipHasher::CSipHasher 
( 
uint64_t 
k0, 


uint64_t 
k1 

) 
 
Construct a SipHash calculator initialized with 128bit key (k0, k1)
Definition at line 93 of file hash.cpp.
uint64_t CSipHasher::Finalize 
( 
 ) 
const 
Compute the 64bit SipHash24 of the data written so far.
The object remains untouched.
Definition at line 151 of file hash.cpp.
Hash a 64bit integer worth of data It is treated as if this was the littleendian interpretation of 8 bytes.
This function can only be used when a multiple of 8 bytes have been written so far.
Definition at line 103 of file hash.cpp.
CSipHasher & CSipHasher::Write 
( 
const unsigned char * 
data, 


size_t 
size 

) 
 
Hash arbitrary bytes.
Definition at line 123 of file hash.cpp.
uint64_t CSipHasher::v[4] 

private 
The documentation for this class was generated from the following files: