[MONGOCRYPT-364] Support custom keyMaterial in createDataKey Created: 04/Jan/22  Updated: 28/Oct/23  Resolved: 09/Feb/22

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

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

Epic Link: Key Management API

 Description   

Background & Motivation

When creating a datakey in mongocrypt with mongocrypt_ctx_datakey_init the 96 byte keyMaterial is generated with _mongocrypt_random.

Scope

Support a custom 96 byte keyMaterial as an option to a mongocrypt_ctx_t. Consider adding a function like the following:

MONGOCRYPT_EXPORT
mongocrypt_ctx_setopt_key_material (mongocrypt_ctx_t *ctx, mongocrypt_binary_t *bin)



 Comments   
Comment by Githook User [ 09/Feb/22 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: MONGOCRYPT-364 Add support for providing custom keyMaterial via DataKeyOpts (#246)

  • Add mongocrypt_ctx_setopt_key_material
  • Add support for using custom key material for encryption
Generated at Thu Feb 08 09:08:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.