crypto-simple-0.1.0.0: A simple high level encryption interface based on cryptonite

Safe HaskellNone
LanguageHaskell2010

Crypto.Simple.Cipher

Synopsis

Documentation

newtype Key a Source #

Constructors

Key ByteString 

Instances

Eq (Key a) Source # 

Methods

(==) :: Key a -> Key a -> Bool #

(/=) :: Key a -> Key a -> Bool #

Show (Key a) Source # 

Methods

showsPrec :: Int -> Key a -> ShowS #

show :: Key a -> String #

showList :: [Key a] -> ShowS #

encrypt' :: CipherMode -> ByteString -> Maybe (IV AES256) -> ByteString -> ByteString Source #

key must be 32 bytes in length