crypto-classical-0.0.2: An educational tool for studying classical cryptography schemes.

Copyright(c) Colin Woodbury, 2015
LicenseBSD3
MaintainerColin Woodbury <colingw@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Crypto.Classical.Test

Contents

Description

 

Synopsis

Single Tests

cycleT :: (Monad c, Cipher k c) => (c ByteString -> ByteString) -> IO () Source

An encrypted message should decrypt to the original plaintext.

notSelfT :: (Monad c, Cipher k c) => (c ByteString -> ByteString) -> IO () Source

A message should never encrypt to itself.

Batch Tests

testAll :: IO () Source

Run every test on every Cipher.