Fix for bug 1190610 : Decryption fails at a later stage.
xbcrypt_read_chunk was relying on blocking/full I/O even though it didn't specify MY_FULL_IO during the bulk data read. Added ability to pass desired flags down through read mechanism callback so that header reads can fail on EOF and bulk data can block until data is available.