Different zlib CRC Algorithms

Phil Thompson phil at river-bank.demon.co.uk
Tue Feb 4 07:12:57 EST 2003


I guess this is really a historical question, and not the right mailing list, 
but...

I'm curious to know why the zlib implementation in the kernel uses a slightly 
different algorithm for computing CRCs than the standard zlib userland 
library?

The difference is that the zlib library flips all the bits of the CRC on entry 
to crc32() and flips them again on exit. The result being a different CRC 
than would be generated by the kernel.

Thanks,
Phil




More information about the linux-mtd mailing list