Lines Matching defs:rc4key
130 void ieee80211_wep_encrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key,
140 crypto_blkcipher_setkey(tfm, rc4key, klen);
159 u8 *rc4key, *iv;
166 rc4key = kmalloc(klen, GFP_ATOMIC);
167 if (!rc4key)
172 kfree(rc4key);
179 memcpy(rc4key, iv, 3);
182 memcpy(rc4key + 3, key->key, key->keylen);
187 ieee80211_wep_encrypt_data(local->wep_tx_tfm, rc4key, klen,
190 kfree(rc4key);
199 int ieee80211_wep_decrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key,
206 crypto_blkcipher_setkey(tfm, rc4key, klen);
233 u8 *rc4key;
259 rc4key = kmalloc(klen, GFP_ATOMIC);
260 if (!rc4key)
264 memcpy(rc4key, skb->data + hdrlen, 3);
267 memcpy(rc4key + 3, key->key, key->keylen);
269 if (ieee80211_wep_decrypt_data(local->wep_rx_tfm, rc4key, klen,
276 kfree(rc4key);