Home
last modified time | relevance | path

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

/net/mac80211/
Dwep.c124 void ieee80211_wep_encrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key, in ieee80211_wep_encrypt_data() argument
134 crypto_blkcipher_setkey(tfm, rc4key, klen); in ieee80211_wep_encrypt_data()
151 u8 *rc4key, *iv; in ieee80211_wep_encrypt() local
158 rc4key = kmalloc(klen, GFP_ATOMIC); in ieee80211_wep_encrypt()
159 if (!rc4key) in ieee80211_wep_encrypt()
164 kfree(rc4key); in ieee80211_wep_encrypt()
171 memcpy(rc4key, iv, 3); in ieee80211_wep_encrypt()
174 memcpy(rc4key + 3, key->conf.key, key->conf.keylen); in ieee80211_wep_encrypt()
179 ieee80211_wep_encrypt_data(local->wep_tx_tfm, rc4key, klen, in ieee80211_wep_encrypt()
182 kfree(rc4key); in ieee80211_wep_encrypt()
[all …]
Dtkip.c106 u16 tsc_IV16, u8 *rc4key) in tkip_mixing_phase2() argument
132 rc4key = write_tkip_iv(rc4key, tsc_IV16); in tkip_mixing_phase2()
133 *rc4key++ = ((ppk[5] ^ get_unaligned_le16(tk)) >> 1) & 0xFF; in tkip_mixing_phase2()
136 put_unaligned_le16(ppk[i], rc4key + 2 * i); in tkip_mixing_phase2()
206 u8 rc4key[16]; in ieee80211_tkip_encrypt_data() local
214 tkip_mixing_phase2(tk, ctx, ctx->iv16, rc4key); in ieee80211_tkip_encrypt_data()
217 ieee80211_wep_encrypt_data(tfm, rc4key, 16, pos, payload_len); in ieee80211_tkip_encrypt_data()
232 u8 rc4key[16], keyid, *pos = payload; in ieee80211_tkip_decrypt_data() local
316 tkip_mixing_phase2(tk, &key->u.tkip.rx[queue], iv16, rc4key); in ieee80211_tkip_decrypt_data()
322 printk("%02x ", rc4key[i]); in ieee80211_tkip_decrypt_data()
[all …]
Dwep.h21 void ieee80211_wep_encrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key,
23 int ieee80211_wep_decrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key,
/net/wireless/
Dlib80211_crypt_tkip.c314 u8 * rc4key, int keylen, void *priv) in lib80211_tkip_hdr() argument
326 if (rc4key == NULL || keylen < 16) in lib80211_tkip_hdr()
334 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in lib80211_tkip_hdr()
341 *pos++ = *rc4key; in lib80211_tkip_hdr()
342 *pos++ = *(rc4key + 1); in lib80211_tkip_hdr()
343 *pos++ = *(rc4key + 2); in lib80211_tkip_hdr()
364 u8 rc4key[16], *pos, *icv; in lib80211_tkip_encrypt() local
384 if ((lib80211_tkip_hdr(skb, hdr_len, rc4key, 16, priv)) < 0) in lib80211_tkip_encrypt()
395 crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); in lib80211_tkip_encrypt()
417 u8 rc4key[16]; in lib80211_tkip_decrypt() local
[all …]