Maintainer | simons@cryp.to |
---|---|
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
OpenSSL.EVP.Digest.Context
Description
Low-level bindings to OpenSSL's EVP interface. Most users do not need this code. Check out OpenSSL.Digest for a more comfortable interface.
- newtype Context = Context (Ptr ())
- newContext :: IO Context
- _newContext :: IO Context
- freeContext :: Context -> IO ()
- resetDigest :: Context -> IO ()
- _resetContext :: Context -> IO CInt
Documentation
A context for digest computations. Use newContext
and freeContext
to
allocate/deallocate this type.
newContext :: IO Context #
Allocate and initialize an Context
for use in a digest computation
on the heap. Release its underlying memory after use with freeContext
.
_newContext :: IO Context #
freeContext :: Context -> IO () #
Release all resources associated with a digest computation.
resetDigest :: Context -> IO () #
Free all resources associated with this Context
, but don't destroy the
context itself so that it can be re-used for a new digest computation.
_resetContext :: Context -> IO CInt #