Lines Matching refs:iph2
483 oakley_compute_keymat(iph2, side) in oakley_compute_keymat() argument
484 struct ph2handle *iph2; in oakley_compute_keymat()
490 if (iph2->approval->pfs_group && iph2->dhpub_p) {
491 if (oakley_dh_compute(iph2->pfsgrp, iph2->dhpub,
492 iph2->dhpriv, iph2->dhpub_p, &iph2->dhgxy) < 0)
497 if (oakley_compute_keymat_x(iph2, side, INBOUND_SA) < 0
498 || oakley_compute_keymat_x(iph2, side, OUTBOUND_SA) < 0)
519 oakley_compute_keymat_x(iph2, side, sa_dir) in oakley_compute_keymat_x() argument
520 struct ph2handle *iph2; in oakley_compute_keymat_x()
534 pfs = ((iph2->approval->pfs_group && iph2->dhgxy) ? 1 : 0);
536 len = pfs ? iph2->dhgxy->l : 0;
539 + iph2->nonce->l
540 + iph2->nonce_p->l);
548 for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
553 memcpy(p, iph2->dhgxy->v, iph2->dhgxy->l);
554 p += iph2->dhgxy->l;
564 bp = (side == INITIATOR ? iph2->nonce : iph2->nonce_p);
568 bp = (side == INITIATOR ? iph2->nonce_p : iph2->nonce);
577 res = oakley_prf(iph2->ph1->skeyid_d, buf, iph2->ph1);
650 this = oakley_prf(iph2->ph1->skeyid_d, seed,
651 iph2->ph1);
705 for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {