1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

my_aes_get_size()

return unsigned, not signed.
return a value large enough for GCM
This commit is contained in:
Sergei Golubchik
2015-05-27 19:41:29 +02:00
parent 487e5f4590
commit ebc5e00641
4 changed files with 13 additions and 11 deletions

View File

@ -191,7 +191,7 @@ static int my_b_encr_write(IO_CACHE *info, const uchar *Buffer, size_t Count)
buffer_length bytes should *always* produce block_length bytes
*/
DBUG_ASSERT(crypt_data->block_length == 0 || crypt_data->block_length == wlength);
DBUG_ASSERT(elength <= length + MY_AES_BLOCK_SIZE);
DBUG_ASSERT(elength <= my_aes_get_size(length));
crypt_data->block_length= wlength;
}
else