-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Implement cryptography for OpenPGP using crypto-api compatible libraries -- -- This is a wrapper around -- http://hackage.haskell.org/package/crypto-api and related -- libraries that currently does fingerprint generation, signature -- generation, and signature verification (for RSA and DSA keys). -- -- 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.CryptoAPI as OpenPGP --@package openpgp-crypto-api @version 0.4 module Data.OpenPGP.CryptoAPI -- | Generate a key fingerprint from a PublicKeyPacket or SecretKeyPacket -- http://tools.ietf.org/html/rfc4880#section-12.2 fingerprint :: Packet -> String -- | Sign data or key/userID pair. sign :: CryptoRandomGen g => Message -> Message -> HashAlgorithm -> String -> Integer -> g -> Packet -- | Verify a message signature verify :: Message -> Message -> Int -> Bool