95e0090bc2
* correctly handle input shorter than 512 bytes * add tests * reorder tests * add another test case * update test * address comment