Searched refs:rc4key (Results 1 - 9 of 9) sorted by relevance

/linux-4.1.27/net/mac80211/
H A Dwep.h21 int ieee80211_wep_encrypt_data(struct crypto_cipher *tfm, u8 *rc4key,
26 int ieee80211_wep_decrypt_data(struct crypto_cipher *tfm, u8 *rc4key,
H A Dwep.c134 int ieee80211_wep_encrypt_data(struct crypto_cipher *tfm, u8 *rc4key, ieee80211_wep_encrypt_data() argument
146 crypto_cipher_setkey(tfm, rc4key, klen); ieee80211_wep_encrypt_data()
167 u8 rc4key[3 + WLAN_KEY_LEN_WEP104]; ieee80211_wep_encrypt() local
179 memcpy(rc4key, iv, 3); ieee80211_wep_encrypt()
182 memcpy(rc4key + 3, key, keylen); ieee80211_wep_encrypt()
187 return ieee80211_wep_encrypt_data(local->wep_tx_tfm, rc4key, keylen + 3, ieee80211_wep_encrypt()
195 int ieee80211_wep_decrypt_data(struct crypto_cipher *tfm, u8 *rc4key, ieee80211_wep_decrypt_data() argument
204 crypto_cipher_setkey(tfm, rc4key, klen); ieee80211_wep_decrypt_data()
230 u8 rc4key[3 + WLAN_KEY_LEN_WEP104]; ieee80211_wep_decrypt() local
254 memcpy(rc4key, skb->data + hdrlen, 3); ieee80211_wep_decrypt()
257 memcpy(rc4key + 3, key->conf.key, key->conf.keylen); ieee80211_wep_decrypt()
259 if (ieee80211_wep_decrypt_data(local->wep_rx_tfm, rc4key, klen, ieee80211_wep_decrypt()
H A Dtkip.c109 u16 tsc_IV16, u8 *rc4key) tkip_mixing_phase2()
135 rc4key = write_tkip_iv(rc4key, tsc_IV16); tkip_mixing_phase2()
136 *rc4key++ = ((ppk[5] ^ get_unaligned_le16(tk)) >> 1) & 0xFF; tkip_mixing_phase2()
139 put_unaligned_le16(ppk[i], rc4key + 2 * i); tkip_mixing_phase2()
230 u8 rc4key[16]; ieee80211_tkip_encrypt_data() local
232 ieee80211_get_tkip_p2k(&key->conf, skb, rc4key); ieee80211_tkip_encrypt_data()
234 return ieee80211_wep_encrypt_data(tfm, rc4key, 16, ieee80211_tkip_encrypt_data()
250 u8 rc4key[16], keyid, *pos = payload; ieee80211_tkip_decrypt_data() local
298 tkip_mixing_phase2(tk, &key->u.tkip.rx[queue], iv16, rc4key); ieee80211_tkip_decrypt_data()
300 res = ieee80211_wep_decrypt_data(tfm, rc4key, 16, pos, payload_len - 12); ieee80211_tkip_decrypt_data()
108 tkip_mixing_phase2(const u8 *tk, struct tkip_ctx *ctx, u16 tsc_IV16, u8 *rc4key) tkip_mixing_phase2() argument
/linux-4.1.27/net/wireless/
H A Dlib80211_crypt_tkip.c310 u8 * rc4key, int keylen, void *priv) lib80211_tkip_hdr()
321 if (rc4key == NULL || keylen < 16) lib80211_tkip_hdr()
329 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); lib80211_tkip_hdr()
335 *pos++ = *rc4key; lib80211_tkip_hdr()
336 *pos++ = *(rc4key + 1); lib80211_tkip_hdr()
337 *pos++ = *(rc4key + 2); lib80211_tkip_hdr()
358 u8 rc4key[16], *pos, *icv; lib80211_tkip_encrypt() local
375 if ((lib80211_tkip_hdr(skb, hdr_len, rc4key, 16, priv)) < 0) lib80211_tkip_encrypt()
385 crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); lib80211_tkip_encrypt()
407 u8 rc4key[16]; lib80211_tkip_decrypt() local
464 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); lib80211_tkip_decrypt()
468 crypto_blkcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); lib80211_tkip_decrypt()
309 lib80211_tkip_hdr(struct sk_buff *skb, int hdr_len, u8 * rc4key, int keylen, void *priv) lib80211_tkip_hdr() argument
/linux-4.1.27/drivers/staging/rtl8192e/
H A Drtllib_crypt_tkip.c308 u8 rc4key[16], *icv; rtllib_tkip_encrypt() local
324 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, rtllib_tkip_encrypt()
340 *pos++ = rc4key[0]; rtllib_tkip_encrypt()
341 *pos++ = rc4key[1]; rtllib_tkip_encrypt()
342 *pos++ = rc4key[2]; rtllib_tkip_encrypt()
362 crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); rtllib_tkip_encrypt()
390 u8 rc4key[16]; rtllib_tkip_decrypt() local
449 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); rtllib_tkip_decrypt()
455 crypto_blkcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); rtllib_tkip_decrypt()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_tkip.c313 u8 rc4key[16], *icv; ieee80211_tkip_encrypt() local
330 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); ieee80211_tkip_encrypt()
349 *pos++ = rc4key[0]; ieee80211_tkip_encrypt()
350 *pos++ = rc4key[1]; ieee80211_tkip_encrypt()
351 *pos++ = rc4key[2]; ieee80211_tkip_encrypt()
368 crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); ieee80211_tkip_encrypt()
396 u8 rc4key[16]; ieee80211_tkip_decrypt() local
450 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); ieee80211_tkip_decrypt()
454 crypto_blkcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); ieee80211_tkip_decrypt()
/linux-4.1.27/drivers/staging/rtl8712/
H A Drtl871x_security.c519 * rc4key[] = the key used to encrypt the packet [128 bits]
533 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) phase2() argument
561 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ phase2()
562 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ phase2()
563 rc4key[2] = Lo8(iv16); phase2()
564 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); phase2()
567 rc4key[4 + 2 * i] = Lo8(PPK[i]); phase2()
568 rc4key[5 + 2 * i] = Hi8(PPK[i]); phase2()
577 u8 rc4key[16]; r8712_tkip_encrypt() local
613 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], r8712_tkip_encrypt()
622 arcfour_init(&mycontext, rc4key, 16); r8712_tkip_encrypt()
633 arcfour_init(&mycontext, rc4key, 16); r8712_tkip_encrypt()
653 u8 rc4key[16]; r8712_tkip_decrypt() local
690 phase2(&rc4key[0], prwskey, (unsigned short *) r8712_tkip_decrypt()
693 arcfour_init(&mycontext, rc4key, 16); r8712_tkip_decrypt()
/linux-4.1.27/drivers/staging/rtl8723au/core/
H A Drtw_security.c538 * rc4key[] = the key used to encrypt the packet [128 bits]
552 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) phase2() argument
584 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ phase2()
585 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ phase2()
586 rc4key[2] = Lo8(iv16); phase2()
587 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); phase2()
591 rc4key[4 + 2 * i] = Lo8(PPK[i]); phase2()
592 rc4key[5 + 2 * i] = Hi8(PPK[i]); phase2()
603 u8 rc4key[16]; rtw_tkip_encrypt23a() local
670 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); rtw_tkip_encrypt23a()
684 arcfour_init(&mycontext, rc4key, 16); rtw_tkip_encrypt23a()
695 arcfour_init(&mycontext, rc4key, 16); rtw_tkip_encrypt23a()
713 u8 rc4key[16]; rtw_tkip_decrypt23a() local
766 phase2(&rc4key[0], prwskey, (unsigned short *)&ttkey[0], pnl); rtw_tkip_decrypt23a()
769 arcfour_init(&mycontext, rc4key, 16); rtw_tkip_decrypt23a()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
H A Drtw_security.c505 * rc4key[] = the key used to encrypt the packet [128 bits]
519 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) phase2() argument
549 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ phase2()
550 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ phase2()
551 rc4key[2] = Lo8(iv16); phase2()
552 rc4key[3] = Lo8((PPK[5] ^ TK16(0)) >> 1); phase2()
556 rc4key[4+2*i] = Lo8(PPK[i]); phase2()
557 rc4key[5+2*i] = Hi8(PPK[i]); phase2()
566 u8 rc4key[16]; rtw_tkip_encrypt() local
611 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); rtw_tkip_encrypt()
620 arcfour_init(&mycontext, rc4key, 16); rtw_tkip_encrypt()
626 arcfour_init(&mycontext, rc4key, 16); rtw_tkip_encrypt()
647 u8 rc4key[16]; rtw_tkip_decrypt() local
689 phase2(&rc4key[0], prwskey, (unsigned short *)&ttkey[0], pnl); rtw_tkip_decrypt()
693 arcfour_init(&mycontext, rc4key, 16); rtw_tkip_decrypt()

Completed in 273 milliseconds