siphash-1.0.3: siphash: a fast short input PRF

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilitygood
Safe HaskellNone
LanguageHaskell98

Crypto.MAC.SipHash

Description

provide the SipHash algorithm. reference: http://131002.net/siphash/siphash.pdf

Synopsis

Documentation

data SipKey #

SigHash Key

Constructors

SipKey !Word64 !Word64 

newtype SipHash #

Siphash tag value

Constructors

SipHash Word64 

Instances

hash :: SipKey -> ByteString -> SipHash #

produce a siphash with a key and a bytestring.

hashWith :: Int -> Int -> SipKey -> ByteString -> SipHash #

same as hash, except also specifies the number of sipround iterations for compression and digest.