Bring types in order
CRC functions
Fix compilation without CRC checking
CRC type is unsigned-byte