-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Implementation of cryptography for use with OpenPGP using the Crypto library -- -- This is a wrapper around -- http://hackage.haskell.org/package/Crypto that currently does -- fingerprint generation, signature generation, and signature -- verification (for RSA keys only). -- -- It is indended to be used with -- http://hackage.haskell.org/package/openpgp -- -- It is intended that you use qualified imports with this library. -- --
-- import qualified Data.OpenPGP.Crypto as OpenPGP --@package openpgp-Crypto @version 0.6 -- | 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 --module Data.OpenPGP.Crypto -- | Sign data or key/userID pair. Only supports RSA keys for now. sign :: Message -> Message -> HashAlgorithm -> String -> Integer -> Packet -- | Verify a message signature. Only supports RSA keys for now. This -- function is partial on messages that contain signatures other than on -- literal data. verify :: Message -> Message -> Int -> Bool -- | Generate a key fingerprint from a PublicKeyPacket or SecretKeyPacket -- http://tools.ietf.org/html/rfc4880#section-12.2 fingerprint :: Packet -> String