1MONGOC_CLIENT_DECRYPTION_DECRYPT(3)libmongocMONGOC_CLIENT_DECRYPTION_DECRYPT(3)
2
3
4
6 mongoc_client_decryption_decrypt - mongoc_client_decryption_decrypt()
7
9 bool
10 mongoc_client_encryption_decrypt (mongoc_client_encryption_t *client_encryption,
11 const bson_value_t *ciphertext,
12 bson_value_t *value,
13 bson_error_t *error);
14
15 Performs explicit decryption.
16
17 value is always initialized (even on failure). Caller must call
18 bson_value_destroy() to free.
19
21 • client_encryption: A mongoc_client_encryption_t
22
23 • ciphertext: The ciphertext (a BSON binary with subtype 6) to decrypt.
24
25 • value: A bson_value_t for the resulting decrypted value.
26
27 • error: A bson_error_t set on failure.
28
30 Returns true if successful. Returns false and sets error otherwise.
31
32 SEE ALSO:
33 mongoc_client_enable_auto_encryption()
34
35 mongoc_client_encryption_encrypt()
36
37
39 MongoDB, Inc
40
42 2017-present, MongoDB, Inc
43
44
45
46
471.20.0 Nov 18, 202M1ONGOC_CLIENT_DECRYPTION_DECRYPT(3)