Different zlib CRC Algorithms
David Woodhouse
dwmw2 at infradead.org
Tue Feb 4 08:35:07 EST 2003
On Tue, 2003-02-04 at 12:12, Phil Thompson wrote:
> 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.
Er, are you sure? We generate JFFS2 images using the userspace zlib
library from mkfs.jffs2, and those images work fine with both the old
and new kernel zlib.
--
dwmw2
More information about the linux-mtd
mailing list