Lines Matching refs:check
34 * - Remove distance extra == 0 check in inflate_fast()--only helps for lengths
51 * - Simplified bad distance check in inflate_fast()
78 * - Check next_in and next_out for Z_NULL on entry to inflate()
410 /* check function to use adler32() for zlib or crc32() for gzip */
412 # define UPDATE(check, buf, len) \
413 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
415 # define UPDATE(check, buf, len) adler32(check, buf, len)
418 /* check macros for header crc */
420 # define CRC2(check, word) \
424 check = crc32(check, hbuf, 2); \
427 # define CRC4(check, word) \
433 check = crc32(check, hbuf, 4); \
570 update the check value, and determine whether any progress has been made
617 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
632 state->check = crc32(0L, Z_NULL, 0);
633 CRC2(state->check, hold);
641 if (!(state->wrap & 1) || /* check if zlib header allowed */
646 strm->msg = (char *)"incorrect header check";
666 strm->adler = state->check = adler32(0L, Z_NULL, 0);
686 if (state->flags & 0x0200) CRC2(state->check, hold);
693 if (state->flags & 0x0200) CRC4(state->check, hold);
702 if (state->flags & 0x0200) CRC2(state->check, hold);
711 if (state->flags & 0x0200) CRC2(state->check, hold);
730 state->check = crc32(state->check, next, copy);
751 state->check = crc32(state->check, next, copy);
772 state->check = crc32(state->check, next, copy);
783 if (hold != (state->check & 0xffff)) {
794 strm->adler = state->check = crc32(0L, Z_NULL, 0);
800 strm->adler = state->check = REVERSE(hold);
808 strm->adler = state->check = adler32(0L, Z_NULL, 0);
815 state->mode = CHECK;
972 /* check for end-of-block code (better have one) */
1159 case CHECK:
1166 strm->adler = state->check =
1167 UPDATE(state->check, put - out, out);
1173 REVERSE(hold)) != state->check) {
1174 strm->msg = (char *)"incorrect data check";
1179 Tracev((stderr, "inflate: check matches trailer\n"));
1187 strm->msg = (char *)"incorrect length check";
1210 Return from inflate(), updating the total counts and the check value.
1217 if (state->wsize || (state->mode < CHECK && out != strm->avail_out))
1228 strm->adler = state->check =
1229 UPDATE(state->check, strm->next_out - out, out);
1260 /* check state */
1266 /* check for correct dictionary id */
1270 if (id != state->check)
1300 /* check state */
1353 /* check parameters */
1391 implementation to provide an additional safety check. PPP uses
1415 /* check input */