mongoc_client_encryption_encrypt_opts_set_algorithm
Synopsis
#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" #define MONGOC_ENCRYPT_ALGORITHM_RANGEPREVIEW "RangePreview" // Deprecated. #define MONGOC_ENCRYPT_ALGORITHM_TEXTPREVIEW "TextPreview" // Deprecated. #define MONGOC_ENCRYPT_ALGORITHM_STRING "String" void mongoc_client_encryption_encrypt_opts_set_algorithm ( mongoc_client_encryption_encrypt_opts_t *opts, const char *algorithm);
Sets the algorithm for explicit encryption.
Parameters
- opts: A mongoc_client_encryption_encrypt_opts_t <>
- algorithm: A char * identifying the algorithm.
See also:
See CSFLE explicit encryption <explicit-encryption-csfle> and Queryable Encryption <explicit-encryption-qe> for algorithm usage.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
Info
Aug 05, 2026 2.4.0 libmongoc