Provided by: libmongoc-doc_2.2.1-1_all 

SYNOPSIS
void
mongoc_client_encryption_encrypt_opts_set_algorithm (
mongoc_client_encryption_encrypt_opts_t *opts, const char *algorithm);
#define MONGOC_AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM "AEAD_AES_256_CBC_HMAC_SHA_512-Random"
#define MONGOC_AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic"
#define MONGOC_ENCRYPT_ALGORITHM_INDEXED "Indexed"
#define MONGOC_ENCRYPT_ALGORITHM_UNINDEXED "Unindexed"
#define MONGOC_ENCRYPT_ALGORITHM_RANGE "Range"
Identifies the algorithm to use for encryption. Valid values of algorithm are:
"AEAD_AES_256_CBC_HMAC_SHA_512-Random"
for randomized encryption. Specific to the Client-Side Field Level Encryption <https://www.mongodb
.com/docs/languages/c/c-driver/current/libmongoc/guides/client-side-field-level-encryption/> feature.
"AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic"
for deterministic (queryable) encryption. Specific to the Client-Side Field Level Encryption <https://
www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/guides/client-side-field-level-
encryption/> feature.
"Indexed"
for indexed encryption. Specific to the Queryable Encryption <https://www.mongodb.com/docs/languages/
c/c-driver/current/libmongoc/guides/queryable-encryption/> feature.
"Unindexed"
for unindexed encryption. Specific to the Queryable Encryption <https://www.mongodb.com/docs/
languages/c/c-driver/current/libmongoc/guides/queryable-encryption/> feature.
"Range"
for range encryption. Specific to the Queryable Encryption <https://www.mongodb.com/docs/languages/c/
c-driver/current/libmongoc/guides/queryable-encryption/> feature.
PARAMETERS
• opts: A mongoc_client_encryption_encrypt_opts_t <>
• algorithm: A char * identifying the algorithm.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 202MONGOC_CLIENT_ENCRYPTI...RYPT_OPTS_SET_ALGORITHM(3)