cryptonite-0.25: Cryptography Primitives sink

License | BSD-style
Maintainer | Vincent Hanquez <vincent@snarc.org>
Stability | stable
Portability | good
Safe Haskell | None
Language | Haskell2010

Crypto.Cipher.Blowfish

Description

Synopsis

- data Blowfish
- data Blowfish64
- data Blowfish128
- data Blowfish256
- data Blowfish448

# Documentation

data Blowfish #

variable keyed blowfish state

Instances

NFData Blowfish # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish -> () #
Cipher Blowfish # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish # cipherName :: Blowfish -> String # cipherKeySize :: Blowfish -> KeySizeSpecifier #
BlockCipher Blowfish # |
Instance details Defined in Crypto.Cipher.Blowfish Methods blockSize :: Blowfish -> Int # ecbEncrypt :: ByteArray ba => Blowfish -> ba -> ba # ecbDecrypt :: ByteArray ba => Blowfish -> ba -> ba # cbcEncrypt :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba # cbcDecrypt :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba # cfbEncrypt :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba # cfbDecrypt :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba # ctrCombine :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba # aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish -> iv -> CryptoFailable (AEAD Blowfish) #

data Blowfish64 #

64 bit keyed blowfish state

Instances

NFData Blowfish64 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish64 -> () #
Cipher Blowfish64 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish64 # cipherName :: Blowfish64 -> String # cipherKeySize :: Blowfish64 -> KeySizeSpecifier #
BlockCipher Blowfish64 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods blockSize :: Blowfish64 -> Int # ecbEncrypt :: ByteArray ba => Blowfish64 -> ba -> ba # ecbDecrypt :: ByteArray ba => Blowfish64 -> ba -> ba # cbcEncrypt :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba # cbcDecrypt :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba # cfbEncrypt :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba # cfbDecrypt :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba # ctrCombine :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba # aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish64 -> iv -> CryptoFailable (AEAD Blowfish64) #

data Blowfish128 #

128 bit keyed blowfish state

Instances

NFData Blowfish128 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish128 -> () #
Cipher Blowfish128 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish128 # cipherName :: Blowfish128 -> String # cipherKeySize :: Blowfish128 -> KeySizeSpecifier #
BlockCipher Blowfish128 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods blockSize :: Blowfish128 -> Int # ecbEncrypt :: ByteArray ba => Blowfish128 -> ba -> ba # ecbDecrypt :: ByteArray ba => Blowfish128 -> ba -> ba # cbcEncrypt :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba # cbcDecrypt :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba # cfbEncrypt :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba # cfbDecrypt :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba # ctrCombine :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba # aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish128 -> iv -> CryptoFailable (AEAD Blowfish128) #

data Blowfish256 #

256 bit keyed blowfish state

Instances

NFData Blowfish256 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish256 -> () #
Cipher Blowfish256 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish256 # cipherName :: Blowfish256 -> String # cipherKeySize :: Blowfish256 -> KeySizeSpecifier #
BlockCipher Blowfish256 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods blockSize :: Blowfish256 -> Int # ecbEncrypt :: ByteArray ba => Blowfish256 -> ba -> ba # ecbDecrypt :: ByteArray ba => Blowfish256 -> ba -> ba # cbcEncrypt :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba # cbcDecrypt :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba # cfbEncrypt :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba # cfbDecrypt :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba # ctrCombine :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba # aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish256 -> iv -> CryptoFailable (AEAD Blowfish256) #

data Blowfish448 #

448 bit keyed blowfish state

Instances

NFData Blowfish448 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish448 -> () #
Cipher Blowfish448 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish448 # cipherName :: Blowfish448 -> String # cipherKeySize :: Blowfish448 -> KeySizeSpecifier #
BlockCipher Blowfish448 # |
Instance details Defined in Crypto.Cipher.Blowfish Methods blockSize :: Blowfish448 -> Int # ecbEncrypt :: ByteArray ba => Blowfish448 -> ba -> ba # ecbDecrypt :: ByteArray ba => Blowfish448 -> ba -> ba # cbcEncrypt :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba # cbcDecrypt :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba # cfbEncrypt :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba # cfbDecrypt :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba # ctrCombine :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba # aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish448 -> iv -> CryptoFailable (AEAD Blowfish448) #