Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
siphash algorithm in haskell
Haskell
tree: c8005474df

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Crypto/MAC
Tests
LICENSE
README.md
Setup.hs
siphash.cabal

README.md

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")
Something went wrong with that request. Please try again.