Modulememory-0.18.0Haskell2010
Data.ByteArray.Hash
provide the SipHash algorithm. reference: http://131002.net/siphash/siphash.pdf
- 4 types
- 6 values
- Packagememory-0.18.0
- Exports10
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceHash.hs
SipHash
4 declarationsCompute the SipHash tag of a byte array for a given key.
sipHash is equivalent to 'sipHashWith 2 4'
value
sipHashWith :: ByteArrayAccess ba=> Intc rounds
-> Intd rounds
-> SipKeykey
-> badata to hash
-> SipHash
Compute the SipHash tag of a byte array for a given key.
The user can choose the C and D numbers of rounds.
calling sipHash is equivalent to 'sipHashWith 2 4'
FNV1 and FNV1a (32 and 64 bits)
6 declarationsCompute the FNV1 32 bit hash value of a byte array
Compute the FNV1a 32 bit hash value of a byte array
Compute the FNV1 64 bit hash value of a byte array
Compute the FNV1a 64 bit hash value of a byte array