crypto-cipher-types 0.0.1 → 0.0.2
raw patch · 2 files changed
+1/−42 lines, 2 filesdep −HUnitdep −QuickCheckdep −crypto-cipher-typesdep ~basedep ~byteablePVP ok
version bump matches the API change (PVP)
Dependencies removed: HUnit, QuickCheck, crypto-cipher-types, mtl, test-framework, test-framework-hunit, test-framework-quickcheck2
Dependency ranges changed: base, byteable
API changes (from Hackage documentation)
Files
- crypto-cipher-types.cabal +1/−17
- tests/Tests.hs +0/−25
crypto-cipher-types.cabal view
@@ -1,5 +1,5 @@ Name: crypto-cipher-types-Version: 0.0.1+Version: 0.0.2 Synopsis: Generic cryptography cipher types Description: Generic cryptography cipher types License: BSD3@@ -22,22 +22,6 @@ , byteable >= 0.1.1 , securemem >= 0.1.1 ghc-options: -Wall -fwarn-tabs--Test-Suite test-crypto-cipher-types- type: exitcode-stdio-1.0- hs-source-dirs: tests ../tests- Main-is: Tests.hs- Build-Depends: base >= 3 && < 5- , bytestring- , byteable- , crypto-cipher-types- , mtl- , QuickCheck >= 2- , HUnit- , test-framework- , test-framework-quickcheck2- , test-framework-hunit- ghc-options: -Wall -fno-warn-orphans -fno-warn-missing-signatures source-repository head type: git
− tests/Tests.hs
@@ -1,25 +0,0 @@-{-# LANGUAGE ViewPatterns #-}-module Main where--import Test.Framework (defaultMain)-import Crypto.Cipher.Types-import Crypto.Cipher.Tests-import qualified Data.ByteString as B-import Data.Bits (xor)---- | the XOR cipher is so awesome that it doesn't need any key or state.-data XorCipher = XorCipher--instance Cipher XorCipher where- cipherInit _ = XorCipher- cipherName _ = "xor"- cipherKeySize _ = Just 0--instance BlockCipher XorCipher where- blockSize _ = 16- ecbEncrypt _ b = B.pack $ B.zipWith xor (B.replicate (B.length b) 0xa5) b- ecbDecrypt _ b = B.pack $ B.zipWith xor (B.replicate (B.length b) 0xa5) b--tests = testBlockCipher defaultKATs (undefined :: XorCipher)--main = defaultMain [tests]