BloombergLP::bslh::SipHashAlgorithm

This class wraps an implementation of the "SipHash" algorithm in an interface that is usable in the modular hashing system in bslh.

Synopsis

Declared in <bslh_siphashalgorithm.h>

class SipHashAlgorithm;

Type Aliases

NameDescription
result_type Typedef indicating the value type returned by this algorithm.

Enums

NameDescription
Unnamed enum Compile-time constants for the SipHash algorithm.

Member Functions

NameDescription
SipHashAlgorithm [constructor]Create a bslh::SipHashAlgorithm seeded with the specified seed.
computeHash Return the finalized hash value accumulated by this algorithm.
operator() Incorporate the specified data of numBytes into the hash state.

Data Members

NameDescription
d_alignment [variant member]Ensures proper alignment for buffered data.
d_buf [variant member]Used to buffer data until we have enough to do a full round of computation as specified by the algorithm.