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 # 

Methods

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

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

Show KATs # 

Methods

showsPrec :: Int -> KATs -> ShowS #

show :: KATs -> String #

showList :: [KATs] -> ShowS #

data KAT_ECB #

ECB KAT

Constructors

KAT_ECB 

Instances

data KAT_CBC #

CBC KAT

Constructors

KAT_CBC 

Instances

data KAT_CFB #

CFB KAT

Constructors

KAT_CFB 

Instances

data KAT_CTR #

CTR KAT

Constructors

KAT_CTR 

Fields

Instances

data KAT_XTS #

XTS KAT

Constructors

KAT_XTS 

Fields

Instances

data KAT_AEAD #

AEAD KAT

Constructors

KAT_AEAD 

Fields