Home
last modified time | relevance | path

Searched refs:rc4key (Results 1 – 4 of 4) sorted by relevance

/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c309 u8 rc4key[16], *icv; in ieee80211_tkip_encrypt() local
325 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in ieee80211_tkip_encrypt()
340 *pos++ = rc4key[0]; in ieee80211_tkip_encrypt()
341 *pos++ = rc4key[1]; in ieee80211_tkip_encrypt()
342 *pos++ = rc4key[2]; in ieee80211_tkip_encrypt()
360 crypto_skcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); in ieee80211_tkip_encrypt()
391 u8 rc4key[16]; in ieee80211_tkip_decrypt() local
448 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in ieee80211_tkip_decrypt()
452 crypto_skcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); in ieee80211_tkip_decrypt()
/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c298 u8 rc4key[16], *icv; in rtllib_tkip_encrypt() local
314 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, in rtllib_tkip_encrypt()
330 *pos++ = rc4key[0]; in rtllib_tkip_encrypt()
331 *pos++ = rc4key[1]; in rtllib_tkip_encrypt()
332 *pos++ = rc4key[2]; in rtllib_tkip_encrypt()
354 crypto_skcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); in rtllib_tkip_encrypt()
384 u8 rc4key[16]; in rtllib_tkip_decrypt() local
446 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in rtllib_tkip_decrypt()
452 crypto_skcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); in rtllib_tkip_decrypt()
/drivers/staging/rtl8712/
Drtl871x_security.c531 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
559 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2()
560 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2()
561 rc4key[2] = Lo8(iv16); in phase2()
562 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); in phase2()
565 rc4key[4 + 2 * i] = Lo8(PPK[i]); in phase2()
566 rc4key[5 + 2 * i] = Hi8(PPK[i]); in phase2()
575 u8 rc4key[16]; in r8712_tkip_encrypt() local
611 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], in r8712_tkip_encrypt()
621 arcfour_init(&mycontext, rc4key, 16); in r8712_tkip_encrypt()
[all …]
/drivers/staging/rtl8188eu/core/
Drtw_security.c513 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
543 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2()
544 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2()
545 rc4key[2] = Lo8(iv16); in phase2()
546 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); in phase2()
550 rc4key[4+2*i] = Lo8(PPK[i]); in phase2()
551 rc4key[5+2*i] = Hi8(PPK[i]); in phase2()
560 u8 rc4key[16]; in rtw_tkip_encrypt() local
605 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); in rtw_tkip_encrypt()
614 arcfour_init(&mycontext, rc4key, 16); in rtw_tkip_encrypt()
[all …]