Different zlib CRC Algorithms
phil at river-bank.demon.co.uk
Tue Feb 4 13:00:53 EST 2003
On Tuesday 04 February 2003 5:47 pm, Joakim Tjernlund wrote:
> > > > Why does ppcboot/uboot have two versions of crc32()? What's the
> > > > difference between them?
> > >
> > > The difference is the ^0xffffffff part you decribed above. One is used
> > > by uboot for crc'ing images, environment etc. The other for JFFS2
> > > support in uboot.
> > So that would confirm my original observation that the kernel does use a
> > slightly different CRC algorithm than userspace zlib.
> hmm, does zlib use crc32() at all? I have only seen adler32() in zlib,
> I haven't look very hard though.
It does. It's needed to support gzip files.
More information about the linux-mtd