openpgp-0.5: Implementation of the OpenPGP message format

Safe HaskellNone

Data.OpenPGP

Description

Main implementation of the OpenPGP message format http://tools.ietf.org/html/rfc4880

The recommended way to import this module is:

 import qualified Data.OpenPGP as OpenPGP

Synopsis

Documentation

signaturePacket :: Word8 -> Word8 -> KeyAlgorithm -> HashAlgorithm -> [SignatureSubpacket] -> [SignatureSubpacket] -> Word16 -> [MPI] -> PacketSource

SignaturePacket smart constructor

newtype Message Source

Constructors

Message [Packet] 

newtype MPI Source

Constructors

MPI Integer 

Instances

fingerprint_material :: Packet -> [ByteString]Source

Helper method for fingerprints and such

signatures_and_data :: Message -> ([Packet], [Packet])Source

Extract all signature and data packets from a Message

signature_issuer :: Packet -> Maybe StringSource

Find the keyid that issued a SignaturePacket