Refactoring: reified the concept of block cipher input/output. Turns out it simplifies code a lot.