koolhazz / crcutil

Automatically exported from code.google.com/p/crcutil
Apache License 2.0
0 stars 0 forks source link

cksum-compatible CRC? #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I have been trying to adapt crcutil as a high-performance, 
concatenation-capable cksum replacement. However, I notice that the crc32 
generating polynomial used in crcutil is the "reverse form" polynomial, 
0xEDB88320 (per Wikipedia terminology), not the "normal" form (0x04C11DB7) 
commonly used. And while the CRC outputs from crcutil match those from BSD 
"cksum -o 3", when I replace the generating polynomial with 0x04C11DB7 the 
outputs don't match those from "cksum".

Any advice on what I'm doing wrong?

Thanks,
-ak

Original issue reported on code.google.com by akisl...@dnanexus.com on 14 Dec 2012 at 4:30