[MONGOCRYPT-85] Support explicit encryption and decryption Created: 05/Apr/19 Updated: 28/Oct/23 Resolved: 17/Apr/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: | Samantha Ritter (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | API | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | Build libmongocrypt library | ||||||||
| Description |
|
This is to support explicitly encrypting any BSON value or explicitly decrypting a BSON binary subtype 6 value. For client code that does this:
The driver should use libmongocrypt to encrypt "some value". We can reuse the mongocrypt_ctx_t type. I'm roughly thinking of:
Then the context can be used the same way as auto encryption. Drivers will likely need to wrap the BSON value to encrypt in a document. So in the above example, wrapped_value would represent the document { "v": "some value" }. |
| Comments |
| Comment by Githook User [ 17/Apr/19 ] |
|
Author: {'email': 'samantha.ritter@10gen.com', 'name': 'samantharitter', 'username': 'samantharitter'}Message: |
| Comment by Ian Whalen (Inactive) [ 08/Apr/19 ] |
|
awesome thanks! |
| Comment by Ian Whalen (Inactive) [ 08/Apr/19 ] |
|
samantha.ritter kevin.albertson could we talk about pulling this into scheduled ASAP? This seems to block POCs and we'd like to wrap all of those blockers ASAP to hit our April 16 spec/poc completion. |