The siphash package

[Tags: bsd3, crypto-platform, cryptography, deprecated, library, siphash]

Deprecated in favor of memory

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


[Skip to ReadMe]

Properties

Versions1.0.0, 1.0.1, 1.0.2, 1.0.3
Change logNone available
Dependenciesbase (>=4 && <6), bytestring, cpu [details]
LicenseBSD3
CopyrightVincent Hanquez <vincent@snarc.org>
AuthorVincent Hanquez <vincent@snarc.org>
MaintainerVincent Hanquez <vincent@snarc.org>
CategoryData, Cryptography
Home pagehttp://github.com/vincenthz/hs-siphash
Source repositoryhead: git clone git://github.com/vincenthz/hs-siphash
UploadedSun Sep 30 14:50:48 UTC 2012 by VincentHanquez
DistributionsLTSHaskell:1.0.3, NixOS:1.0.3, Stackage:1.0.3
Downloads2721 total (128 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

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