siphasher

Module sip128

source
Expand description

An implementation of SipHash with a 128-bit output.

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ยง

Traitsยง

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.