This class wraps an implementation of the "SipHash" algorithm in an interface that is usable in the modular hashing system in bslh.
Declared in <bslh_siphashalgorithm.h>
class SipHashAlgorithm;
| Name | Description |
|---|---|
result_type | Typedef indicating the value type returned by this algorithm. |
| Name | Description |
|---|---|
Unnamed enum | Compile-time constants for the SipHash algorithm. |
| 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. |
| 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. |