-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | siphash: a fast short input PRF
--   
--   Haskell implementation of siphash.
--   [http:/<i>131002.net</i>siphash/siphash.pdf]
@package siphash
@version 1.0.3


-- | provide the SipHash algorithm. reference:
--   <a>http://131002.net/siphash/siphash.pdf</a>
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 <a>hash</a>, except also specifies the number of sipround
--   iterations for compression and digest.
hashWith :: Int -> Int -> SipKey -> ByteString -> SipHash
instance GHC.Classes.Eq Crypto.MAC.SipHash.SipHash
instance GHC.Show.Show Crypto.MAC.SipHash.SipHash
