bytehash-0.1.0.0: Universal hashing of bytes

Safe HaskellNone
LanguageHaskell2010

Data.Bytes.Hash

Description

Hash functions for byte sequences of a bounded size.

Synopsis

Documentation

byteArray Source #

Arguments

:: ByteArray

Entropy, must be at least (W + 1) * 8 bytes

-> ByteArray

Bytes to hash

-> Word32 

Hash a byte array of length n. This takes advantage of the machine-word alignment guarantee that GHC provides for byte arrays.

bytes Source #

Arguments

:: ByteArray

Entropy, must be at least (W + 1) * 8 bytes

-> Bytes

Bytes to hash

-> Word32 

Hash a byte sequence of length n.

entropy :: Ptr Word8 Source #

Statically defined source of entropy. Exactly 16384 bytes.