pub type mongocrypt_hash_fn = Option<unsafe extern "C" fn(ctx: *mut c_void, in_: *mut mongocrypt_binary_t, out: *mut mongocrypt_binary_t, status: *mut mongocrypt_status_t) -> bool>;Expand description
A crypto hash (SHA-256) function.
@param[in] ctx An optional context object that may have been set when hooks were enabled. @param[in] in The input. @param[out] out A preallocated byte array for the output. See @ref mongocrypt_binary_data. @param[out] status An optional status to pass error messages. See @ref mongocrypt_status_set. @returns A boolean indicating success. If returning false, set @p status with a message indicating the error using @ref mongocrypt_status_set.
Aliased Type§
pub enum mongocrypt_hash_fn {
None,
Some(unsafe extern "C" fn(*mut c_void, *mut _mongocrypt_binary_t, *mut _mongocrypt_binary_t, *mut _mongocrypt_status_t) -> bool),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut c_void, *mut _mongocrypt_binary_t, *mut _mongocrypt_binary_t, *mut _mongocrypt_status_t) -> bool)
Some value of type T.