crypto-cipher-tests-0.0.11: Generic cryptography cipher tests

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
StabilityStable
PortabilityExcellent
Safe HaskellNone
LanguageHaskell98

Crypto.Cipher.Tests

Contents

Description

 
Synopsis

Documentation

testBlockCipher :: BlockCipher a => KATs -> a -> Test #

Return tests for a specific blockcipher and a list of KATs

testBlockCipherIO :: BlockCipherIO a => KATs -> a -> Test #

Return test for a specific blockcipher and a list of KATs

testStreamCipher :: StreamCipher a => [KAT_Stream] -> a -> Test #

Return tests for a specific streamcipher and a list of KATs

KATs

defaultKATs :: KATs #

the empty KATs

defaultStreamKATs :: [KAT_Stream] #

the empty KATs for stream

data KATs #

all the KATs. use defaultKATs to prevent compilation error from future expansion of this data structure

Constructors

KATs 
Instances
Eq KATs # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

Methods

(==) :: KATs -> KATs -> Bool #

(/=) :: KATs -> KATs -> Bool #

Show KATs # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

Methods

showsPrec :: Int -> KATs -> ShowS #

show :: KATs -> String #

showList :: [KATs] -> ShowS #

data KAT_Stream #

KAT for Stream cipher

Instances
Eq KAT_Stream # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

Show KAT_Stream # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

data KAT_ECB #

ECB KAT

Constructors

KAT_ECB 
Instances
Eq KAT_ECB # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

Methods

(==) :: KAT_ECB -> KAT_ECB -> Bool #

(/=) :: KAT_ECB -> KAT_ECB -> Bool #

Show KAT_ECB # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

data KAT_CBC #

CBC KAT

Constructors

KAT_CBC 
Instances
Eq KAT_CBC # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

Methods

(==) :: KAT_CBC -> KAT_CBC -> Bool #

(/=) :: KAT_CBC -> KAT_CBC -> Bool #

Show KAT_CBC # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

data KAT_CFB #

CFB KAT

Constructors

KAT_CFB 
Instances
Eq KAT_CFB # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

Methods

(==) :: KAT_CFB -> KAT_CFB -> Bool #

(/=) :: KAT_CFB -> KAT_CFB -> Bool #

Show KAT_CFB # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

data KAT_CTR #

CTR KAT

Constructors

KAT_CTR 

Fields

Instances
Eq KAT_CTR # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

Methods

(==) :: KAT_CTR -> KAT_CTR -> Bool #

(/=) :: KAT_CTR -> KAT_CTR -> Bool #

Show KAT_CTR # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

data KAT_XTS #

XTS KAT

Constructors

KAT_XTS 

Fields

Instances
Eq KAT_XTS # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

Methods

(==) :: KAT_XTS -> KAT_XTS -> Bool #

(/=) :: KAT_XTS -> KAT_XTS -> Bool #

Show KAT_XTS # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

data KAT_AEAD #

AEAD KAT

Constructors

KAT_AEAD 

Fields

Instances
Eq KAT_AEAD # 
Instance details

Defined in Crypto.Cipher.Tests.KATs

Show KAT_AEAD # 
Instance details

Defined in Crypto.Cipher.Tests.KATs