-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Symmetrical block and stream ciphers.
--
-- Symmetrical block and stream ciphers.
--
-- This package is eventually going away in this form, and should be
-- considered deprecated. use 'cipher-aes' for AES. For blowfish,
-- camellia, DES/3DES, the package is still maintained, but eventually
-- each cipher will be available in another package.
@package cryptocipher
@version 0.5.2
-- | This module is copy of DES module from Crypto package.
-- http:hackage.haskell.orgpackageCrypto
module Crypto.Cipher.DES
-- | Basic DES encryption which takes a key and a block of plaintext and
-- returns the encrypted block of ciphertext according to the standard.
encrypt :: Word64 -> Word64 -> Word64
-- | Basic DES decryption which takes a key and a block of ciphertext and
-- returns the decrypted block of plaintext according to the standard.
decrypt :: Word64 -> Word64 -> Word64
instance Bits [Bool]
instance Num [Bool]
module Crypto.Cipher.TripleDES
data DesEee3Key
DesEee3Key :: Word64 -> Word64 -> Word64 -> DesEee3Key
data DesEde3Key
DesEde3Key :: Word64 -> Word64 -> Word64 -> DesEde3Key
data DesEee2Key
DesEee2Key :: Word64 -> Word64 -> DesEee2Key
data DesEde2Key
DesEde2Key :: Word64 -> Word64 -> DesEde2Key
instance Show DesEee3Key
instance Eq DesEee3Key
instance Show DesEde3Key
instance Eq DesEde3Key
instance Show DesEee2Key
instance Eq DesEee2Key
instance Show DesEde2Key
instance Eq DesEde2Key
instance BlockCipher DesEde2Key
instance BlockCipher DesEee2Key
instance BlockCipher DesEde3Key
instance BlockCipher DesEee3Key
instance Serialize DesEde2Key
instance Serialize DesEee2Key
instance Serialize DesEde3Key
instance Serialize DesEee3Key
-- | this only cover Camellia 128 bits for now, API will change once 192
-- and 256 mode are implemented too
module Crypto.Cipher.Camellia
data Key
Key :: Vector Word64 -> Vector Word64 -> Vector Word64 -> Key
k :: Key -> Vector Word64
kw :: Key -> Vector Word64
ke :: Key -> Vector Word64
initKey128 :: ByteString -> Either String Key
-- | encrypt with the key a bytestring and returns the encrypted bytestring
encrypt :: Key -> ByteString -> ByteString
-- | decrypt with the key a bytestring and returns the encrypted bytestring
decrypt :: Key -> ByteString -> ByteString
instance Show Word128
instance Eq Word128
instance Show Key
module Crypto.Cipher.Blowfish
data Blowfish
data Key
initKey :: ByteString -> Either String Key
encrypt :: Key -> ByteString -> ByteString
decrypt :: Key -> ByteString -> ByteString
encryptBlock :: Blowfish -> ByteString -> ByteString
decryptBlock :: Blowfish -> ByteString -> ByteString
buildKey :: ByteString -> Maybe Blowfish
instance Eq Key
instance Show Key
instance Serialize Key
instance Serialize Blowfish
-- | This module just re-export Crypto.Cipher.RC4 from the cipher-rc4
-- module.
--
-- Documentation can be found at
-- http://hackage.haskell.org/package/cipher-rc4
module Crypto.Cipher.RC4
-- | This module just re-export Crypto.Cipher.AES from the cipher-aes
-- module.
--
-- Documentation can be found at
-- http://hackage.haskell.org/package/cipher-aes
module Crypto.Cipher.AES