[MONGOCRYPT-480] Support explicit encryption for Range Created: 22/Aug/22  Updated: 28/Oct/23  Resolved: 15/Nov/22

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

Type: Task Priority: Unknown
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-70300 Update range encrypted find payload t... Closed
depends on SERVER-70301 Update range encrypted find placehold... Closed
Epic Link: libmongocrypt Support for Range Index
Binding Changes: Not Needed
Server Compat: 6.2

 Description   

Scope

  • Support explicit encryption for Range Query


 Comments   
Comment by Githook User [ 15/Nov/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-480 Support explicit encryption for Range (#472)

  • add mc_iter_document_as_bson utility
  • add explicit decryption tests
  • add MONGOCRYPT_ALGORITHM_RANGE_STR
  • assert strings not null in ASSERT_STREQUAL
  • make edgesInfo optional in placeholder and payload

It is not present in the placeholder for stubs.
It is not present in the ciphertext for stubs.

  • add mc_RangeOpts_t and support explicit range encryption

add explicit encryption tests

  • use int, not uint32_t for key length in _mongocrypt_buffer_append

This matches the argument type for bson_append_binary.

Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com>
Branch: master
https://github.com/mongodb/libmongocrypt/commit/4d9009d03810c51c460c8d22067b7fed11187e4b

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