Lines Matching refs:rc4key
109 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()
224 memcpy(rc4key + 3, key->conf.key, key->conf.keylen); in ieee80211_wep_decrypt()
226 if (ieee80211_wep_decrypt_data(&local->wep_rx_ctx, rc4key, klen, in ieee80211_wep_decrypt()