This is a preparation to be able to build KeePassX against Qt 5.
The implementation had two issues: - It didn't add a block full of padding when the input size was a multiple of the block size. - It didn't strip the padding when reading data.