From cc2486b6c56641df4ef9edf34d088b95825c15f1 Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Sun, 16 Dec 2012 02:52:59 +0200 Subject: [PATCH] Change all instances of sig to sip --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c888f8c..8bbc249 100644 --- a/README.md +++ b/README.md @@ -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")