siphash: siphash: a fast short input PRF

[ bsd3, cryptography, data, deprecated, library ] [ Propose Tags ] [ Report a vulnerability ]
Deprecated in favor of memory

Haskell implementation of siphash. [http://131002.net/siphash/siphash.pdf]


[Skip to Readme]

Modules

[Index]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0, 1.0.1, 1.0.2, 1.0.3
Dependencies base (>=4.5 && <6), bytestring (<0.11), cpu [details]
License BSD-3-Clause
Copyright Vincent Hanquez <vincent@snarc.org>
Author Vincent Hanquez <vincent@snarc.org>
Maintainer Vincent Hanquez <vincent@snarc.org>
Revised Revision 2 made by phadej at 2021-12-12T11:43:55Z
Category Data, Cryptography
Home page http://github.com/vincenthz/hs-siphash
Source repo head: git clone git://github.com/vincenthz/hs-siphash
Uploaded by VincentHanquez at 2012-12-14T08:22:55Z
Distributions
Reverse Dependencies 6 direct, 4 indirect [details]
Downloads 7263 total (31 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for siphash-1.0.3

[back to package description]

Haskell Siphash

Simple module to compute the SipHash algorithm.

Install

cabal install sighash

Usage

sighash-2-4:

import Crypto.MAC.SigHash (hash)
import qualified Data.ByteString.Char8 as B

k0 = 0xaaaaaaaaaaaaaaaa
k1 = 0xbbbbbbbbbbbbbbbb
tag = hash (SigKey k0 k1) (B.pack "my text to hash")

sighash-c-d:

import Crypto.MAC.SigHash (hash)
import qualified Data.ByteString.Char8 as B

k0 = 0xaaaaaaaaaaaaaaaa
k1 = 0xbbbbbbbbbbbbbbbb
tag = hashWith nbCompressionRounds nbDigestRounds (SigKey k0 k1) (B.pack "my text to hash")