struct HashState { ... }
SipHash-1-3's running state: its four words, and how many words have been written. Every field is u64, so HashState is Copy and threads through repeated write_u64 calls by value.
Methods
method newsource
fn new(seed: Seed) -> HashState { ... }
A fresh state under seed, before anything is written.
method roundsource
fn round(self) -> HashState { ... }
One SipRound. u64 arithmetic wraps modulo 2^64.
method compresssource
fn compress(self, m: u64) -> HashState { ... }
The state with the word m compressed in: one SipRound.
method write_u64source
fn write_u64(self, v: u64) -> HashState { ... }
The state with the word v written: the next 8 bytes of the encoding.
method finishsource
fn finish(self) -> u64 { ... }
The hash of everything written: SipHash-1-3's last block, which holds the encoding's length in bytes (8 per word) modulo 256 in its top byte, then its three finishing rounds.