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_version
get_key
: function, wrapped inEncryption::get_key
crypt_ctx_size
: function, wrapped inEncryption::size
crypt_ctx_init
: function, wrapped inEncryption::init
crypt_ctx_update
: function, wrapped inEncryption::update
crypt_ctx_finish
: function, wrapped inEncryption::finish
encrypted_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