Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Change all instances of sig to sip
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Dec 16, 2012
1 parent d8f6d7c commit cc2486b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -7,25 +7,25 @@ algorithm.
Install
-------

cabal install sighash
cabal install siphash

Usage
-----

sighash-2-4:
siphash-2-4:

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

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

sighash-c-d:
siphash-c-d:

import Crypto.MAC.SigHash (hash)
import Crypto.MAC.SipHash (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")
tag = hashWith nbCompressionRounds nbDigestRounds (SipKey k0 k1) (B.pack "my text to hash")

0 comments on commit cc2486b

Please sign in to comment.