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 Source #

Return tests for a specific blockcipher and a list of KATs

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

Return test for a specific blockcipher and a list of KATs

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

Return tests for a specific streamcipher and a list of KATs

KATs

defaultKATs :: KATs Source #

the empty KATs

defaultStreamKATs :: [KAT_Stream] Source #

the empty KATs for stream

data KATs Source #

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

Constructors

KATs 

Instances

Eq KATs Source # 

Methods

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

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

Show KATs Source # 

Methods

showsPrec :: Int -> KATs -> ShowS #

show :: KATs -> String #

showList :: [KATs] -> ShowS #

data KAT_ECB Source #

ECB KAT

Constructors

KAT_ECB 

data KAT_CBC Source #

CBC KAT

Constructors

KAT_CBC 

data KAT_CFB Source #

CFB KAT

Constructors

KAT_CFB 

data KAT_CTR Source #

CTR KAT

Constructors

KAT_CTR 

Fields

data KAT_XTS Source #

XTS KAT

Constructors

KAT_XTS 

Fields

data KAT_AEAD Source #

AEAD KAT

Constructors

KAT_AEAD 

Fields