HsOpenSSL-0.5: (Part of) OpenSSL binding for HaskellSource codeContentsIndex
OpenSSL.EVP.PKey
Description
An interface to asymmetric cipher keypair.
Synopsis
data PKey
data EVP_PKEY
wrapPKeyPtr :: Ptr EVP_PKEY -> IO PKey
withPKeyPtr :: PKey -> (Ptr EVP_PKEY -> IO a) -> IO a
unsafePKeyToPtr :: PKey -> Ptr EVP_PKEY
touchPKey :: PKey -> IO ()
pkeySize :: PKey -> IO Int
pkeyDefaultMD :: PKey -> IO Digest
newPKeyRSA :: RSA -> PKey
newPKeyDSA :: DSA -> PKey
Documentation
data PKey Source
PKey is an opaque object that represents either public key or public/private keypair. The concrete algorithm of asymmetric cipher is hidden in the object.
data EVP_PKEY Source
wrapPKeyPtr :: Ptr EVP_PKEY -> IO PKeySource
withPKeyPtr :: PKey -> (Ptr EVP_PKEY -> IO a) -> IO aSource
unsafePKeyToPtr :: PKey -> Ptr EVP_PKEYSource
touchPKey :: PKey -> IO ()Source
pkeySize :: PKey -> IO IntSource
pkeyDefaultMD :: PKey -> IO DigestSource
newPKeyRSA :: RSA -> PKeySource
newPKeyRSA rsa encapsulates an RSA key into PKey.
newPKeyDSA :: DSA -> PKeySource
newPKeyDSA dsa encapsulates an DSA key into PKey.
Produced by Haddock version 2.4.2