17#ifndef MC_FLE2_INSERT_UPDATE_PAYLOAD_PRIVATE_V2_H
18#define MC_FLE2_INSERT_UPDATE_PAYLOAD_PRIVATE_V2_H
22#include "mc-array-private.h"
23#include "mc-optional-private.h"
24#include "mongocrypt-buffer-private.h"
25#include "mongocrypt-private.h"
35#define DEF_TEXT_SEARCH_TOKEN_SET(Type) \
37 _mongocrypt_buffer_t edcDerivedToken; \
38 _mongocrypt_buffer_t escDerivedToken; \
39 _mongocrypt_buffer_t serverDerivedFromDataToken; \
40 _mongocrypt_buffer_t encryptedTokens; \
41 } mc_Text##Type##TokenSet_t; \
42 void mc_Text##Type##TokenSet_init(mc_Text##Type##TokenSet_t *); \
43 void mc_Text##Type##TokenSet_cleanup(mc_Text##Type##TokenSet_t *); \
44 void mc_Text##Type##TokenSet_shallow_copy(const mc_Text##Type##TokenSet_t *src, mc_Text##Type##TokenSet_t *dest)
46DEF_TEXT_SEARCH_TOKEN_SET(Exact);
47DEF_TEXT_SEARCH_TOKEN_SET(Substring);
48DEF_TEXT_SEARCH_TOKEN_SET(Suffix);
49DEF_TEXT_SEARCH_TOKEN_SET(Prefix);
60 mc_TextExactTokenSet_t exact;
61 mc_array_t substringArray;
62 mc_array_t suffixArray;
63 mc_array_t prefixArray;
113 _mongocrypt_buffer_t edcDerivedToken;
114 _mongocrypt_buffer_t escDerivedToken;
115 _mongocrypt_buffer_t encryptedTokens;
116 _mongocrypt_buffer_t indexKeyId;
117 bson_type_t valueType;
118 _mongocrypt_buffer_t value;
119 _mongocrypt_buffer_t serverEncryptionToken;
120 _mongocrypt_buffer_t serverDerivedFromDataToken;
121 int64_t contentionFactor;
122 mc_array_t edgeTokenSetArray;
123 mc_optional_int64_t sparsity;
124 mc_optional_int32_t precision;
125 mc_optional_int32_t trimFactor;
126 bson_value_t indexMin;
127 bson_value_t indexMax;
132 } textSearchTokenSets;
134 _mongocrypt_buffer_t plaintext;
135 _mongocrypt_buffer_t userKeyId;
140BSON_STATIC_ASSERT2(alignof_mc_FLE2InsertUpdatePayloadV2_t,
155 _mongocrypt_buffer_t edcDerivedToken;
156 _mongocrypt_buffer_t escDerivedToken;
157 _mongocrypt_buffer_t serverDerivedFromDataToken;
158 _mongocrypt_buffer_t encryptedTokens;
164 const _mongocrypt_buffer_t *in,
170const _mongocrypt_buffer_t *mc_FLE2InsertUpdatePayloadV2_decrypt(_mongocrypt_crypto_t *crypto,
172 const _mongocrypt_buffer_t *user_key,
struct _mongocrypt_status_t mongocrypt_status_t
Definition mongocrypt.h:152
Definition mc-fle2-insert-update-payload-private-v2.h:154
Definition mc-fle2-insert-update-payload-private-v2.h:112
Definition mc-fle2-insert-update-payload-private-v2.h:59