Copyright | (c) Colin Woodbury, 2015 |
---|---|
License | BSD3 |
Maintainer | Colin Woodbury <colingw@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
- cycleT :: (Monad c, Cipher k c) => (c ByteString -> ByteString) -> IO ()
- notSelfT :: (Monad c, Cipher k c) => (c ByteString -> ByteString) -> IO ()
- diffKeyT :: (Eq k, Monad c, Cipher k c) => (c ByteString -> ByteString) -> IO ()
- noSelfMappingT :: IO ()
- stretchT :: IO ()
- plugFromT :: IO ()
- testAll :: IO ()
Cipher 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.
diffKeyT :: (Eq k, Monad c, Cipher k c) => (c ByteString -> ByteString) -> IO () Source
Different keys should yield different encryptions.
noSelfMappingT :: IO () Source
A letter can never encrypt to itself.