openpgp-crypto-api-0.4: Implement cryptography for OpenPGP using crypto-api compatible libraries

Safe HaskellNone

Data.OpenPGP.CryptoAPI

Synopsis

Documentation

fingerprint :: Packet -> StringSource

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

signSource

Arguments

:: CryptoRandomGen g 
=> Message

SecretKeys, one of which will be used

-> Message

Message containing data or key to sign, and optional signature packet

-> HashAlgorithm

HashAlgorithm to use in signature

-> String

KeyID of key to choose or [] for first

-> Integer

Timestamp for signature (unless sig supplied)

-> g

Random number generator

-> Packet 

Sign data or key/userID pair.

verifySource

Arguments

:: Message

Keys that may have made the signature

-> Message

LiteralData message to verify

-> Int

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

-> Bool 

Verify a message signature