Module sip
An implementation of SipHash.
Structs
- Hasher
- Sip13Rounds
- Sip24Rounds
- SipHasher An implementation of SipHash 2-4.
- SipHasher13 An implementation of SipHash 1-3.
- SipHasher24 An implementation of SipHash 2-4.
- State
Traits
Functions
-
u8to64_le
Loads a u64 using up to 7 bytes of a byte slice. It looks clumsy but the
copy_nonoverlappingcalls that occur (viaload_int_le!) all have fixed sizes and avoid callingmemcpy, which is good for speed.
Macros
- compress
-
load_int_le
Loads an integer of the desired type from a byte stream, in LE order. Uses
copy_nonoverlappingto let the compiler generate the most efficient way to load it from a possibly unaligned address.