Closed nemequ closed 9 years ago
Hi Evan,
I think the problem is just byte ordering. In your example I get the following checksums: 0xaa36918a =?= 0x8a9136aa 0x43aba862 =?= 0x62a8ab43 0x4e79dd46 =?= 0x46dd794e 0x5cdb3f11 =?= 0x113fdb5c
Facepalm
Thanks, sorry for the noise.
I'm trying to use code generated by
./pycrc.py --model crc-32c --algorithm table-driven --generate c
/./pycrc.py --model crc-32c --algorithm table-driven --generate h
to generate snappy-framed data, but the checksums don't match what other implementations expect.Appendix B.4 of RFC 3720 includes some test vectors, so I threw together a quick program to verify pycrc's implementation and it fails: