diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-05-27 19:41:29 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-06-02 19:00:23 +0200 |
commit | ebc5e00641ea63d91a65921ea827f448064f9a7e (patch) | |
tree | e8d92d73e460d48e0b49e0bdb4e2de5f25b74554 /mysys | |
parent | 487e5f45908c04d63a9becf1078ecaeaf658f0ae (diff) | |
download | mariadb-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.c | 2 |
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; |