Safe Haskell | None |
---|---|
Language | Haskell2010 |
Crypto.Simple.Cipher
- newtype Key a = Key ByteString
- blockLength :: Int
- maxKeyLength :: Int
- data CipherMode
- = CBCencrypt
- | CBCdecrypt
- | CTR
- encrypt' :: CipherMode -> ByteString -> Maybe (IV AES256) -> ByteString -> ByteString
- decrypt' :: CipherMode -> ByteString -> Maybe (IV AES256) -> ByteString -> ByteString
Documentation
Constructors
Key ByteString |
blockLength :: Int Source #
maxKeyLength :: Int Source #
data CipherMode Source #
Constructors
CBCencrypt | |
CBCdecrypt | |
CTR |
encrypt' :: CipherMode -> ByteString -> Maybe (IV AES256) -> ByteString -> ByteString Source #
key must be 32 bytes in length
decrypt' :: CipherMode -> ByteString -> Maybe (IV AES256) -> ByteString -> ByteString Source #