crypton-1.0.4: 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 Source #

variable keyed blowfish state

#### Instances

Instances details

Cipher Blowfish Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish Source # cipherName :: Blowfish -> String Source # cipherKeySize :: Blowfish -> KeySizeSpecifier Source #
BlockCipher Blowfish Source # |

Instance details

Defined in Crypto.Cipher.Blowfish

Methods

blockSize :: Blowfish -> Int Source #

ecbEncrypt :: ByteArray ba => Blowfish -> ba -> ba Source #

ecbDecrypt :: ByteArray ba => Blowfish -> ba -> ba Source #

cbcEncrypt :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba Source #

cbcDecrypt :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba Source #

cfbEncrypt :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba Source #

cfbDecrypt :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba Source #

ctrCombine :: ByteArray ba => Blowfish -> IV Blowfish -> ba -> ba Source #

aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish -> iv -> CryptoFailable (AEAD Blowfish) Source #

NFData Blowfish Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish -> () Source #

data Blowfish64 Source #

64 bit keyed blowfish state

#### Instances

Instances details

Cipher Blowfish64 Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish64 Source # cipherName :: Blowfish64 -> String Source # cipherKeySize :: Blowfish64 -> KeySizeSpecifier Source #
BlockCipher Blowfish64 Source # |

Instance details

Defined in Crypto.Cipher.Blowfish

Methods

blockSize :: Blowfish64 -> Int Source #

ecbEncrypt :: ByteArray ba => Blowfish64 -> ba -> ba Source #

ecbDecrypt :: ByteArray ba => Blowfish64 -> ba -> ba Source #

cbcEncrypt :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba Source #

cbcDecrypt :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba Source #

cfbEncrypt :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba Source #

cfbDecrypt :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba Source #

ctrCombine :: ByteArray ba => Blowfish64 -> IV Blowfish64 -> ba -> ba Source #

aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish64 -> iv -> CryptoFailable (AEAD Blowfish64) Source #

NFData Blowfish64 Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish64 -> () Source #

data Blowfish128 Source #

128 bit keyed blowfish state

#### Instances

Instances details

Cipher Blowfish128 Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish128 Source # cipherName :: Blowfish128 -> String Source # cipherKeySize :: Blowfish128 -> KeySizeSpecifier Source #
BlockCipher Blowfish128 Source # |

Instance details

Defined in Crypto.Cipher.Blowfish

Methods

blockSize :: Blowfish128 -> Int Source #

ecbEncrypt :: ByteArray ba => Blowfish128 -> ba -> ba Source #

ecbDecrypt :: ByteArray ba => Blowfish128 -> ba -> ba Source #

cbcEncrypt :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba Source #

cbcDecrypt :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba Source #

cfbEncrypt :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba Source #

cfbDecrypt :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba Source #

ctrCombine :: ByteArray ba => Blowfish128 -> IV Blowfish128 -> ba -> ba Source #

aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish128 -> iv -> CryptoFailable (AEAD Blowfish128) Source #

NFData Blowfish128 Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish128 -> () Source #

data Blowfish256 Source #

256 bit keyed blowfish state

#### Instances

Instances details

Cipher Blowfish256 Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish256 Source # cipherName :: Blowfish256 -> String Source # cipherKeySize :: Blowfish256 -> KeySizeSpecifier Source #
BlockCipher Blowfish256 Source # |

Instance details

Defined in Crypto.Cipher.Blowfish

Methods

blockSize :: Blowfish256 -> Int Source #

ecbEncrypt :: ByteArray ba => Blowfish256 -> ba -> ba Source #

ecbDecrypt :: ByteArray ba => Blowfish256 -> ba -> ba Source #

cbcEncrypt :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba Source #

cbcDecrypt :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba Source #

cfbEncrypt :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba Source #

cfbDecrypt :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba Source #

ctrCombine :: ByteArray ba => Blowfish256 -> IV Blowfish256 -> ba -> ba Source #

aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish256 -> iv -> CryptoFailable (AEAD Blowfish256) Source #

NFData Blowfish256 Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish256 -> () Source #

data Blowfish448 Source #

448 bit keyed blowfish state

#### Instances

Instances details

Cipher Blowfish448 Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods cipherInit :: ByteArray key => key -> CryptoFailable Blowfish448 Source # cipherName :: Blowfish448 -> String Source # cipherKeySize :: Blowfish448 -> KeySizeSpecifier Source #
BlockCipher Blowfish448 Source # |

Instance details

Defined in Crypto.Cipher.Blowfish

Methods

blockSize :: Blowfish448 -> Int Source #

ecbEncrypt :: ByteArray ba => Blowfish448 -> ba -> ba Source #

ecbDecrypt :: ByteArray ba => Blowfish448 -> ba -> ba Source #

cbcEncrypt :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba Source #

cbcDecrypt :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba Source #

cfbEncrypt :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba Source #

cfbDecrypt :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba Source #

ctrCombine :: ByteArray ba => Blowfish448 -> IV Blowfish448 -> ba -> ba Source #

aeadInit :: ByteArrayAccess iv => AEADMode -> Blowfish448 -> iv -> CryptoFailable (AEAD Blowfish448) Source #

NFData Blowfish448 Source # |
Instance details Defined in Crypto.Cipher.Blowfish Methods rnf :: Blowfish448 -> () Source #