| Copyright | (c) Colin Woodbury, 2015 |
|---|---|
| License | BSD3 |
| Maintainer | Colin Woodbury <colingw@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.Classical.Test
Contents
Description
- cycleT :: (Monad c, Cipher k c) => (c ByteString -> ByteString) -> IO ()
- notSelfT :: (Monad c, Cipher k c) => (c ByteString -> ByteString) -> IO ()
- testAll :: IO ()
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.