[MONGOCRYPT-96] Remove document wrapper from ciphertext Created: 15/Mar/19  Updated: 28/Oct/23  Resolved: 13/May/19

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

Type: Task Priority: Major - P3
Reporter: Kevin Albertson Assignee: Clyde Bazile III (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Build libmongocrypt library

 Description   

For simplicity, just before encrypting data we wrap it in a document with an empty key. I.e. to encrypt the BSON uint8_t value 10, we really encrypt the bytes for the BSON document:

{ "" : 10 }

It's wasteful, but was simpler to implement in the beginning. Fixing this doesn't change any API from driver's perspective, but does change the ciphertext.



 Comments   
Comment by Githook User [ 13/May/19 ]

Author:

{'email': '34226620+bazile-clyde@users.noreply.github.com', 'name': 'bazile-clyde', 'username': 'bazile-clyde'}

Message: CDRIVER-3021 Remove document wrapper from ciphertext (#6)
Branch: master
https://github.com/10gen/libmongocrypt/commit/d7a7bd8496011346a56589f812984dfabf117c5d

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