Lines Matching refs:tl
530 unsigned long tl; in block_out() local
541 tl = ctx->buf_len - OK_BLOCK_BLOCK; in block_out()
542 ctx->buf[0] = (unsigned char)(tl >> 24); in block_out()
543 ctx->buf[1] = (unsigned char)(tl >> 16); in block_out()
544 ctx->buf[2] = (unsigned char)(tl >> 8); in block_out()
545 ctx->buf[3] = (unsigned char)(tl); in block_out()
547 (unsigned char *)&(ctx->buf[OK_BLOCK_BLOCK]), tl)) in block_out()
563 unsigned long tl = 0; in block_in() local
573 assert(sizeof(tl) >= OK_BLOCK_BLOCK); /* always true */ in block_in()
574 tl = ctx->buf[0]; in block_in()
575 tl <<= 8; in block_in()
576 tl |= ctx->buf[1]; in block_in()
577 tl <<= 8; in block_in()
578 tl |= ctx->buf[2]; in block_in()
579 tl <<= 8; in block_in()
580 tl |= ctx->buf[3]; in block_in()
582 if (ctx->buf_len < tl + OK_BLOCK_BLOCK + md_size) in block_in()
586 (unsigned char *)&(ctx->buf[OK_BLOCK_BLOCK]), tl)) in block_in()
590 if (memcmp(&(ctx->buf[tl + OK_BLOCK_BLOCK]), tmp, md_size) == 0) { in block_in()
592 ctx->buf_off_save = tl + OK_BLOCK_BLOCK + md_size; in block_in()
595 ctx->buf_len = tl + OK_BLOCK_BLOCK; in block_in()