crypto-cipher-tests-0.0.2: Generic cryptography cipher tests

PortabilityExcellent
StabilityStable
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Crypto.Cipher.Tests

Contents

Description

 

Synopsis

Documentation

testBlockCipher :: BlockCipher a => KATs -> a -> TestSource

Return tests for a specific blockcipher and a list of KATs

KATs

data KATs Source

Constructors

KATs 

Instances

data KAT_AEAD Source

AEAD KAT

Constructors

KAT_AEAD 

Fields

aeadMode :: AEADMode

AEAD mode to use

aeadKey :: ByteString

Key

aeadIV :: ByteString

IV for initialization

aeadHeader :: ByteString

Authentificated Header

aeadPlaintext :: ByteString

Plaintext

aeadCiphertext :: ByteString

Ciphertext

aeadTaglen :: Int

aead tag len

aeadTag :: AuthTag

expected tag

Instances