summaryrefslogtreecommitdiff
path: root/Codec/Encryption/OpenPGP/ASCIIArmor/Types.hs
diff options
context:
space:
mode:
authorClint Adams <clint@softwarefreedom.org>2012-04-25 16:38:48 -0400
committerClint Adams <clint@softwarefreedom.org>2012-04-25 16:38:48 -0400
commit5ed645493e10190f7cddd753bb058e8487037549 (patch)
tree7b80971ad747ff0d1e5e6651e1efe7fe29ec6db6 /Codec/Encryption/OpenPGP/ASCIIArmor/Types.hs
parentf907d986330ac5f88f9e921bdd6c0572d4691003 (diff)
Separate ASCII armor codec into its own package, change license to ISC, and change API toward Stephen Paul Weber's proposal.
Diffstat (limited to 'Codec/Encryption/OpenPGP/ASCIIArmor/Types.hs')
-rw-r--r--Codec/Encryption/OpenPGP/ASCIIArmor/Types.hs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Codec/Encryption/OpenPGP/ASCIIArmor/Types.hs b/Codec/Encryption/OpenPGP/ASCIIArmor/Types.hs
new file mode 100644
index 0000000..8c7ef6f
--- /dev/null
+++ b/Codec/Encryption/OpenPGP/ASCIIArmor/Types.hs
@@ -0,0 +1,23 @@
1-- ASCIIArmor/Decode.hs: OpenPGP (RFC4880) ASCII armor implementation
2-- Copyright Ⓒ 2012 Clint Adams
3-- This software is released under the terms of the ISC license.
4-- (See the LICENSE file).
5
6module Codec.Encryption.OpenPGP.ASCIIArmor.Types (
7 Armor(..)
8 , ArmorType(..)
9) where
10
11import Data.ByteString (ByteString)
12
13data Armor a = Armor (ArmorType a) [(String, String)] ByteString
14 | ClearSigned [(String, String)] String (Armor a)
15 deriving (Show, Eq)
16
17data ArmorType a = ArmorMessage
18 | ArmorPublicKeyBlock
19 | ArmorPrivateKeyBlock
20 | ArmorSplitMessage a a
21 | ArmorSplitMessageIndefinite a
22 | ArmorSignature
23 deriving (Show, Eq)