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

Name

Description

result_type

Typedef indicating the value type returned by this algorithm.

Enums

Name

Description

Unnamed enum

Compile‐time constants for the SipHash algorithm.

Member Functions

Name

Description

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

Name

Description

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.

Created with MrDocs