cryptocipher 0.6.1 → 0.6.2
raw patch · 2 files changed
+45/−8 lines, 2 filesdep ~cipher-aesdep ~cipher-blowfishdep ~cipher-camellia
Dependency ranges changed: cipher-aes, cipher-blowfish, cipher-camellia, cipher-des, cipher-rc4, crypto-cipher-types
Files
- Crypto/Cipher.hs +38/−1
- cryptocipher.cabal +7/−7
Crypto/Cipher.hs view
@@ -1,12 +1,49 @@+-- |+-- Module : Crypto.Cipher+-- License : BSD-style+-- Maintainer : Vincent Hanquez <vincent@snarc.org>+-- Stability : stable+-- Portability : good+--+-- All the cipher functionalities are available through the+-- BlockCipher and StreamCipher classes.+--+-- A simplified example (with simplified error handling):+--+-- > import Crypto.Cipher+-- > import Data.ByteString (ByteString)+-- > import qualified Data.ByteString as B+-- >+-- > initAES256 :: ByteString -> AES256+-- > initAES256 = either (error . show) cipherInit . makeKey+-- >+-- > cbcEncryption :: AES256 -> ByteString -> ByteString -> ByteString+-- > cbcEncryption ctx ivRaw plainText = cbcEncrypt ctx iv plainText+-- > where iv = maybe (error "invalid IV") id $ ivRaw+-- module Crypto.Cipher ( -- * Cipher classes Cipher(..) , BlockCipher(..) , StreamCipher(..)+ -- * Key+ , Key+ , makeKey+ -- * Initialization Vector (IV)+ , IV+ , makeIV+ , nullIV+ , ivAdd+ -- * Authenticated Encryption with Associated Data (AEAD)+ , AEAD+ , aeadAppendHeader+ , aeadEncrypt+ , aeadDecrypt+ , aeadFinalize -- * Cipher implementations , AES128, AES192, AES256- , Blowfish+ , Blowfish, Blowfish64, Blowfish128, Blowfish256, Blowfish448 , DES , DES_EEE3, DES_EDE3, DES_EEE2, DES_EDE2 , Camellia128
cryptocipher.cabal view
@@ -1,5 +1,5 @@ Name: cryptocipher-Version: 0.6.1+Version: 0.6.2 Description: Symmetrical block and stream ciphers. License: BSD3 License-file: LICENSE@@ -14,12 +14,12 @@ Library Build-Depends: base >= 4 && < 5- , crypto-cipher-types- , cipher-aes >= 0.2.3- , cipher-rc4- , cipher-des- , cipher-blowfish- , cipher-camellia+ , crypto-cipher-types >= 0.0.8 && < 0.1+ , cipher-aes >= 0.2.3 && < 0.3+ , cipher-rc4 >= 0.1.3 && < 0.2+ , cipher-des >= 0.0 && < 0.1+ , cipher-blowfish >= 0.0 && < 0.1+ , cipher-camellia >= 0.0 && < 0.1 Exposed-modules: Crypto.Cipher ghc-options: -Wall