mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Identical key derivation code in XtraDB/InnoDB/Aria
* Extract it into the "encryption_scheme" service. * Make these engines to use the service, remove duplicate code. * Change MY_AES_xxx error codes, to return them safely from encryption_scheme_encrypt/decrypt without conflicting with ENCRYPTION_SCHEME_KEY_INVALID error
This commit is contained in:
@@ -25,10 +25,10 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/* return values from my_aes_encrypt/my_aes_decrypt functions */
|
||||
#define MY_AES_OK 0
|
||||
#define MY_AES_BAD_DATA -1
|
||||
#define MY_AES_OPENSSL_ERROR -2
|
||||
#define MY_AES_BAD_KEYSIZE -3
|
||||
#define MY_AES_OK 0
|
||||
#define MY_AES_BAD_DATA -100
|
||||
#define MY_AES_OPENSSL_ERROR -101
|
||||
#define MY_AES_BAD_KEYSIZE -102
|
||||
|
||||
/* The block size for all supported algorithms */
|
||||
#define MY_AES_BLOCK_SIZE 16
|
||||
|
Reference in New Issue
Block a user