| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Crypto.Age.Buffered
Contents
Description
Buffered encryption and decryption of age files.
Synopsis
- encrypt :: Recipients -> ByteString -> ExceptT EncryptError IO ByteString
- encryptLazy :: Recipients -> ByteString -> ExceptT EncryptError IO ByteString
- decrypt :: NonEmpty Identity -> ByteString -> Either DecryptError ByteString
- decryptLazy :: NonEmpty Identity -> ByteString -> Either DecryptError ByteString
Encryption
encrypt :: Recipients -> ByteString -> ExceptT EncryptError IO ByteString Source #
Encrypt a strict ByteString.
encryptLazy :: Recipients -> ByteString -> ExceptT EncryptError IO ByteString Source #
Encrypt a lazy ByteString.
Decryption
decrypt :: NonEmpty Identity -> ByteString -> Either DecryptError ByteString Source #
Decrypt a strict ByteString.
decryptLazy :: NonEmpty Identity -> ByteString -> Either DecryptError ByteString Source #
Decrypt a lazy ByteString.