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