summaryrefslogtreecommitdiff
path: root/Codec/Encryption/OpenPGP/ASCIIArmor/Types.hs
blob: 8c7ef6fd1b168b97419b97eddc8ff76e98bcfc5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- 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)