-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | siphash: a fast short input PRF -- -- Haskell implementation of siphash. -- [http:131002.netsiphashsiphash.pdf] @package siphash @version 1.0.2 -- | provide the SipHash algorithm. reference: -- http://131002.net/siphash/siphash.pdf module Crypto.MAC.SipHash -- | SigHash Key data SipKey SipKey :: {-# UNPACK #-} !Word64 -> {-# UNPACK #-} !Word64 -> SipKey -- | Siphash tag value newtype SipHash SipHash :: Word64 -> SipHash -- | produce a siphash with a key and a bytestring. hash :: SipKey -> ByteString -> SipHash -- | same as hash, except also specifies the number of sipround -- iterations for compression and digest. hashWith :: Int -> Int -> SipKey -> ByteString -> SipHash instance Show SipHash instance Eq SipHash