lib: crc32: fix mixing of endian-specific types