Test vectors for CRC32C

dtoux picture dtoux · Jan 7, 2014 · Viewed 8.1k times · Source

I'm writing test harness for an CRC calculation library and I'm looking for reference test vectors for CRC-32C. I found plenty for CRC-32 but nothing for CRC-32C specifically. Could somebody point me to a reference?

I managed to calculate these values using online calculator from this url:

crc32c("") = 0
crc32c("The quick brown fox jumps over the lazy dog") = 0x22620404

However, I'm not even sure if my setup is correct. All I need is a reference to a reliable source that would provide few test vectors like this.

Answer

Mark Adler picture Mark Adler · Jan 7, 2014

This CRC catalog provides the check value of 0xe3069283 for a CRC-32C of the sequence of ASCII characters: "123456789" (without the quotes).