HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Moduleram-0.22.1Haskell2010

Data.ByteArray.Hash

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

Contents
  1. SipHash
  2. FNV1 and FNV1a (32 and 64 bits)
Synopsis
  • Packageram-0.22.1
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHash.hs

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)