cipher-rc4 0.1.0 → 0.1.1
raw patch · 3 files changed
+9/−11 lines, 3 filesdep −vectorPVP ok
version bump matches the API change (PVP)
Dependencies removed: vector
API changes (from Hackage documentation)
Files
- Benchmarks/Benchmarks.hs +5/−5
- Tests/Tests.hs +3/−4
- cipher-rc4.cabal +1/−2
Benchmarks/Benchmarks.hs view
@@ -18,11 +18,11 @@ , bench "256" $ whnf initCtx b256 ] , bgroup "encrypt"- [ bench "8" $ nf (encrypt ctx) b8- , bench "32" $ nf (encrypt ctx) b32- , bench "64" $ nf (encrypt ctx) b64- , bench "256" $ nf (encrypt ctx) b256- , bench "1024" $ nf (encrypt ctx) b1024+ [ bench "8" $ nf (combine ctx) b8+ , bench "32" $ nf (combine ctx) b32+ , bench "64" $ nf (combine ctx) b64+ , bench "256" $ nf (combine ctx) b256+ , bench "1024" $ nf (combine ctx) b1024 ] ] where b1 = B.replicate 1 0xf7
Tests/Tests.hs view
@@ -34,8 +34,8 @@ ] runKat (key,plainText,cipherText) =- snd (RC4.encrypt ctx plainText) == cipherText- && snd (RC4.decrypt ctx cipherText) == plainText+ snd (RC4.combine ctx plainText) == cipherText+ && snd (RC4.combine ctx cipherText) == plainText where ctx = RC4.initCtx $ key katToTestProperty (kat, i) = testProperty ("KAT " ++ show i) (runKat kat)@@ -56,8 +56,7 @@ tests = [ testGroup "KAT-RC4" $ map katToTestProperty $ zip kats [0..] , testGroup "id"- [ testProperty "encrypt.decrypt" (runOp RC4.decrypt RC4.encrypt)- , testProperty "decrypt.encrypt" (runOp RC4.encrypt RC4.decrypt)+ [ testProperty "combine.combine" (runOp RC4.combine RC4.combine) ] ]
cipher-rc4.cabal view
@@ -1,5 +1,5 @@ Name: cipher-rc4-Version: 0.1.0+Version: 0.1.1 Description: Fast RC4 cipher implementation License: BSD3 License-file: LICENSE@@ -17,7 +17,6 @@ Library Build-Depends: base >= 4 && < 5 , bytestring- , vector Exposed-modules: Crypto.Cipher.RC4 ghc-options: -Wall C-sources: cbits/rc4.c