void
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 202MONGOC_CLIENT_ENCRYPTI...EY_OPTS_SET_KEYMATERIAL(3)
Description
Key material is used to encrypt and decrypt data. If custom key material is not provided, the key
material for the new data key is generated from a cryptographically secure random device.
Parameters
• opts: A mongoc_client_encryption_datakey_opts_t
• data: A pointer to the bytes constituting the custom key material.
• len: The length of the bytes constituting the custom key material.
Synopsis
void
mongoc_client_encryption_datakey_opts_set_keymaterial (
mongoc_client_encryption_datakey_opts_t *opts,
const uint8_t *data,
uint32_t len);
Sets the custom key material to be used by the data key for encryption and decryption.
