Crypto.Cipher.AES

cryptonite-0.19: Cryptography Primitives sink

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

Crypto.Cipher.AES

Description

Synopsis

- data AES128
- data AES192
- data AES256

# Documentation

data AES128 #

AES with 128 bit key

Instances

NFData AES128 # |
Methods rnf :: AES128 -> () #
Cipher AES128 # |
Methods cipherInit :: ByteArray key => key -> CryptoFailable AES128 # cipherName :: AES128 -> String # cipherKeySize :: AES128 -> KeySizeSpecifier #
BlockCipher128 AES128 # |
Methods xtsEncrypt :: ByteArray ba => (AES128, AES128) -> IV AES128 -> DataUnitOffset -> ba -> ba # xtsDecrypt :: ByteArray ba => (AES128, AES128) -> IV AES128 -> DataUnitOffset -> ba -> ba #
BlockCipher AES128 # |
Methods blockSize :: AES128 -> Int # ecbEncrypt :: ByteArray ba => AES128 -> ba -> ba # ecbDecrypt :: ByteArray ba => AES128 -> ba -> ba # cbcEncrypt :: ByteArray ba => AES128 -> IV AES128 -> ba -> ba # cbcDecrypt :: ByteArray ba => AES128 -> IV AES128 -> ba -> ba # cfbEncrypt :: ByteArray ba => AES128 -> IV AES128 -> ba -> ba # cfbDecrypt :: ByteArray ba => AES128 -> IV AES128 -> ba -> ba # ctrCombine :: ByteArray ba => AES128 -> IV AES128 -> ba -> ba # aeadInit :: ByteArrayAccess iv => AEADMode -> AES128 -> iv -> CryptoFailable (AEAD AES128) #

data AES192 #

AES with 192 bit key

Instances

NFData AES192 # |
Methods rnf :: AES192 -> () #
Cipher AES192 # |
Methods cipherInit :: ByteArray key => key -> CryptoFailable AES192 # cipherName :: AES192 -> String # cipherKeySize :: AES192 -> KeySizeSpecifier #
BlockCipher128 AES192 # |
Methods xtsEncrypt :: ByteArray ba => (AES192, AES192) -> IV AES192 -> DataUnitOffset -> ba -> ba # xtsDecrypt :: ByteArray ba => (AES192, AES192) -> IV AES192 -> DataUnitOffset -> ba -> ba #
BlockCipher AES192 # |
Methods blockSize :: AES192 -> Int # ecbEncrypt :: ByteArray ba => AES192 -> ba -> ba # ecbDecrypt :: ByteArray ba => AES192 -> ba -> ba # cbcEncrypt :: ByteArray ba => AES192 -> IV AES192 -> ba -> ba # cbcDecrypt :: ByteArray ba => AES192 -> IV AES192 -> ba -> ba # cfbEncrypt :: ByteArray ba => AES192 -> IV AES192 -> ba -> ba # cfbDecrypt :: ByteArray ba => AES192 -> IV AES192 -> ba -> ba # ctrCombine :: ByteArray ba => AES192 -> IV AES192 -> ba -> ba # aeadInit :: ByteArrayAccess iv => AEADMode -> AES192 -> iv -> CryptoFailable (AEAD AES192) #

data AES256 #

AES with 256 bit key

Instances

NFData AES256 # |
Methods rnf :: AES256 -> () #
Cipher AES256 # |
Methods cipherInit :: ByteArray key => key -> CryptoFailable AES256 # cipherName :: AES256 -> String # cipherKeySize :: AES256 -> KeySizeSpecifier #
BlockCipher128 AES256 # |
Methods xtsEncrypt :: ByteArray ba => (AES256, AES256) -> IV AES256 -> DataUnitOffset -> ba -> ba # xtsDecrypt :: ByteArray ba => (AES256, AES256) -> IV AES256 -> DataUnitOffset -> ba -> ba #
BlockCipher AES256 # |
Methods blockSize :: AES256 -> Int # ecbEncrypt :: ByteArray ba => AES256 -> ba -> ba # ecbDecrypt :: ByteArray ba => AES256 -> ba -> ba # cbcEncrypt :: ByteArray ba => AES256 -> IV AES256 -> ba -> ba # cbcDecrypt :: ByteArray ba => AES256 -> IV AES256 -> ba -> ba # cfbEncrypt :: ByteArray ba => AES256 -> IV AES256 -> ba -> ba # cfbDecrypt :: ByteArray ba => AES256 -> IV AES256 -> ba -> ba # ctrCombine :: ByteArray ba => AES256 -> IV AES256 -> ba -> ba # aeadInit :: ByteArrayAccess iv => AEADMode -> AES256 -> iv -> CryptoFailable (AEAD AES256) #