crypton-1.0.1: Cryptography Primitives sink
LicenseBSD-style
Stabilityexperimental
Portability???
Safe HaskellNone
LanguageHaskell2010

Crypto.Cipher.TripleDES

Description

 
Synopsis

Documentation

data DES_EEE3 Source #

3DES with 3 different keys used all in the same direction

Instances

Instances details
Cipher DES_EEE3 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

BlockCipher DES_EEE3 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

Methods

blockSize :: DES_EEE3 -> Int Source #

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

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

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

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

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

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

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

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

Eq DES_EEE3 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

Methods

(==) :: DES_EEE3 -> DES_EEE3 -> Bool

(/=) :: DES_EEE3 -> DES_EEE3 -> Bool

data DES_EDE3 Source #

3DES with 3 different keys used in alternative direction

Instances

Instances details
Cipher DES_EDE3 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

BlockCipher DES_EDE3 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

Methods

blockSize :: DES_EDE3 -> Int Source #

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

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

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

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

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

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

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

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

Eq DES_EDE3 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

Methods

(==) :: DES_EDE3 -> DES_EDE3 -> Bool

(/=) :: DES_EDE3 -> DES_EDE3 -> Bool

data DES_EEE2 Source #

3DES where the first and third keys are equal, used in the same direction

Instances

Instances details
Cipher DES_EEE2 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

BlockCipher DES_EEE2 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

Methods

blockSize :: DES_EEE2 -> Int Source #

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

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

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

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

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

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

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

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

Eq DES_EEE2 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

Methods

(==) :: DES_EEE2 -> DES_EEE2 -> Bool

(/=) :: DES_EEE2 -> DES_EEE2 -> Bool

data DES_EDE2 Source #

3DES where the first and third keys are equal, used in alternative direction

Instances

Instances details
Cipher DES_EDE2 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

BlockCipher DES_EDE2 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

Methods

blockSize :: DES_EDE2 -> Int Source #

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

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

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

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

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

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

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

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

Eq DES_EDE2 Source # 
Instance details

Defined in Crypto.Cipher.TripleDES

Methods

(==) :: DES_EDE2 -> DES_EDE2 -> Bool

(/=) :: DES_EDE2 -> DES_EDE2 -> Bool