Is zlib Type0 header data should be included in adler checksum calculation? -


when calculating adler-32 checksum of uncompressed data in zlib format, should include type 0 (uncompressed data) data well?

the zlib format not support "type 0". type supported zlib format type 8, deflate. since purely stored data not have means detect when ends, cannot used zlib data type. type used must self-terminating.

the deflate format internally supports stored mode, precedes chunks of uncompressed data counts.

if zlib format ever supports compression types other 8, yes, adler-32 computed on uncompressed result of methods of compression.


Comments