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

Maintainersimons@cryp.to
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

OpenSSL.EVP.Digest.Error

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

throwIfZero :: String -> IO CInt -> IO () Source #

Most OpenSSL functions return an approximation of Bool to signify failure. This wrapper makes it easier to move the error handling to the exception layer where appropriate.

newtype UnknownAlgorithm Source #

A custom exception type which is thrown by digestByName in case the requested digest algorithm is not available in the OpenSSL system library.

Constructors

UnknownAlgorithm String