Module mariadb::plugin::encryption
source · Expand description
Requirements to implement an encryption plugin
§Usage
- Keep key storage context in globals. These need to be mutex-protected
§Implementation
plugin_encryption.h defines st_mariadb_encryption, with the following members:
interface_version: integer, set via macroget_latest_key_version: function, wrapped inEncryption::get_latest_key_versionget_key: function, wrapped inEncryption::get_keycrypt_ctx_size: function, wrapped inEncryption::sizecrypt_ctx_init: function, wrapped inEncryption::initcrypt_ctx_update: function, wrapped inEncryption::updatecrypt_ctx_finish: function, wrapped inEncryption::finishencrypted_length: function, macro provides call tostd::mem::size_of
Enums§
- Errors returned by encryption operations
- Error types returned by key managers
Traits§
- Decryption interface; implement this on decryption context
- Encryption interface; implement this on encryption context
- A key maagment implementation with optional key rotation