[MONGOCRYPT-508] Create API to parse tokens in FLE2IndexedRangeEncryptedValue Created: 08/Dec/22  Updated: 09/Jan/24

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

Type: Task Priority: Unknown
Reporter: Mark Benvenuto Assignee: Backlog - Security Team
Resolution: Unresolved Votes: 0
Labels: range-ga
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by MONGOCRYPT-510 Create serialization API for FLE2Inde... Backlog
Epic Link: PM-3042

 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_FLE2IndexedRangeEncryptedValueTokens

{ _mc_edgetoken[] tokens; uint32_t token_count; uint64_t[] counts; uint32_t counts_count; }

;

/* mc_FLE2IndexedEncryptedValue_decrypt_range decrypts InnerEncrypted into the set of range 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_range (_mongocrypt_crypto_t *crypto,
    mc_FLE2IndexedEncryptedValue_t *iev,
    mc_ServerDataEncryptionLevel1Token_t* token,
    _mc_FLE2IndexedRangeEncryptedValueTokens* indexed_tokens,
    mongocrypt_status_t *status);

     


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