-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
In mongocrypt-marking.c, the functions:
- _mongocrypt_fle2_placeholder_to_insert_update_ciphertext()
- _mongocrypt_fle2_placeholder_to_insert_update_ciphertextForRange()
will need to be updated to support the v2 payload types.
In particular, the following changes are needed:
- the type of payload changes to mc_FLE2InsertUpdatePayloadV2_t
- the ECCDerivedToken must be replaced by a ServerDerivedFromDataToken
- the computation of EncryptedTokens shall only encrypt the ESCDerivedFromDataAndContentionFactorToken
- set payload.contentionFactor to the randomly generated contention factor
- change calls to payload init/serialize/cleanup with v2 counterparts
- change the final serialized FLE2 subtype to MC_SUBTYPE_FLE2InsertUpdatePayloadV2