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.
- throwIfZero :: String -> IO CInt -> IO ()
- newtype UnknownAlgorithm = UnknownAlgorithm String
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.