Fix CRC32 generation

The loop was off by one (one call with zero bytes was done), produced
value is now equal to the value which is generated by pythns zlib.crc32
function. Tests are still missing.