HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

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)