Home
last modified time | relevance | path

Searched refs:ibuf_seek (Results 1 – 8 of 8) sorted by relevance

/openbsd/sbin/iked/
H A Dikev2_msg.c172 if ((ptr = ibuf_seek(msg->msg_data, msg->msg_offset, len)) == NULL || in ikev2_msg_copy()
279 if (buf == NULL || (hdr = ibuf_seek(msg->msg_data, in ikev2_msg_send()
555 if ((ptr = ibuf_seek(src, in ikev2_msg_integr()
629 integrdata = ibuf_seek(src, integroff, integrlen); in ikev2_msg_decrypt()
653 cipher_setiv(sa->sa_encr, ibuf_seek(src, ivoff, ivlen), ivlen); in ikev2_msg_decrypt()
661 integrdata = ibuf_seek(src, integroff, integrlen); in ikev2_msg_decrypt()
686 if (cipher_update(sa->sa_encr, ibuf_seek(src, encroff, encrlen), in ikev2_msg_decrypt()
692 ptr = ibuf_seek(out, outlen - 1, 1); in ikev2_msg_decrypt()
879 data = ibuf_seek(in, offset, 0); in ikev2_send_encrypted_fragments()
1169 (hdr = ibuf_seek(msg->msg_data, 0, sizeof(*hdr))) == NULL) in ikev2_msg_frompeer()
H A Dikev2_pld.c1068 if ((buf = ibuf_seek(msg->msg_data, offset + sizeof(n), left)) == NULL) in ikev2_pld_notify()
1715 memcpy(el->frag_data, ibuf_seek(e, 0, 0), elen); in ikev2_pld_ef()
1766 ptr = ibuf_seek(e, offset, el->frag_size); in ikev2_frags_reassemble()
2095 if ((eap = ibuf_seek(msg->msg_data, offset, eap_len)) == NULL) { in ikev2_pld_eap()
H A Dcrypto.c570 nonce = ibuf_new(ibuf_seek(encr->encr_key, in cipher_init()
H A Dikev2.c649 hdr = ibuf_seek(msg->msg_data, msg->msg_offset, sizeof(*hdr)); in ikev2_recv()
2328 if ((hdr = ibuf_seek(buf, 0, sizeof(*hdr))) == NULL) in ikev2_nat_detection()
5344 if ((hdr = ibuf_seek(msg->msg_data, 0, sizeof(*hdr))) == NULL) in ikev2_send_informational()
/openbsd/regress/lib/libutil/imsg/
H A Dibuf_test.c88 ret = (ibuf_seek(buf, 1, SIZE_MAX) != NULL); in test_ibuf_seek()
/openbsd/lib/libutil/
H A DSymbols.map53 ibuf_seek;
H A Dimsg.h96 void *ibuf_seek(struct ibuf *, size_t, size_t);
H A Dimsg-buffer.c240 ibuf_seek(struct ibuf *buf, size_t pos, size_t len) in ibuf_seek() function
257 if ((b = ibuf_seek(buf, pos, len)) == NULL) in ibuf_set()