Copyright | (c) Dong Han 2020 - 2021 |
---|---|
License | BSD |
Maintainer | winterland1989@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
INTERNAL MODULE, provides all botan errno.
Synopsis
- pattern BOTAN_FFI_SUCCESS :: CInt
- pattern BOTAN_FFI_INVALID_VERIFIER :: CInt
- pattern BOTAN_FFI_ERROR_INVALID_INPUT :: CInt
- pattern BOTAN_FFI_ERROR_BAD_MAC :: CInt
- pattern BOTAN_FFI_ERROR_INSUFFICIENT_BUFFER_SPACE :: CInt
- pattern BOTAN_FFI_ERROR_EXCEPTION_THROWN :: CInt
- pattern BOTAN_FFI_ERROR_OUT_OF_MEMORY :: CInt
- pattern BOTAN_FFI_ERROR_BAD_FLAG :: CInt
- pattern BOTAN_FFI_ERROR_NULL_POINTER :: CInt
- pattern BOTAN_FFI_ERROR_BAD_PARAMETER :: CInt
- pattern BOTAN_FFI_ERROR_KEY_NOT_SET :: CInt
- pattern BOTAN_FFI_ERROR_INVALID_KEY_LENGTH :: CInt
- pattern BOTAN_FFI_ERROR_NOT_IMPLEMENTED :: CInt
- pattern BOTAN_FFI_ERROR_INVALID_OBJECT :: CInt
- pattern BOTAN_FFI_ERROR_UNKNOWN_ERROR :: CInt
Documentation
pattern BOTAN_FFI_SUCCESS :: CInt Source #
Generally returned to indicate success
pattern BOTAN_FFI_INVALID_VERIFIER :: CInt Source #
Note this value is positive, but still represents an error condition. In indicates that the function completed successfully, but the value provided was not correct. For example botan_bcrypt_is_valid returns this value if the password did not match the hash.
pattern BOTAN_FFI_ERROR_INVALID_INPUT :: CInt Source #
The input was invalid. (Currently this error return is not used.)
pattern BOTAN_FFI_ERROR_BAD_MAC :: CInt Source #
While decrypting in an AEAD mode, the tag failed to verify.
pattern BOTAN_FFI_ERROR_INSUFFICIENT_BUFFER_SPACE :: CInt Source #
Functions which write a variable amount of space return this if the indicated buffer length was insufficient to write the data. In that case, the output length parameter is set to the size that is required.
pattern BOTAN_FFI_ERROR_EXCEPTION_THROWN :: CInt Source #
An exception was thrown while processing this request, but no further details are available.
pattern BOTAN_FFI_ERROR_OUT_OF_MEMORY :: CInt Source #
Memory allocation failed
pattern BOTAN_FFI_ERROR_BAD_FLAG :: CInt Source #
A value provided in a flag variable was unknown.
pattern BOTAN_FFI_ERROR_NULL_POINTER :: CInt Source #
A null pointer was provided as an argument where that is not allowed.
pattern BOTAN_FFI_ERROR_BAD_PARAMETER :: CInt Source #
An argument did not match the function.
pattern BOTAN_FFI_ERROR_KEY_NOT_SET :: CInt Source #
An object that requires a key normally must be keyed before use (eg before encrypting or MACing data). If this is not done, the operation will fail and return this error code.
pattern BOTAN_FFI_ERROR_INVALID_KEY_LENGTH :: CInt Source #
An invalid key length was provided with a call to x_set_key.
pattern BOTAN_FFI_ERROR_NOT_IMPLEMENTED :: CInt Source #
This is returned if the functionality is not available for some reason. For example if you call botan_hash_init with a named hash function which is not enabled, this error is returned.
pattern BOTAN_FFI_ERROR_INVALID_OBJECT :: CInt Source #
This is used if an object provided did not match the function. For example calling botan_hash_destroy on a botan_rng_t object will cause this return.
pattern BOTAN_FFI_ERROR_UNKNOWN_ERROR :: CInt Source #
Something bad happened, but we are not sure why or how.