summaryrefslogtreecommitdiff
path: root/plugin/example_key_management/example_key_management_plugin.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-111-1/+1
|
* MDEV-11660 Make encryption plugins "pure"Vladislav Vaintroub2017-04-271-4/+9
| | | | | | | | Do not exporting mysqld entry points directly. This is needed for mariabackup, to load encryption plugins on Windows. All plugins are "pure" by default. To mark plugin "impure" it should use RECOMPILE_FOR_EMBEDDED or STORAGE_ENGINE keyword.
* MDEV-11663 Create services for functionality used by pluginsVladislav Vaintroub2017-04-271-3/+21
| | | | | | Added service for - encryption (AES) - error reporting, e.g my_printf_error()
* Fixed compile warnings on SolarisMonty2015-11-201-5/+6
|
* New encryption API. Piece-wise encryption.Sergei Golubchik2015-09-041-17/+18
| | | | | | | | | | | | | Instead of encrypt(src, dst, key, iv) that encrypts all data in one go, now we have encrypt_init(key,iv), encrypt_update(src,dst), and encrypt_finish(dst). This also causes collateral changes in the internal my_crypt.cc encryption functions and in the encryption service. There are wrappers to provide the old all-at-once encryption functionality. But binlog events are often written piecewise, they'll need the new api.
* example encryption plugin supports key idsSergei Golubchik2015-05-131-3/+2
| | | | | show that two keys can be different if they have different ids or different versions.
* fix "use mutex before initialization" bug in example_km pluginSergei Golubchik2015-04-101-1/+1
| | | | that for some reasons worked on linux, but crashed on windows
* Add encryption key id to the API as a distinct conceptSergei Golubchik2015-04-091-5/+8
| | | | which is separate from the encryption key version
* renames to follow single consistent naming styleSergei Golubchik2015-04-091-1/+1
| | | | with namespace prefixes
* encryption plugin controls the encryptionSergei Golubchik2015-04-091-17/+31
| | | | | | | | | * no --encryption-algorithm option anymore * encrypt/decrypt methods in the encryption plugin * ecnrypt/decrypt methods in the encryption_km service * file_km plugin has --file-key-management-encryption-algorithm * debug_km always uses aes_cbc * example_km changes between aes_cbc and aes_ecb for different key versions
* rename "encryption key management plugin" to "encryption plugin"Sergei Golubchik2015-04-091-4/+4
| | | | because it's going to do more than just key management
* optimize encryption apiSergei Golubchik2015-04-081-23/+10
| | | | | only one encryption key lookup in most cases instead of three (has_key, get_key_size, get_key).
* rename plugins to remove "_plugin" from the plugin nameSergei Golubchik2015-04-081-0/+142