siphash-1.0.3: siphash: a fast short input PRF

Portabilitygood
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Crypto.MAC.SipHash

Description

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

Synopsis

Documentation

data SipKey Source

SigHash Key

Constructors

SipKey !Word64 !Word64 

newtype SipHash Source

Siphash tag value

Constructors

SipHash Word64 

Instances

hash :: SipKey -> ByteString -> SipHashSource

produce a siphash with a key and a bytestring.

hashWith :: Int -> Int -> SipKey -> ByteString -> SipHashSource

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