Searched refs:rc4key (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/net80211/ |
H A D | ieee80211_crypto_wep.c | 351 uint8_t rc4key[IEEE80211_WEP_IVLEN + IEEE80211_KEYBUF_SIZE]; in wep_encrypt() local 362 memcpy(rc4key, mtod(m, uint8_t *) + hdrlen, IEEE80211_WEP_IVLEN); in wep_encrypt() 363 memcpy(rc4key + IEEE80211_WEP_IVLEN, key->wk_key, key->wk_keylen); in wep_encrypt() 371 j = (j + S[i] + rc4key[i % keylen]) & 0xff; in wep_encrypt() 434 uint8_t rc4key[IEEE80211_WEP_IVLEN + IEEE80211_KEYBUF_SIZE]; in wep_decrypt() local 445 memcpy(rc4key, mtod(m, uint8_t *) + hdrlen, IEEE80211_WEP_IVLEN); in wep_decrypt() 446 memcpy(rc4key + IEEE80211_WEP_IVLEN, key->wk_key, key->wk_keylen); in wep_decrypt() 454 j = (j + S[i] + rc4key[i % keylen]) & 0xff; in wep_decrypt()
|
/freebsd/usr.sbin/ppp/ |
H A D | mppe.c | 105 RC4_KEY rc4key; member 205 RC4_set_key(&mop->rc4key, mop->keylen, mop->sesskey); in MPPEOutput() 213 RC4(&mop->rc4key, 2, (char *)&nproto, rp + 2); in MPPEOutput() 217 RC4(&mop->rc4key, ilen, rp, rp); in MPPEOutput() 354 RC4_set_key(&mip->rc4key, mip->keylen, mip->sesskey); in MPPEInput() 358 RC4(&mip->rc4key, 2, (char *)proto, (char *)proto); in MPPEInput() 363 RC4(&mip->rc4key, len, rp, rp); in MPPEInput() 720 RC4_set_key(&mip->rc4key, mip->keylen, mip->sesskey); in MPPEInitInput() 776 RC4_set_key(&mop->rc4key, mop->keylen, mop->sesskey); in MPPEInitOutput()
|