HsOpenSSL-0.6.4: (Incomplete) OpenSSL binding for HaskellSource codeContentsIndex
An interface to message digest algorithms.
data Digest
getDigestByName :: String -> IO (Maybe Digest)
getDigestNames :: IO [String]
digest :: Digest -> String -> String
digestBS :: Digest -> ByteString -> String
digestLBS :: Digest -> ByteString -> String
hmacBS :: Digest -> ByteString -> ByteString -> ByteString
data Digest Source
Digest is an opaque object that represents an algorithm of message digest.
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.
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.
digestLBS :: Digest -> ByteString -> StringSource
digestLBS digests a stream of data.
:: 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
Produced by Haddock version 2.4.2