The siphash package

[Tags:bsd3, crypto-platform, cryptography, deprecated, library, siphash, test]
Deprecated. in favor of memory

Haskell implementation of siphash. [http:131002.netsiphashsiphash.pdf]


[Skip to Readme]

Properties

Versions 1.0.0, 1.0.1, 1.0.2, 1.0.3
Dependencies base (>=4 && <6), bytestring, cpu [details]
License BSD3
Copyright Vincent Hanquez <vincent@snarc.org>
Author Vincent Hanquez <vincent@snarc.org>
Maintainer Vincent Hanquez <vincent@snarc.org>
Stability Unknown
Category Data, Cryptography
Home page http://github.com/vincenthz/hs-siphash
Source repository head: git clone git://github.com/vincenthz/hs-siphash
Uploaded Sun Sep 30 14:50:48 UTC 2012 by VincentHanquez
Distributions LTSHaskell:1.0.3, NixOS:1.0.3, Stackage:1.0.3, Tumbleweed:1.0.3
Downloads 3084 total (14 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for siphash

Readme for siphash-1.0.2

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