HsOpenSSL-0.5: (Part of) OpenSSL binding for HaskellSource codeContentsIndex
OpenSSL.EVP.Digest
Description
An interface to message digest algorithms.
Synopsis
data Digest
data EVP_MD
withMDPtr :: Digest -> (Ptr EVP_MD -> IO a) -> IO a
getDigestByName :: String -> IO (Maybe Digest)
getDigestNames :: IO [String]
data DigestCtx
data EVP_MD_CTX
withDigestCtxPtr :: DigestCtx -> (Ptr EVP_MD_CTX -> IO a) -> IO a
digestStrictly :: Digest -> ByteString -> IO DigestCtx
digestLazily :: Digest -> ByteString -> IO DigestCtx
digest :: Digest -> String -> String
digestBS :: Digest -> ByteString -> String
digestBS' :: Digest -> ByteString -> ByteString
digestLBS :: Digest -> ByteString -> String
hmacBS :: Digest -> ByteString -> ByteString -> ByteString
pkcs5_pbkdf2_hmac_sha1 :: ByteString -> ByteString -> Int -> Int -> ByteString
Documentation
data Digest Source
Digest is an opaque object that represents an algorithm of message digest.
data EVP_MD Source
withMDPtr :: Digest -> (Ptr EVP_MD -> IO a) -> IO aSource
getDigestByName :: String -> IO (Maybe Digest)Source
getDigestByName name returns a message digest algorithm whose name is name. If no algorithms are found, the result is Nothing.
getDigestNames :: IO [String]Source
getDigestNames returns a list of name of message digest algorithms.
data DigestCtx Source
data EVP_MD_CTX Source
withDigestCtxPtr :: DigestCtx -> (Ptr EVP_MD_CTX -> IO a) -> IO aSource
digestStrictly :: Digest -> ByteString -> IO DigestCtxSource
digestLazily :: Digest -> ByteString -> IO DigestCtxSource
digest :: Digest -> String -> StringSource
digest digests a stream of data. The string must not contain any letters which aren't in the range of U+0000 - U+00FF.
digestBS :: Digest -> ByteString -> StringSource
digestBS digests a chunk of data.
digestBS' :: Digest -> ByteString -> ByteStringSource
digestLBS :: Digest -> ByteString -> StringSource
digestLBS digests a stream of data.
hmacBSSource
:: Digestthe hash function to use in the HMAC calculation
-> ByteStringthe HMAC key
-> ByteStringthe data to be signed
-> ByteStringresulting HMAC
Perform a private key signing using the HMAC template with a given hash
pkcs5_pbkdf2_hmac_sha1Source
:: ByteStringpassword
-> ByteStringsalt
-> Intiterations
-> Intdestination key length
-> ByteStringdestination key
Produced by Haddock version 2.4.2