An implementation of SipHash 2-4.
SipHash is a general-purpose hashing function: it runs at a good
speed (competitive with Spooky and City) and permits strong keyed
hashing. This lets you key your hash tables from a strong RNG, such as
Although the SipHash algorithm is considered to be generally strong, it is not intended for cryptographic purposes. As such, all cryptographic uses of this implementation are strongly discouraged.
Creates a new
SipHasher with the two initial keys set to 0.
pub fn new_with_keys(key0: u64, key1: u64) -> SipHasher[src]
SipHasher that is keyed off the provided keys.
fn write_u128(&mut self, i: u128)1.26.0[src]
fn write_usize(&mut self, i: usize)1.3.0[src]
fn write_i128(&mut self, i: i128)1.26.0[src]
fn write_isize(&mut self, i: isize)1.3.0[src]
Auto Trait Implementations
type Error = Infallible
The type returned in the event of a conversion error.