Allow to specify a length to read from in_buf for en-/decryption

This allows to specify the length of bytes to read from the in buffers. This is useful if someone (myself actually) has aggregated single encrypted (file-)blocks to one big file.