| Maintainer | simons@cryp.to |
|---|---|
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- 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.
Constructors
| UnknownAlgorithm String |
Instances
| Exception UnknownAlgorithm Source # | |
Defined in OpenSSL.EVP.Digest.Error Methods toException :: UnknownAlgorithm -> SomeException # | |
| Show UnknownAlgorithm Source # | |
Defined in OpenSSL.EVP.Digest.Error Methods showsPrec :: Int -> UnknownAlgorithm -> ShowS # show :: UnknownAlgorithm -> String # showList :: [UnknownAlgorithm] -> ShowS # | |