[MONGOCRYPT-543] Implement conversion of FLE2 placeholder to InsertUpdatePayloadV2 Created: 21/Feb/23  Updated: 28/Oct/23  Resolved: 08/Mar/23

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: 1.8.0, 1.8.0-alpha0

Type: Task Priority: Unknown
Reporter: Erwin Pe Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: PM-2972
Binding Changes: Not Needed

 Description   

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


 Comments   
Comment by Githook User [ 20/Mar/23 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: MONGOCRYPT-543 Implement FLE2InsertUpdatePayloadV2 transform
Branch: shreyaskalyan/MONGOCRYPT-539
https://github.com/mongodb/libmongocrypt/commit/1c3fd9c7593a4273e6a9d8385ca15c2b683aab08

Comment by Githook User [ 08/Mar/23 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: MONGOCRYPT-543 Implement FLE2InsertUpdatePayloadV2 transform
Branch: master
https://github.com/mongodb/libmongocrypt/commit/1c3fd9c7593a4273e6a9d8385ca15c2b683aab08

Comment by Sara Golemon [ 07/Mar/23 ]

https://github.com/mongodb/libmongocrypt/pull/588

Generated at Thu Feb 08 09:08:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.