Skip to main content

CRC32

Every frame ends with a CRC-32/ISO-HDLC, the one Ethernet and ZIP use (zlib.crc32 in Python).

ParameterValue
Polynomial0x04C11DB7
Initial value0xFFFFFFFF
XOR out0xFFFFFFFF
Reflect input/outputtrue
Size, byte order4 bytes, little-endian
Check ("123456789")0xCBF43926

The CRC is the last 4 bytes before />. It covers the unescaped bytes from the message key through the frame's last field, the : separators and the Message ID included.

A frame whose CRC doesn't match is discarded.