mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-8022 Assertion `rc == 0' failed in ma_encrypt on dropping an encrypted Aria table
fix encryption of the last partial block * now really encrypt it, using key and iv * support the case of very short plaintext (less than one block) * recommend aes_ctr over aes_cbc, because the former doesn't have problems with partial blocks
This commit is contained in:
5
mysql-test/suite/encryption/r/aria_tiny.result
Normal file
5
mysql-test/suite/encryption/r/aria_tiny.result
Normal file
@@ -0,0 +1,5 @@
|
||||
set global aria_encrypt_tables = 1;
|
||||
create table t1 (i int, key(i)) engine=aria;
|
||||
insert into t1 values (1);
|
||||
drop table t1;
|
||||
set global aria_encrypt_tables = 0;
|
12
mysql-test/suite/encryption/t/aria_tiny.test
Normal file
12
mysql-test/suite/encryption/t/aria_tiny.test
Normal file
@@ -0,0 +1,12 @@
|
||||
#
|
||||
# MDEV-8022 Assertion `rc == 0' failed in ma_encrypt on dropping an encrypted Aria table
|
||||
#
|
||||
|
||||
--source include/have_file_key_management_plugin.inc
|
||||
|
||||
set global aria_encrypt_tables = 1;
|
||||
create table t1 (i int, key(i)) engine=aria;
|
||||
insert into t1 values (1);
|
||||
drop table t1;
|
||||
set global aria_encrypt_tables = 0;
|
||||
|
Reference in New Issue
Block a user