Home | History | Annotate | Download | only in lodepng

Lines Matching refs:ADLER32

2033 /* / Adler32                                                                  */
2059 /*Return the adler32 of the bytes data[0..len-1]*/
2060 static unsigned adler32(const unsigned char* data, unsigned len)
2108 unsigned ADLER32 = lodepng_read32bitInt(&in[insize - 4]);
2109 unsigned checksum = adler32(*out, (unsigned)(*outsize));
2110 if(checksum != ADLER32) return 58; /*error, adler checksum not correct, data must be corrupted*/
2144 unsigned ADLER32;
2145 /*zlib data: 1 byte CMF (CM+CINFO), 1 byte FLG, deflate data, 4 byte ADLER32 checksum of the Decompressed data*/
2163 ADLER32 = adler32(in, (unsigned)insize);
2166 lodepng_add32bitInt(&outv, ADLER32);
5990 case 58: return "invalid ADLER32 encountered (checking ADLER32 can be disabled)";