Lines Matching refs:iph2
481 oakley_compute_keymat(iph2, side) in oakley_compute_keymat() argument
482 struct ph2handle *iph2; in oakley_compute_keymat()
488 if (iph2->approval->pfs_group && iph2->dhpub_p) {
489 if (oakley_dh_compute(iph2->pfsgrp, iph2->dhpub,
490 iph2->dhpriv, iph2->dhpub_p, &iph2->dhgxy) < 0)
495 if (oakley_compute_keymat_x(iph2, side, INBOUND_SA) < 0
496 || oakley_compute_keymat_x(iph2, side, OUTBOUND_SA) < 0)
517 oakley_compute_keymat_x(iph2, side, sa_dir) in oakley_compute_keymat_x() argument
518 struct ph2handle *iph2; in oakley_compute_keymat_x()
532 pfs = ((iph2->approval->pfs_group && iph2->dhgxy) ? 1 : 0);
534 len = pfs ? iph2->dhgxy->l : 0;
537 + iph2->nonce->l
538 + iph2->nonce_p->l);
546 for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
551 memcpy(p, iph2->dhgxy->v, iph2->dhgxy->l);
552 p += iph2->dhgxy->l;
562 bp = (side == INITIATOR ? iph2->nonce : iph2->nonce_p);
566 bp = (side == INITIATOR ? iph2->nonce_p : iph2->nonce);
575 res = oakley_prf(iph2->ph1->skeyid_d, buf, iph2->ph1);
648 this = oakley_prf(iph2->ph1->skeyid_d, seed,
649 iph2->ph1);
703 for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {