| Copyright | Copyright © 2021 Lars Kuhtz <lakuhtz@gmail.com> |
|---|---|
| License | MIT |
| Maintainer | Lars Kuhtz <lakuhtz@gmail.com> |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Hash.SipHash
Contents
Description
Synopsis
- sipHash :: Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64
- sipHash13 :: Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64
- sipHash24 :: Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64
- sipHash48 :: Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64
- sipHashCD :: Int -> Int -> Word64 -> Word64 -> Ptr Word8 -> Int -> IO Word64
- module Data.Hash.Utils
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
module Data.Hash.Utils