| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Crypto.Age.Armor
Description
age ASCII armor encoding and decoding.
Synopsis
- data ArmorError = ArmorNoDataError
- conduitArmor :: forall (m :: Type -> Type). Monad m => ConduitT ByteString ByteString (ExceptT ArmorError m) ()
- data UnarmorError
- conduitUnarmor :: forall (m :: Type -> Type). Monad m => ConduitT ByteString ByteString (ExceptT UnarmorError m) ()
Encoding
data ArmorError Source #
Error "armoring" an age file.
Constructors
| ArmorNoDataError | No data was provided to be armored (i.e. end of input was reached without consuming any bytes). |
Instances
| Show ArmorError Source # | |
Defined in Crypto.Age.Armor Methods showsPrec :: Int -> ArmorError -> ShowS # show :: ArmorError -> String # showList :: [ArmorError] -> ShowS # | |
| Eq ArmorError Source # | |
Defined in Crypto.Age.Armor | |
conduitArmor :: forall (m :: Type -> Type). Monad m => ConduitT ByteString ByteString (ExceptT ArmorError m) () Source #
Stream and "armor" an age file.
Decoding
data UnarmorError Source #
Error "un-armoring" an age file.
Constructors
| UnarmorNoDataAfterLineBeginError | End of input was reached immediately after parsing the beginning line. |
| UnarmorNoLineEndError | End of input was reached before the ending line was parsed. |
| UnarmorParseError !ParseError | Error parsing the ASCII-armored age file. |
| UnarmorDecodeBase64Error !Text | Error base64 decoding the encapsulated text portion of the ASCII-armored age file. |
Instances
| Show UnarmorError Source # | |
Defined in Crypto.Age.Armor Methods showsPrec :: Int -> UnarmorError -> ShowS # show :: UnarmorError -> String # showList :: [UnarmorError] -> ShowS # | |
conduitUnarmor :: forall (m :: Type -> Type). Monad m => ConduitT ByteString ByteString (ExceptT UnarmorError m) () Source #
Stream and "un-armor" an age file.