The siphash package

[ Tags: bsd3, cryptography, data, deprecated, library ] [ Propose Tags ]
Deprecated. in favor of memory

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


[Skip to Readme]

Properties

Versions 1.0.0, 1.0.1, 1.0.2, 1.0.3
Dependencies base (>=4.5 && <6), bytestring, cpu [details]
License BSD3
Copyright Vincent Hanquez <vincent@snarc.org>
Author Vincent Hanquez <vincent@snarc.org>
Maintainer Vincent Hanquez <vincent@snarc.org>
Category Data, Cryptography
Home page http://github.com/vincenthz/hs-siphash
Source repository head: git clone git://github.com/vincenthz/hs-siphash
Uploaded Fri Dec 14 08:22:55 UTC 2012 by VincentHanquez
Updated Sun Nov 6 21:55:20 UTC 2016 by phadej to revision 1   [What is this?]
Distributions LTSHaskell:1.0.3, NixOS:1.0.3, Stackage:1.0.3, Tumbleweed:1.0.3
Downloads 3538 total (154 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

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

For package maintainers and hackage trustees


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")