summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-05-27 19:41:29 +0200
committerSergei Golubchik <serg@mariadb.org>2015-06-02 19:00:23 +0200
commitebc5e00641ea63d91a65921ea827f448064f9a7e (patch)
treee8d92d73e460d48e0b49e0bdb4e2de5f25b74554 /mysys
parent487e5f45908c04d63a9becf1078ecaeaf658f0ae (diff)
downloadmariadb-git-ebc5e00641ea63d91a65921ea827f448064f9a7e.tar.gz
my_aes_get_size()
return unsigned, not signed. return a value large enough for GCM
Diffstat (limited to 'mysys')
-rw-r--r--mysys/mf_iocache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index 28e5e72130d..4591557baf0 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -265,7 +265,7 @@ int init_io_cache(IO_CACHE *info, File file, size_t cachesize,
if (type == SEQ_READ_APPEND)
buffer_block *= 2;
else if (cache_myflags & MY_ENCRYPT)
- buffer_block= 2*(buffer_block + MY_AES_BLOCK_SIZE) + sizeof(IO_CACHE_CRYPT);
+ buffer_block= 2*my_aes_get_size(buffer_block) + sizeof(IO_CACHE_CRYPT);
if (cachesize == min_cache)
flags|= (myf) MY_WME;