Lines Matching refs:iph2
440 oakley_compute_keymat(iph2, side) in oakley_compute_keymat() argument
441 struct ph2handle *iph2; in oakley_compute_keymat()
447 if (iph2->approval->pfs_group && iph2->dhpub_p) {
448 if (oakley_dh_compute(iph2->pfsgrp, iph2->dhpub,
449 iph2->dhpriv, iph2->dhpub_p, &iph2->dhgxy) < 0)
454 if (oakley_compute_keymat_x(iph2, side, INBOUND_SA) < 0
455 || oakley_compute_keymat_x(iph2, side, OUTBOUND_SA) < 0)
476 oakley_compute_keymat_x(iph2, side, sa_dir) in oakley_compute_keymat_x() argument
477 struct ph2handle *iph2; in oakley_compute_keymat_x()
491 pfs = ((iph2->approval->pfs_group && iph2->dhgxy) ? 1 : 0);
493 len = pfs ? iph2->dhgxy->l : 0;
496 + iph2->nonce->l
497 + iph2->nonce_p->l);
505 for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
510 memcpy(p, iph2->dhgxy->v, iph2->dhgxy->l);
511 p += iph2->dhgxy->l;
521 bp = (side == INITIATOR ? iph2->nonce : iph2->nonce_p);
525 bp = (side == INITIATOR ? iph2->nonce_p : iph2->nonce);
534 res = oakley_prf(iph2->ph1->skeyid_d, buf, iph2->ph1);
607 this = oakley_prf(iph2->ph1->skeyid_d, seed,
608 iph2->ph1);
662 for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {