hashes-0.1.0.0: Hash functions
CopyrightCopyright © 2021 Lars Kuhtz <lakuhtz@gmail.com>
LicenseMIT
MaintainerLars Kuhtz <lakuhtz@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.Hash.SipHash

Contents

Description

 
Synopsis

Documentation

sipHash :: Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64 Source #

SipHash, with recommended default parameters of c=2 and c=4.

The first and second argument is the 128 bit key, represented as two 64 bit words.

sipHash13 :: Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64 Source #

SipHash-1-3

The first and second argument is the 128 bit key, represented as two 64 bit words.

sipHash24 :: Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64 Source #

SipHash-2-4

The first and second argument is the 128 bit key, represented as two 64 bit words.

sipHash48 :: Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64 Source #

SipHash-4-8

The first and second argument is the 128 bit key, represented as two 64 bit words.

sipHashCD :: Int -> Int -> Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64 Source #

Generic SipHash with c rounds per block and d finalization rounds.

The first and second argument is the 128 bit key, represented as two 64 bit words.

Utils