read data until the number of bytes processed is less than the number of bytes sent
Merge branch 'decryptBugFix'