Home | History | Annotate | Download | only in lodepng

Lines Matching refs:CRC

2266 /* CRC polynomial: 0xedb88320 */
2302 /*Return the CRC of the bytes buf[0..len-1].*/
2408 unsigned CRC = lodepng_read32bitInt(&chunk[length + 8]);
2409 /*the CRC is taken of the data and the 4 chunk type letters, not the length*/
2411 if(CRC != checksum) return 1;
2418 unsigned CRC = lodepng_crc32(&chunk[4], length + 4);
2419 lodepng_set32bitInt(chunk + 8 + length, CRC);
2478 /*4: CRC (of the chunkname characters and the data)*/
3989 unsigned CRC = lodepng_read32bitInt(&in[29]);
3991 if(CRC != checksum)
3993 CERROR_RETURN_ERROR(state->error, 57); /*invalid CRC*/
4597 /*length of the data of the chunk, excluding the length bytes, chunk type and CRC bytes*/
4700 if(!state->decoder.ignore_crc && !unknown) /*check CRC if wanted, only on known chunk types*/
4702 if(lodepng_chunk_check_crc(chunk)) CERROR_BREAK(state->error, 57); /*invalid CRC*/
5989 case 57: return "invalid CRC encountered (checking CRC can be disabled)";