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:
@ -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
|
||||
|
Reference in New Issue
Block a user