Function mongocrypt_sys::mongocrypt_setopt_aes_256_ctr
source ยท pub unsafe extern "C" fn mongocrypt_setopt_aes_256_ctr(
crypt: *mut mongocrypt_t,
aes_256_ctr_encrypt: mongocrypt_crypto_fn,
aes_256_ctr_decrypt: mongocrypt_crypto_fn,
ctx: *mut c_void,
) -> bool
Expand description
Set a crypto hook for the AES256-CTR operations.
@param[in] crypt The @ref mongocrypt_t object. @param[in] aes_256_ctr_encrypt The crypto callback function for encrypt operation. @param[in] aes_256_ctr_decrypt The crypto callback function for decrypt operation. @param[in] ctx Unused. @pre @ref mongocrypt_init has not been called on @p crypt. @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_status