HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulememory-0.18.0Haskell2010

Data.ByteArray.Hash

provide the SipHash algorithm. reference: http://131002.net/siphash/siphash.pdf

  • 4 types
  • 6 values
  • Packagememory-0.18.0
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHash.hs

SipHash

4 declarations
newtypenewtype SipHash
#

Siphash tag value

Constructors

Instances3Eq, Ord, Show
  • Eq SipHashDefined in memory-0.18.0 · Data.Memory.Hash.SipHash
  • Ord SipHashDefined in memory-0.18.0 · Data.Memory.Hash.SipHash
  • Show SipHashDefined in memory-0.18.0 · Data.Memory.Hash.SipHash
valuesipHashWith
  1. :: ByteArrayAccess ba
  2. => Int

    c rounds

  3. -> Int

    d rounds

  4. -> SipKey

    key

  5. -> ba

    data to hash

  6. -> SipHash
#

Compute the SipHash tag of a byte array for a given key.

The user can choose the C and D numbers of rounds.

calling sipHash is equivalent to 'sipHashWith 2 4'

FNV1 and FNV1a (32 and 64 bits)

6 declarations