HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleram-0.22.1Haskell2010

Data.ByteArray.Hash

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

  • 4 types
  • 6 values
  • Packageram-0.22.1
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHash.hs

SipHash

4 declarations
newtypenewtype SipHash
#

Siphash tag value

Constructors

Instances3Eq, Ord, Show
  • Eq SipHashDefined in ram-0.22.1 · Data.Memory.Hash.SipHash
  • Ord SipHashDefined in ram-0.22.1 · Data.Memory.Hash.SipHash
  • Show SipHashDefined in ram-0.22.1 · 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