Lines Matching refs:buf_setpos
194 buf_setpos(ses.readbuf, 0); in read_packet_init()
212 buf_setpos(ses.readbuf, blocksize); in read_packet_init()
241 buf_setpos(ses.readbuf, blocksize); in decrypt_packet()
245 buf_setpos(ses.decryptreadbuf, blocksize); in decrypt_packet()
268 buf_setpos(ses.readbuf, ses.readbuf->len - macsize); in decrypt_packet()
278 buf_setpos(ses.decryptreadbuf, PACKET_PADDING_OFF); in decrypt_packet()
288 buf_setpos(ses.decryptreadbuf, PACKET_PAYLOAD_OFF); in decrypt_packet()
306 buf_setpos(ses.payload, 0); in decrypt_packet()
343 buf_setpos(sourcebuf, 0); in checkmac()
385 buf_setpos(ret, ret->len); in buf_decompress()
431 buf_setpos(clearwritebuf, PACKET_PAYLOAD_OFF); in encrypt_packet()
433 buf_setpos(ses.writepayload, 0); in encrypt_packet()
449 buf_setpos(ses.writepayload, 0); in encrypt_packet()
463 buf_setpos(clearwritebuf, 0); in encrypt_packet()
470 buf_setpos(clearwritebuf, clearwritebuf->len); in encrypt_packet()
475 buf_setpos(clearwritebuf, 0); in encrypt_packet()
508 buf_setpos(writebuf, 0); in encrypt_packet()
547 buf_setpos(clearwritebuf, 0); in writemac()
587 buf_setpos(src, endpos - ses.keys->trans_zstream->avail_in); in buf_compress()
589 buf_setpos(dest, dest->len); in buf_compress()