Lines Matching full:nonce
179 /* generate NONCE value */
180 iph2->nonce = eay_set_random(iph2->ph1->rmconf->nonce_size);
181 if (iph2->nonce == NULL)
232 /* create SA;NONCE payload, and KE if need, and IDii, IDir. */
234 + sizeof(*gen) + iph2->nonce->l;
254 /* add NONCE payload */
261 p = set_isakmp_payload(p, iph2->nonce, np);
380 tlen = iph2->nonce->l
388 p = hbuf->v + iph2->nonce->l; /* retain the space for Ni_b */
485 memcpy(hbuf->v, iph2->nonce->v, iph2->nonce->l);
488 hbuf->l, tlen + iph2->nonce->l);
490 hbuf->l = iph2->nonce->l + tlen;
577 tmp = vmalloc(iph2->nonce->l + iph2->nonce_p->l);
583 memcpy(tmp->v, iph2->nonce->v, iph2->nonce->l);
584 memcpy(tmp->v + iph2->nonce->l, iph2->nonce_p->v, iph2->nonce_p->l);
1214 /* generate NONCE value */
1215 iph2->nonce = eay_set_random(iph2->ph1->rmconf->nonce_size);
1216 if (iph2->nonce == NULL)
1235 /* create SA;NONCE payload, and KE and ID if need */
1237 + sizeof(*gen) + iph2->nonce->l;
1255 /* add NONCE payload */
1257 p = set_isakmp_payload(p, iph2->nonce,
1457 tmp = vmalloc(iph2->nonce_p->l + iph2->nonce->l);
1464 memcpy(tmp->v + iph2->nonce_p->l, iph2->nonce->v, iph2->nonce->l);
1733 * create HASH, body (SA, NONCE) payload with isakmp header.