[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:
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: |