pub unsafe extern "C" fn mongocrypt_ctx_explicit_decrypt_init(
    ctx: *mut mongocrypt_ctx_t,
    msg: *mut mongocrypt_binary_t,
) -> bool
Expand description

Explicit helper method to decrypt a single BSON object.

Pass the binary encoding of a BSON document containing the BSON value to encrypt like the following:

{ “v” : (BSON BINARY value of subtype 6) }

@param[in] ctx A @ref mongocrypt_ctx_t. @param[in] msg A @ref mongocrypt_binary_t the encrypted BSON. The viewed data is copied. It is valid to destroy @p msg with @ref mongocrypt_binary_destroy immediately after.