age-0.0.1.0: Actually Good Encryption
Safe HaskellNone
LanguageHaskell2010

Crypto.Age.Armor

Description

age ASCII armor encoding and decoding.

Synopsis

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

Instances details
Show ArmorError Source # 
Instance details

Defined in Crypto.Age.Armor

Eq ArmorError Source # 
Instance details

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

Instances details
Show UnarmorError Source # 
Instance details

Defined in Crypto.Age.Armor

conduitUnarmor :: forall (m :: Type -> Type). Monad m => ConduitT ByteString ByteString (ExceptT UnarmorError m) () Source #

Stream and "un-armor" an age file.