Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
blockLength :: Int Source #
maxKeyLength :: Int Source #
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 #