hopenssl-2.2.4: FFI Bindings to OpenSSL's EVP Digest Interface

Maintainersimons@cryp.to
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

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.

Synopsis

Documentation

newtype Context Source #

A context for digest computations. Use newContext and freeContext to allocate/deallocate this type.

Constructors

Context (Ptr ()) 
Instances
Eq Context Source # 
Instance details

Defined in OpenSSL.EVP.Digest.Context

Methods

(==) :: Context -> Context -> Bool #

(/=) :: Context -> Context -> Bool #

Show Context Source # 
Instance details

Defined in OpenSSL.EVP.Digest.Context

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.

freeContext :: Context -> IO () Source #

Release all resources associated with a digest computation.

resetDigest :: Context -> IO () Source #

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.