Searched refs:rc4key (Results 1 – 5 of 5) sorted by relevance
/drivers/staging/rtl8188eu/core/ |
D | rtw_security.c | 530 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument 560 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2() 561 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2() 562 rc4key[2] = Lo8(iv16); in phase2() 563 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); in phase2() 567 rc4key[4 + 2 * i] = Lo8(PPK[i]); in phase2() 568 rc4key[5 + 2 * i] = Hi8(PPK[i]); in phase2() 577 u8 rc4key[16]; in rtw_tkip_encrypt() local 622 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); in rtw_tkip_encrypt() 631 arcfour_init(&mycontext, rc4key, 16); in rtw_tkip_encrypt() [all …]
|
/drivers/staging/rtl8192e/ |
D | rtllib_crypt_tkip.c | 276 u8 rc4key[16], *icv; in rtllib_tkip_encrypt() local 291 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, in rtllib_tkip_encrypt() 307 *pos++ = rc4key[0]; in rtllib_tkip_encrypt() 308 *pos++ = rc4key[1]; in rtllib_tkip_encrypt() 309 *pos++ = rc4key[2]; in rtllib_tkip_encrypt() 326 arc4_setkey(&tkey->tx_ctx_arc4, rc4key, 16); in rtllib_tkip_encrypt() 352 u8 rc4key[16]; in rtllib_tkip_decrypt() local 410 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in rtllib_tkip_decrypt() 414 arc4_setkey(&tkey->rx_ctx_arc4, rc4key, 16); in rtllib_tkip_decrypt()
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_tkip.c | 276 u8 rc4key[16], *icv; in ieee80211_tkip_encrypt() local 291 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in ieee80211_tkip_encrypt() 306 *pos++ = rc4key[0]; in ieee80211_tkip_encrypt() 307 *pos++ = rc4key[1]; in ieee80211_tkip_encrypt() 308 *pos++ = rc4key[2]; in ieee80211_tkip_encrypt() 325 arc4_setkey(&tkey->tx_ctx_arc4, rc4key, 16); in ieee80211_tkip_encrypt() 346 u8 rc4key[16]; in ieee80211_tkip_decrypt() local 399 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in ieee80211_tkip_decrypt() 403 arc4_setkey(&tkey->rx_ctx_arc4, rc4key, 16); in ieee80211_tkip_decrypt()
|
/drivers/staging/rtl8712/ |
D | rtl871x_security.c | 519 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument 547 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2() 548 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2() 549 rc4key[2] = Lo8(iv16); in phase2() 550 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); in phase2() 553 rc4key[4 + 2 * i] = Lo8(PPK[i]); in phase2() 554 rc4key[5 + 2 * i] = Hi8(PPK[i]); in phase2() 563 u8 rc4key[16]; in r8712_tkip_encrypt() local 599 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], in r8712_tkip_encrypt() 609 arcfour_init(&mycontext, rc4key, 16); in r8712_tkip_encrypt() [all …]
|
/drivers/staging/rtl8723bs/core/ |
D | rtw_security.c | 607 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument 639 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2() 640 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2() 641 rc4key[2] = Lo8(iv16); in phase2() 642 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); in phase2() 647 rc4key[4+2*i] = Lo8(PPK[i]); in phase2() 648 rc4key[5+2*i] = Hi8(PPK[i]); in phase2() 658 u8 rc4key[16]; in rtw_tkip_encrypt() local 700 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); in rtw_tkip_encrypt() 707 arcfour_init(&mycontext, rc4key, 16); in rtw_tkip_encrypt() [all …]
|