/linux-3.3/net/mac80211/ |
D | wep.c | 128 int ieee80211_wep_encrypt_data(struct crypto_cipher *tfm, u8 *rc4key, in ieee80211_wep_encrypt_data() argument 140 crypto_cipher_setkey(tfm, rc4key, klen); in ieee80211_wep_encrypt_data() 161 u8 rc4key[3 + WLAN_KEY_LEN_WEP104]; in ieee80211_wep_encrypt() local 170 memcpy(rc4key, iv, 3); in ieee80211_wep_encrypt() 173 memcpy(rc4key + 3, key, keylen); in ieee80211_wep_encrypt() 178 return ieee80211_wep_encrypt_data(local->wep_tx_tfm, rc4key, keylen + 3, in ieee80211_wep_encrypt() 186 int ieee80211_wep_decrypt_data(struct crypto_cipher *tfm, u8 *rc4key, in ieee80211_wep_decrypt_data() argument 195 crypto_cipher_setkey(tfm, rc4key, klen); in ieee80211_wep_decrypt_data() 221 u8 rc4key[3 + WLAN_KEY_LEN_WEP104]; in ieee80211_wep_decrypt() local 245 memcpy(rc4key, skb->data + hdrlen, 3); in ieee80211_wep_decrypt() [all …]
|
D | tkip.c | 109 u16 tsc_IV16, u8 *rc4key) in tkip_mixing_phase2() argument 135 rc4key = write_tkip_iv(rc4key, tsc_IV16); in tkip_mixing_phase2() 136 *rc4key++ = ((ppk[5] ^ get_unaligned_le16(tk)) >> 1) & 0xFF; in tkip_mixing_phase2() 139 put_unaligned_le16(ppk[i], rc4key + 2 * i); in tkip_mixing_phase2() 232 u8 rc4key[16]; in ieee80211_tkip_encrypt_data() local 234 ieee80211_get_tkip_p2k(&key->conf, skb, rc4key); in ieee80211_tkip_encrypt_data() 236 return ieee80211_wep_encrypt_data(tfm, rc4key, 16, in ieee80211_tkip_encrypt_data() 252 u8 rc4key[16], keyid, *pos = payload; in ieee80211_tkip_decrypt_data() local 335 tkip_mixing_phase2(tk, &key->u.tkip.rx[queue], iv16, rc4key); in ieee80211_tkip_decrypt_data() 341 printk("%02x ", rc4key[i]); in ieee80211_tkip_decrypt_data() [all …]
|
D | wep.h | 21 int ieee80211_wep_encrypt_data(struct crypto_cipher *tfm, u8 *rc4key, 26 int ieee80211_wep_decrypt_data(struct crypto_cipher *tfm, u8 *rc4key,
|
/linux-3.3/net/wireless/ |
D | lib80211_crypt_tkip.c | 310 u8 * rc4key, int keylen, void *priv) in lib80211_tkip_hdr() argument 321 if (rc4key == NULL || keylen < 16) in lib80211_tkip_hdr() 329 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in lib80211_tkip_hdr() 335 *pos++ = *rc4key; in lib80211_tkip_hdr() 336 *pos++ = *(rc4key + 1); in lib80211_tkip_hdr() 337 *pos++ = *(rc4key + 2); in lib80211_tkip_hdr() 358 u8 rc4key[16], *pos, *icv; in lib80211_tkip_encrypt() local 378 if ((lib80211_tkip_hdr(skb, hdr_len, rc4key, 16, priv)) < 0) in lib80211_tkip_encrypt() 388 crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); in lib80211_tkip_encrypt() 410 u8 rc4key[16]; in lib80211_tkip_decrypt() local [all …]
|
/linux-3.3/drivers/staging/rtl8187se/ieee80211/ |
D | ieee80211_crypt_tkip.c | 312 u8 rc4key[16],*icv; in ieee80211_tkip_encrypt() local 329 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in ieee80211_tkip_encrypt() 336 *pos++ = rc4key[0]; in ieee80211_tkip_encrypt() 337 *pos++ = rc4key[1]; in ieee80211_tkip_encrypt() 338 *pos++ = rc4key[2]; in ieee80211_tkip_encrypt() 351 crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); in ieee80211_tkip_encrypt() 374 u8 rc4key[16]; in ieee80211_tkip_decrypt() local 424 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in ieee80211_tkip_decrypt() 427 crypto_blkcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); in ieee80211_tkip_decrypt()
|
/linux-3.3/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_tkip.c | 314 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()
|
/linux-3.3/drivers/staging/rtl8192e/ |
D | rtllib_crypt_tkip.c | 305 u8 rc4key[16], *icv; in rtllib_tkip_encrypt() local 321 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, in rtllib_tkip_encrypt() 337 *pos++ = rc4key[0]; in rtllib_tkip_encrypt() 338 *pos++ = rc4key[1]; in rtllib_tkip_encrypt() 339 *pos++ = rc4key[2]; in rtllib_tkip_encrypt() 359 crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); in rtllib_tkip_encrypt() 387 u8 rc4key[16]; in rtllib_tkip_decrypt() local 443 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in rtllib_tkip_decrypt() 449 crypto_blkcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); in rtllib_tkip_decrypt()
|
/linux-3.3/drivers/staging/rtl8712/ |
D | rtl871x_security.c | 534 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument 562 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2() 563 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2() 564 rc4key[2] = Lo8(iv16); in phase2() 565 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); in phase2() 568 rc4key[4 + 2 * i] = Lo8(PPK[i]); in phase2() 569 rc4key[5 + 2 * i] = Hi8(PPK[i]); in phase2() 578 u8 rc4key[16]; in r8712_tkip_encrypt() local 615 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], in r8712_tkip_encrypt() 624 arcfour_init(&mycontext, rc4key, 16); in r8712_tkip_encrypt() [all …]
|