encrypt the remaining bytes in the buffer
takes one byte and stores it in a buffer. Only if the buffer is full it gets encrypted and the cipher text gets written to output.
See Implementation