Maintainer | simons@cryp.to |
---|---|
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
Low-level bindings to OpenSSL's EVP interface. Most users do not need this code. Check out OpenSSL.Digest for a more comfortable interface.
Synopsis
- 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 Source #
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 Source #
freeContext :: Context -> IO () Source #
Release all resources associated with a digest computation.