Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test vectors for CRC32C

Tags:

crc32

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.

like image 409
dtoux Avatar asked Jan 07 '14 04:01

dtoux


1 Answers

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

like image 64
Mark Adler Avatar answered Sep 28 '22 17:09

Mark Adler