Module sip

Source
Expand description

An implementation of SipHash.

Macrosยง

compress ๐Ÿ”’
load_int_le ๐Ÿ”’
Loads an integer of the desired type from a byte stream, in LE order. Uses copy_nonoverlapping to let the compiler generate the most efficient way to load it from a possibly unaligned address.

Structsยง

Hasher ๐Ÿ”’
Sip13Rounds ๐Ÿ”’
Sip24Rounds ๐Ÿ”’
SipHasherDeprecated
An implementation of SipHash 2-4.
State ๐Ÿ”’
SipHasher13 ๐Ÿ‘ป DeprecatedExperimental
An implementation of SipHash 1-3.
SipHasher24 ๐Ÿ”’ DeprecatedExperimental
An implementation of SipHash 2-4.

Traitsยง

Sip ๐Ÿ”’๐Ÿ‘ป

Functionsยง

u8to64_le ๐Ÿ”’ โš 
Loads a u64 using up to 7 bytes of a byte slice. It looks clumsy but the copy_nonoverlapping calls that occur (via load_int_le!) all have fixed sizes and avoid calling memcpy, which is good for speed.