-- ASCIIArmor/Decode.hs: OpenPGP (RFC4880) ASCII armor implementation -- Copyright Ⓒ 2012 Clint Adams -- This software is released under the terms of the ISC license. -- (See the LICENSE file). module Codec.Encryption.OpenPGP.ASCIIArmor.Types ( Armor(..) , ArmorType(..) ) where import Data.ByteString (ByteString) data Armor a = Armor (ArmorType a) [(String, String)] ByteString | ClearSigned [(String, String)] String (Armor a) deriving (Show, Eq) data ArmorType a = ArmorMessage | ArmorPublicKeyBlock | ArmorPrivateKeyBlock | ArmorSplitMessage a a | ArmorSplitMessageIndefinite a | ArmorSignature deriving (Show, Eq)