Lines Matching refs:iovec
1062 struct evbuffer_iovec iovec;
1065 evbuffer_peek( buf, -1, &pos, &iovec, 1 );
1066 tr_cryptoEncrypt( &io->crypto, iovec.iov_len, iovec.iov_base, iovec.iov_base );
1067 } while( !evbuffer_ptr_set( buf, &pos, iovec.iov_len, EVBUFFER_PTR_ADD ) );
1083 struct evbuffer_iovec iovec;
1084 evbuffer_reserve_space( io->outbuf, byteCount, &iovec, 1 );
1086 iovec.iov_len = byteCount;
1088 tr_cryptoEncrypt( &io->crypto, iovec.iov_len, bytes, iovec.iov_base );
1090 memcpy( iovec.iov_base, bytes, iovec.iov_len );
1091 evbuffer_commit_space( io->outbuf, &iovec, 1 );
1149 struct evbuffer_iovec iovec;
1152 evbuffer_peek( outbuf, byteCount, &pos, &iovec, 1 );
1153 tr_cryptoDecrypt( &io->crypto, iovec.iov_len, iovec.iov_base, iovec.iov_base );
1154 byteCount -= iovec.iov_len;
1155 } while( !evbuffer_ptr_set( outbuf, &pos, iovec.iov_len, EVBUFFER_PTR_ADD ) );