PresaltedSipHasher

Optimized SipHash-2-4 implementation for uint256.

Synopsis

Declared in <crypto/siphash.h>

class PresaltedSipHasher;

Description

This class caches the initial SipHash state (v0..v3) derived from (k0, k1) and implements a specialized hashing path for uint256 values, with or without an extra 32-bit word. The internal state is immutable, so PresaltedSipHasher instances can be reused for multiple hashes with the same key.

Member Functions

NameDescription
PresaltedSipHasher [constructor]Construct a presalted hasher caching the state derived from 128-bit key (k0, k1).
operator() Function call operators