ibuf_new
ASSERT_PTR_NE(fuzzed = ibuf_new(fuzz_ptr(fuzz), fuzz_len(fuzz)),
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);
ASSERT_PTR_NE(data = ibuf_new(valid_packet, sizeof(valid_packet)),
if ((env->sc_certreq = ibuf_new(NULL, 0)) == NULL)
buf = ibuf_new(d, len);
if ((id->id_buf = ibuf_new(NULL, len)) == NULL)
if ((id->id_buf = ibuf_new(NULL, len)) == NULL)
if ((id->id_buf = ibuf_new(NULL, len)) == NULL)
if ((id->id_buf = ibuf_new(NULL, len)) == NULL)
if ((idp.id_buf = ibuf_new(id->id_data, id->id_length)) == NULL)
if ((sanid.id_buf = ibuf_new(data, len))
if ((retid->id_buf = ibuf_new(data, len)) == NULL) {
if ((authmsg = ibuf_new(ptr, len)) == NULL)
if ((id.id_buf = ibuf_new((uint8_t *)imsg->data + sizeof(id),
if ((hash->hash_key = ibuf_new(key, keylen)) == NULL) {
if ((encr->encr_key = ibuf_new(key, keylen)) == NULL) {
encr->encr_iv = ibuf_new(iv, encr->encr_ivlength);
encr->encr_iv = ibuf_new(&encr->encr_civ, sizeof(encr->encr_civ));
nonce = ibuf_new(ibuf_seek(encr->encr_key,
if ((dsa->dsa_keydata = ibuf_new(key, keylen)) == NULL) {
buf = ibuf_new(NULL, dh_getlen(group));
buf = ibuf_new(NULL, dh_secretlen(group));
buf = ibuf_new(NULL, need);
buf = ibuf_new(NULL, need);
buf = ibuf_new(NULL, len);
if ((sa->sa_eap.id_buf = ibuf_new(ms->msc_challenge,
ibuf_new(const void *, size_t);
if ((buf = ibuf_new(NULL, 0)) == NULL)
vendor_id = ibuf_new(IKED_VENDOR_ID, strlen(IKED_VENDOR_ID));
if ((id->id_buf = ibuf_new(&hdr, sizeof(hdr))) == NULL)
env->sc_certreq = ibuf_new(ptr,
vendor_id = ibuf_new(IKED_VENDOR_ID, strlen(IKED_VENDOR_ID));
if (len > 0 && (id->id_buf = ibuf_new(ptr, len)) == NULL) {
if ((sa->sa_eapmsk = ibuf_new(NULL, MSCHAP_MSK_SZ)) == NULL) {
if (len <= 0 || (id->id_buf = ibuf_new(ptr, len)) == NULL) {
if (len <= 0 || (id->id_buf = ibuf_new(ptr, len)) == NULL) {
(id->id_buf = ibuf_new(ptr, len)) == NULL) {
if ((ninr = ibuf_new(ibuf_data(sa->sa_inonce), ilen)) == NULL ||
if ((skeyseed = ibuf_new(NULL, hash_keylength(prf))) == NULL) {
if ((s = ibuf_new(ibuf_data(sa->sa_inonce), ilen)) == NULL ||
if ((t = ibuf_new(NULL, 0)) == NULL) {
t2 = ibuf_new(NULL, 0);
t1 = ibuf_new(NULL, hash_keylength(prf));
if ((seed = ibuf_new(NULL, 0)) == NULL) {
if ((idp.id_buf = ibuf_new(id->id_data, id->id_length)) == NULL) {
if ((buf = ibuf_new(NULL, dsa_length(dsa))) == NULL) {
if ((new = ibuf_new(&natt, sizeof(natt))) == NULL) {
if ((out = ibuf_new(NULL,
if ((tmp = ibuf_new(NULL, hash_keylength(sa->sa_integr))) == NULL)
if ((tmp = ibuf_new(NULL, hash_keylength(sa->sa_integr))) == NULL)
if ((out = ibuf_new(NULL, cipher_outlength(sa->sa_encr,
if ((e = ibuf_new(data, MINIMUM(left, max_len))) == NULL) {
if ((msg.msg_data = ibuf_new(buf + off, len - off)) == NULL)
if ((msg->msg_nonce = ibuf_new(buf, len)) == NULL) {
if ((msg->msg_cookie2 = ibuf_new(buf, left)) == NULL) {
if ((msg->msg_cookie = ibuf_new(buf, left)) == NULL) {
msg->msg_parent->msg_del_buf = ibuf_new(buf, len);
if ((e = ibuf_new(buf, len)) == NULL)
if ((e = ibuf_new(NULL, sa_frag->frag_total_size)) == NULL) {
if ((e = ibuf_new(buf, len)) == NULL)
if ((msg->msg_parent->msg_eapmsg = ibuf_new(eap, eap_len))
if ((msg->msg_parent->msg_ke = ibuf_new(buf, len)) == NULL) {
if ((idb.id_buf = ibuf_new(ptr, len)) == NULL)
if ((certid->id_buf = ibuf_new(buf, len)) == NULL) {
if ((cr->cr_data = ibuf_new(buf, len)) == NULL) {
if ((idp->id_buf = ibuf_new(buf, len)) == NULL)
return (ibuf_new(ibuf_data(&tmp), ibuf_size(&tmp)));
return (ibuf_new(ibuf_data(buf), ibuf_size(buf)));
(req->rr_state = ibuf_new(attrval, attrlen)) == NULL) {
if ((req->rr_sa->sa_eapmsk = ibuf_new(eapmsk,
if ((req->rr_sa->sa_eapclass = ibuf_new(attrval,
if ((e = ibuf_new(NULL, attrlen)) == NULL) {