Lines Matching refs:obuf
337 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf,
364 obuf[0] = PPP_ADDRESS(ibuf);
365 obuf[1] = PPP_CONTROL(ibuf);
366 put_unaligned_be16(PPP_COMP, obuf + 2);
367 obuf += PPP_HDRLEN;
373 put_unaligned_be16(state->ccount, obuf);
385 obuf[0] |= state->bits;
388 obuf += MPPE_OVHD;
392 arc4_crypt(&state->arc4, obuf, ibuf, isize);
434 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf,
555 obuf[0] = PPP_ADDRESS(ibuf); /* +1 */
556 obuf[1] = PPP_CONTROL(ibuf); /* +1 */
557 obuf += 2;
566 arc4_crypt(&state->arc4, obuf, ibuf, 1);
573 if ((obuf[0] & 0x01) != 0) {
574 obuf[1] = obuf[0];
575 obuf[0] = 0;
576 obuf++;
581 arc4_crypt(&state->arc4, obuf + 1, ibuf + 1, isize - 1);