Home
last modified time | relevance | path

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

/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c314 u8 rc4key[16], *icv; in ieee80211_tkip_encrypt() local
331 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in ieee80211_tkip_encrypt()
350 *pos++ = rc4key[0]; in ieee80211_tkip_encrypt()
351 *pos++ = rc4key[1]; in ieee80211_tkip_encrypt()
352 *pos++ = rc4key[2]; in ieee80211_tkip_encrypt()
369 crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); in ieee80211_tkip_encrypt()
397 u8 rc4key[16]; in ieee80211_tkip_decrypt() local
451 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in ieee80211_tkip_decrypt()
455 crypto_blkcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); in ieee80211_tkip_decrypt()
/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c306 u8 rc4key[16], *icv; in rtllib_tkip_encrypt() local
322 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, in rtllib_tkip_encrypt()
338 *pos++ = rc4key[0]; in rtllib_tkip_encrypt()
339 *pos++ = rc4key[1]; in rtllib_tkip_encrypt()
340 *pos++ = rc4key[2]; in rtllib_tkip_encrypt()
360 crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); in rtllib_tkip_encrypt()
388 u8 rc4key[16]; in rtllib_tkip_decrypt() local
445 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in rtllib_tkip_decrypt()
451 crypto_blkcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); in rtllib_tkip_decrypt()
/drivers/staging/rtl8712/
Drtl871x_security.c533 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
561 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2()
562 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2()
563 rc4key[2] = Lo8(iv16); in phase2()
564 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 r8712_tkip_encrypt() local
614 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], in r8712_tkip_encrypt()
623 arcfour_init(&mycontext, rc4key, 16); in r8712_tkip_encrypt()
[all …]
/drivers/staging/rtl8723au/core/
Drtw_security.c569 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
599 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2()
600 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2()
601 rc4key[2] = Lo8(iv16); in phase2()
602 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); in phase2()
607 rc4key[4+2*i] = Lo8(PPK[i]); in phase2()
608 rc4key[5+2*i] = Hi8(PPK[i]); in phase2()
619 u8 rc4key[16]; in rtw_tkip_encrypt23a() local
678 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); in rtw_tkip_encrypt23a()
685 arcfour_init(&mycontext, rc4key, 16); in rtw_tkip_encrypt23a()
[all …]
/drivers/staging/rtl8188eu/core/
Drtw_security.c519 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
549 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2()
550 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2()
551 rc4key[2] = Lo8(iv16); in phase2()
552 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); in phase2()
556 rc4key[4+2*i] = Lo8(PPK[i]); in phase2()
557 rc4key[5+2*i] = Hi8(PPK[i]); in phase2()
566 u8 rc4key[16]; in rtw_tkip_encrypt() local
611 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); in rtw_tkip_encrypt()
620 arcfour_init(&mycontext, rc4key, 16); in rtw_tkip_encrypt()
[all …]