[MONGOCRYPT-545] Implement conversion of FLE2 placeholder to FindRangePayloadV2 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 function _mongocrypt_fle2_placeholder_to_find_ciphertextForRange() will need to be updated to support the v2 payload type.

In particular, the following changes are needed:

  • the type of payload changes to mc_FLE2FindRangePayloadV2_t
  • the ECCDerivedToken must be replaced by a ServerDerivedFromDataToken
  • the type of the edge token set changes to mc_EdgeFindTokenSetV2_t
  • the derivation of the ServerDataEncryptionLevel1Token (for the top-level payload, and for each edge) shall be removed. This token is no longer needed in the v2 payload.
  • change calls to payload init/serialize/cleanup with v2 counterparts
  • change the final serialized FLE2 subtype to MC_SUBTYPE_FLE2FindRangePayloadV2


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

Author:

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

Message: MONGOCRYPT-545 Implement FLE2FindRangePayloadV2 transform
Branch: shreyaskalyan/MONGOCRYPT-539
https://github.com/mongodb/libmongocrypt/commit/2ec9c3c4ff94f76bb51a5b4cc2fe9190457d6541

Comment by Githook User [ 08/Mar/23 ]

Author:

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

Message: MONGOCRYPT-545 Implement FLE2FindRangePayloadV2 transform
Branch: master
https://github.com/mongodb/libmongocrypt/commit/2ec9c3c4ff94f76bb51a5b4cc2fe9190457d6541

Comment by Sara Golemon [ 07/Mar/23 ]

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

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