function crc32(bytes) {
  let crc = 0xFFFFFFFF;

  for (const b of bytes) {
    crc = (crc >>> 8) ^ crc32Table[(crc ^ b) & 255];
  }

  return crc ^ 0xFFFFFFFF;
}
Computes a Tuya flavored CRC32
@param {Iterable} bytes The bytes to compute the CRC32 for
@returns {Number} Tuya CRC32