MySQL 8.0.39
Source Code Documentation
innobase::encryption Namespace Reference

Functions

bool init_keyring_services (const mysql_service_registry_t *reg_srv)
 Initialize keyring component service handles. More...
 
void deinit_keyring_services (const mysql_service_registry_t *reg_srv)
 Deinitialize keyring component service handles. More...
 
bool generate_key (const char *key_id, const char *key_type, size_t key_length)
 Generate a new key. More...
 
void remove_key (const char *key_id)
 Remove a key from keyring. More...
 

Variables

const mysql_service_keyring_reader_with_status_tkeyring_reader_service = nullptr
 
const mysql_service_keyring_writer_tkeyring_writer_service = nullptr
 
const mysql_service_keyring_generator_tkeyring_generator_service = nullptr
 

Function Documentation

◆ deinit_keyring_services()

void innobase::encryption::deinit_keyring_services ( const mysql_service_registry_t reg_srv)

Deinitialize keyring component service handles.

Parameters
[in]reg_srvHandle to registry service

◆ generate_key()

bool innobase::encryption::generate_key ( const char *  key_id,
const char *  key_type,
size_t  key_length 
)

Generate a new key.

Parameters
[in]key_idKey identifier
[in]key_typeType of the key
[in]key_lengthLength of the key
Returns
status of key generation
Return values
trueSuccess
falseError. No error is raised.

◆ init_keyring_services()

bool innobase::encryption::init_keyring_services ( const mysql_service_registry_t reg_srv)

Initialize keyring component service handles.

Parameters
[in]reg_srvHandle to registry service
Returns
status of keyring service initialization
Return values
trueSuccess
falseError

◆ remove_key()

void innobase::encryption::remove_key ( const char *  key_id)

Remove a key from keyring.

Parameters
[in]key_idKey to be removed

Variable Documentation

◆ keyring_generator_service

const mysql_service_keyring_generator_t* innobase::encryption::keyring_generator_service = nullptr

◆ keyring_reader_service

const mysql_service_keyring_reader_with_status_t* innobase::encryption::keyring_reader_service = nullptr

◆ keyring_writer_service

const mysql_service_keyring_writer_t* innobase::encryption::keyring_writer_service = nullptr