cryptonite-0.23: Cryptography Primitives sink

Safe Haskell | None
Language | Haskell2010

Crypto.Cipher.Twofish

# Documentation

data Twofish128 Source #

Instances

Cipher Twofish128 Source # |
Methods cipherInit :: ByteArray key => key -> CryptoFailable Twofish128 Source # cipherName :: Twofish128 -> String Source # cipherKeySize :: Twofish128 -> KeySizeSpecifier Source #
BlockCipher Twofish128 Source # |

Methods

blockSize :: Twofish128 -> Int Source #

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

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

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

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

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

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

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

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

data Twofish192 Source #

Instances

Cipher Twofish192 Source # |
Methods cipherInit :: ByteArray key => key -> CryptoFailable Twofish192 Source # cipherName :: Twofish192 -> String Source # cipherKeySize :: Twofish192 -> KeySizeSpecifier Source #
BlockCipher Twofish192 Source # |

Methods

blockSize :: Twofish192 -> Int Source #

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

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

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

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

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

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

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

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

data Twofish256 Source #

Instances

Cipher Twofish256 Source # |
Methods cipherInit :: ByteArray key => key -> CryptoFailable Twofish256 Source # cipherName :: Twofish256 -> String Source # cipherKeySize :: Twofish256 -> KeySizeSpecifier Source #
BlockCipher Twofish256 Source # |

Methods

blockSize :: Twofish256 -> Int Source #

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

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

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

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

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

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

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

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