openpgp-0.2: Implementation of the OpenPGP message format

Data.OpenPGP.Crypto

Description

This is a wrapper around http://hackage.haskell.org/package/Crypto that currently does fingerprint generation and signature verification.

The recommended way to import this module is:

 import qualified Data.OpenPGP.Crypto as OpenPGP

Synopsis

Documentation

signSource

Arguments

:: Message

SecretKeys, one of which will be used

-> Message

Message containing LiteralData to sign

-> HashAlgorithm

HashAlgorithm to use is signature

-> String

KeyID of key to choose or [] for first

-> Integer

Timestamp to put in signature

-> Message 

Sign a message. Only supports RSA keys for now.

verifySource

Arguments

:: Message

Keys that may have made the signature

-> Message

Message containing data and signature packet

-> Int

Index of signature to verify (0th, 1st, etc)

-> Bool 

Verify a message signature. Only supports RSA keys for now.

fingerprint :: Packet -> StringSource

Generate a key fingerprint from a PublicKeyPacket or SecretKeyPacket http://tools.ietf.org/html/rfc4880#section-12.2