Home
last modified time | relevance | path

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

/linux/net/mac80211/
H A Dwep.c109 int ieee80211_wep_encrypt_data(struct arc4_ctx *ctx, u8 *rc4key, in ieee80211_wep_encrypt_data() argument
117 arc4_setkey(ctx, rc4key, klen); in ieee80211_wep_encrypt_data()
138 u8 rc4key[3 + WLAN_KEY_LEN_WEP104]; in ieee80211_wep_encrypt() local
150 memcpy(rc4key, iv, 3); in ieee80211_wep_encrypt()
153 memcpy(rc4key + 3, key, keylen); in ieee80211_wep_encrypt()
158 return ieee80211_wep_encrypt_data(&local->wep_tx_ctx, rc4key, keylen + 3, in ieee80211_wep_encrypt()
166 int ieee80211_wep_decrypt_data(struct arc4_ctx *ctx, u8 *rc4key, in ieee80211_wep_decrypt_data() argument
171 arc4_setkey(ctx, rc4key, klen); in ieee80211_wep_decrypt_data()
197 u8 rc4key[3 + WLAN_KEY_LEN_WEP104]; in ieee80211_wep_decrypt() local
221 memcpy(rc4key, skb->data + hdrlen, 3); in ieee80211_wep_decrypt()
[all …]
H A Dwep.h17 int ieee80211_wep_encrypt_data(struct arc4_ctx *ctx, u8 *rc4key,
22 int ieee80211_wep_decrypt_data(struct arc4_ctx *ctx, u8 *rc4key,
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_security.c410 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
442 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2()
443 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2()
444 rc4key[2] = Lo8(iv16); in phase2()
445 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); in phase2()
450 rc4key[4+2*i] = Lo8(PPK[i]); in phase2()
451 rc4key[5+2*i] = Hi8(PPK[i]); in phase2()
461 u8 rc4key[16]; in rtw_tkip_encrypt() local
504 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); in rtw_tkip_encrypt()
510 arc4_setkey(ctx, rc4key, 16); in rtw_tkip_encrypt()
[all …]