Function mongocrypt_sys::mongocrypt_setopt_aes_256_ecb
source ยท pub unsafe extern "C" fn mongocrypt_setopt_aes_256_ecb(
crypt: *mut mongocrypt_t,
aes_256_ecb_encrypt: mongocrypt_crypto_fn,
ctx: *mut c_void,
) -> bool
Expand description
Set an AES256-ECB crypto hook for the AES256-CTR operations. If CTR hook was configured using @ref mongocrypt_setopt_aes_256_ctr, ECB hook will be ignored.
@param[in] crypt The @ref mongocrypt_t object. @param[in] aes_256_ecb_encrypt The crypto callback function for encrypt 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