Copy before encryption clobbers the buffer!
Factor out padding a byte[]
Enable older splitfiles.
Track retries if maxRetries != -1
Logging
Avoid reporting error if already closed.
Don't try to add last block to blob in old splitfile
Fix NPE, use the right length
Fix retry count handling: MaxRetries=0 (default for FCP) => try each block once (and then terminate! wasn't working!)
If a block is not full, it's an error, unless it's the last block of an old-format splitfile, in which case we ignore it (=> we don't use it at all), because it would break FEC decoding.
Logging