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, 

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 

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.


More information about the linux-mtd mailing list