[MONGOCRYPT-507] Add support for full deserialization of _mc_FLE2IndexedEqualityEncryptedValueTokens Created: 08/Dec/22  Updated: 28/Oct/23  Resolved: 13/Jan/23

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Mark Benvenuto Assignee: Shreyas Kalyan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by MONGOCRYPT-509 Create serialization API for FLE2Inde... Closed
Epic Link: PM-3042
Binding Changes: Not Needed

 Description   

Currently, the code that deserializes FLE2IndexedEqualityEncryptedValue does not read the tokens or count. This is needed for the server to switch to the libmongocrypt API.

struct _mc_FLE2IndexedEqualityEncryptedValueTokens {
   _mongocrypt_buffer_t edc;
   _mongocrypt_buffer_t esc;
   _mongocrypt_buffer_t ecc;
    uint64_t count;
};
 
/* mc_FLE2IndexedEncryptedValue_decrypt_equality decrypts InnerEncrypted into the set of tokens  with the ServerDataEncryptionLevel1Token on the server-side.
 * Returns false and sets @status on error. It is an error to call before
 * mc_FLE2IndexedEncryptedValue_parse. */
bool
mc_FLE2IndexedEncryptedValue_decrypt_equality (_mongocrypt_crypto_t *crypto,
                                        mc_FLE2IndexedEncryptedValue_t *iev,
                                        mc_ServerDataEncryptionLevel1Token_t* token,
                                        mc_FLE2IndexedEqualityEncryptedValueTokens* indexed_tokens,
                                        mongocrypt_status_t *status);



 Comments   
Comment by Githook User [ 13/Jan/23 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@mongodb.com', 'username': 'shreyaskal'}

Message: SERVER-71325 update libmongocrypt with changes from MONGOCRYPT-507
Branch: master
https://github.com/mongodb/mongo/commit/37ee8149d1ceae0c1dc462d5861825e6823e641d

Comment by Githook User [ 13/Jan/23 ]

Author:

{'name': 'Shreyas Kalyan', 'email': '35750327+shreyaskalyan@users.noreply.github.com', 'username': 'shreyaskalyan'}

Message: MONGOCRYPT-507 Add support for full deserialization of _mc_FLE2IndexedEqualityEncryptedValueTokens (#526)

  • MONGOCRYPT-507 Add support for full deserialization of _mc_FLE2IndexedEqualityEncryptedValueTokens

Co-authored-by: Shreyas Kalyan <shreyas.kalyan@mongodb.com>
Branch: master
https://github.com/mongodb/libmongocrypt/commit/2c564d555b168e9bdb60ade186b6f3aa759e010b

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