blob: 7f6cf7b8af0065a3ef710a3015307f3e82858074 (
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 Expat license.
-- (See the LICENSE file).
module Codec.Encryption.OpenPGP.ASCIIArmor.Types (
Armor(..)
, ArmorType(..)
) where
import Data.ByteString.Lazy (ByteString)
data Armor = Armor ArmorType [(String, String)] ByteString
| ClearSigned [(String, String)] ByteString Armor
deriving (Show, Eq)
data ArmorType = ArmorMessage
| ArmorPublicKeyBlock
| ArmorPrivateKeyBlock
| ArmorSplitMessage ByteString ByteString
| ArmorSplitMessageIndefinite ByteString
| ArmorSignature
deriving (Show, Eq)
|