• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/usr.sbin/ppp/

Lines Matching refs:mip

245   struct mppe_state *mip = (struct mppe_state *)v;
270 if (!flushed && mip->stateless) {
277 if (mip->stateless) {
279 while (prefix != mip->cohnum) {
281 MPPEKeyChange(mip);
283 * mip->cohnum contains what we received last time in stateless
286 mip->cohnum++;
287 mip->cohnum &= ~MPPE_HEADER_BITMASK;
297 (mip->cohnum >> MPPE_HEADER_FLAGSHIFT);
303 MPPEKeyChange(mip);
305 mip->flushrequired = 0;
306 mip->cohnum = prefix;
310 if (mip->flushrequired) {
323 if (prefix != mip->cohnum) {
331 prefix, mip->cohnum);
334 mip->flushrequired = 1;
341 MPPEKeyChange(mip);
347 * mip->cohnum contains what we expect to receive next time in stateful
350 mip->cohnum++;
351 mip->cohnum &= ~MPPE_HEADER_BITMASK;
356 RC4_set_key(&mip->rc4key, mip->keylen, mip->sesskey);
360 RC4(&mip->rc4key, 2, (char *)proto, (char *)proto);
365 RC4(&mip->rc4key, len, rp, rp);
683 struct mppe_state *mip;
690 if ((mip = MPPE_InitState(o)) == NULL) {
695 log_Printf(LogDEBUG, "MPPE: InitInput: %d-bits\n", mip->keybits);
699 if (mip->keylen > bundle->radius.mppe.recvkeylen)
700 mip->keylen = bundle->radius.mppe.recvkeylen;
701 if (mip->keylen > sizeof mip->mastkey)
702 mip->keylen = sizeof mip->mastkey;
703 memcpy(mip->mastkey, bundle->radius.mppe.recvkey, mip->keylen);
706 GetAsymetricStartKey(MPPE_MasterKey, mip->mastkey, mip->keylen, 0,
709 GetNewKeyFromSHA(mip->mastkey, mip->mastkey, mip->keylen, mip->sesskey);
711 MPPEReduceSessionKey(mip);
715 if (!mip->stateless) {
721 mip->cohnum);
722 RC4_set_key(&mip->rc4key, mip->keylen, mip->sesskey);
729 log_Printf(LogDEBUG, "MPPEInitInput: Key changed [%d]\n", mip->cohnum);
730 MPPEKeyChange(mip);
733 return mip;