tkey 283 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct rtllib_tkip_data *tkey = priv; tkey 301 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (!tkey->tx_phase1_done) { tkey 302 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, tkey 303 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_iv32); tkey 304 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_phase1_done = 1; tkey 306 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey 307 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_iv16); tkey 309 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_phase1_done = 1; tkey 318 drivers/staging/rtl8192e/rtllib_crypt_tkip.c *pos++ = Hi8(tkey->tx_iv16); tkey 319 drivers/staging/rtl8192e/rtllib_crypt_tkip.c *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; tkey 320 drivers/staging/rtl8192e/rtllib_crypt_tkip.c *pos++ = Lo8(tkey->tx_iv16); tkey 327 drivers/staging/rtl8192e/rtllib_crypt_tkip.c *pos++ = (tkey->key_idx << 6) | (1 << 5) /* Ext IV included */; tkey 328 drivers/staging/rtl8192e/rtllib_crypt_tkip.c *pos++ = tkey->tx_iv32 & 0xff; tkey 329 drivers/staging/rtl8192e/rtllib_crypt_tkip.c *pos++ = (tkey->tx_iv32 >> 8) & 0xff; tkey 330 drivers/staging/rtl8192e/rtllib_crypt_tkip.c *pos++ = (tkey->tx_iv32 >> 16) & 0xff; tkey 331 drivers/staging/rtl8192e/rtllib_crypt_tkip.c *pos++ = (tkey->tx_iv32 >> 24) & 0xff; tkey 334 drivers/staging/rtl8192e/rtllib_crypt_tkip.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tkey->tx_tfm_arc4); tkey 346 drivers/staging/rtl8192e/rtllib_crypt_tkip.c crypto_sync_skcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); tkey 347 drivers/staging/rtl8192e/rtllib_crypt_tkip.c skcipher_request_set_sync_tfm(req, tkey->tx_tfm_arc4); tkey 354 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_iv16++; tkey 355 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (tkey->tx_iv16 == 0) { tkey 356 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_phase1_done = 0; tkey 357 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_iv32++; tkey 369 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct rtllib_tkip_data *tkey = priv; tkey 398 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (tkey->key_idx != keyidx) { tkey 401 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->key_idx, keyidx, priv); tkey 404 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (!tkey->key_set) { tkey 417 drivers/staging/rtl8192e/rtllib_crypt_tkip.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tkey->rx_tfm_arc4); tkey 419 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if ((iv32 < tkey->rx_iv32 || tkey 420 drivers/staging/rtl8192e/rtllib_crypt_tkip.c (iv32 == tkey->rx_iv32 && iv16 <= tkey->rx_iv16)) && tkey 421 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->initialized) { tkey 425 drivers/staging/rtl8192e/rtllib_crypt_tkip.c hdr->addr2, tkey->rx_iv32, tkey 426 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_iv16, iv32, iv16); tkey 428 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->dot11RSNAStatsTKIPReplays++; tkey 431 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->initialized = true; tkey 433 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (iv32 != tkey->rx_iv32 || !tkey->rx_phase1_done) { tkey 434 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkip_mixing_phase1(tkey->rx_ttak, tkey->key, tkey 436 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_phase1_done = 1; tkey 438 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); tkey 444 drivers/staging/rtl8192e/rtllib_crypt_tkip.c crypto_sync_skcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); tkey 445 drivers/staging/rtl8192e/rtllib_crypt_tkip.c skcipher_request_set_sync_tfm(req, tkey->rx_tfm_arc4); tkey 466 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (iv32 != tkey->rx_iv32) { tkey 471 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_phase1_done = 0; tkey 478 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->dot11RSNAStatsTKIPICVErrors++; tkey 487 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_iv32_new = iv32; tkey 488 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_iv16_new = iv16; tkey 559 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct rtllib_tkip_data *tkey = priv; tkey 572 drivers/staging/rtl8192e/rtllib_crypt_tkip.c michael_mic_hdr(skb, tkey->tx_hdr); tkey 575 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_hdr[12] = *(skb->data + hdr_len - 2) & 0x07; tkey 577 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (michael_mic(tkey->tx_tfm_michael, &tkey->key[16], tkey->tx_hdr, tkey 609 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct rtllib_tkip_data *tkey = priv; tkey 615 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (!tkey->key_set) tkey 618 drivers/staging/rtl8192e/rtllib_crypt_tkip.c michael_mic_hdr(skb, tkey->rx_hdr); tkey 620 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_hdr[12] = *(skb->data + hdr_len - 2) & 0x07; tkey 622 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (michael_mic(tkey->rx_tfm_michael, &tkey->key[24], tkey->rx_hdr, tkey 639 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->dot11RSNAStatsTKIPLocalMICFailures++; tkey 646 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_iv32 = tkey->rx_iv32_new; tkey 647 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_iv16 = tkey->rx_iv16_new; tkey 657 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct rtllib_tkip_data *tkey = priv; tkey 659 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct crypto_shash *tfm = tkey->tx_tfm_michael; tkey 660 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct crypto_sync_skcipher *tfm2 = tkey->tx_tfm_arc4; tkey 661 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct crypto_shash *tfm3 = tkey->rx_tfm_michael; tkey 662 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct crypto_sync_skcipher *tfm4 = tkey->rx_tfm_arc4; tkey 664 drivers/staging/rtl8192e/rtllib_crypt_tkip.c keyidx = tkey->key_idx; tkey 665 drivers/staging/rtl8192e/rtllib_crypt_tkip.c memset(tkey, 0, sizeof(*tkey)); tkey 666 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->key_idx = keyidx; tkey 667 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_tfm_michael = tfm; tkey 668 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_tfm_arc4 = tfm2; tkey 669 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_tfm_michael = tfm3; tkey 670 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_tfm_arc4 = tfm4; tkey 673 drivers/staging/rtl8192e/rtllib_crypt_tkip.c memcpy(tkey->key, key, TKIP_KEY_LEN); tkey 674 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->key_set = 1; tkey 675 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_iv16 = 1; /* TSC is initialized to 1 */ tkey 677 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_iv32 = (seq[5] << 24) | (seq[4] << 16) | tkey 679 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->rx_iv16 = (seq[1] << 8) | seq[0]; tkey 682 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->key_set = 0; tkey 692 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct rtllib_tkip_data *tkey = priv; tkey 697 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (!tkey->key_set) tkey 699 drivers/staging/rtl8192e/rtllib_crypt_tkip.c memcpy(key, tkey->key, TKIP_KEY_LEN); tkey 703 drivers/staging/rtl8192e/rtllib_crypt_tkip.c u16 iv16 = tkey->tx_iv16; tkey 704 drivers/staging/rtl8192e/rtllib_crypt_tkip.c u32 iv32 = tkey->tx_iv32; tkey 709 drivers/staging/rtl8192e/rtllib_crypt_tkip.c seq[0] = tkey->tx_iv16; tkey 710 drivers/staging/rtl8192e/rtllib_crypt_tkip.c seq[1] = tkey->tx_iv16 >> 8; tkey 711 drivers/staging/rtl8192e/rtllib_crypt_tkip.c seq[2] = tkey->tx_iv32; tkey 712 drivers/staging/rtl8192e/rtllib_crypt_tkip.c seq[3] = tkey->tx_iv32 >> 8; tkey 713 drivers/staging/rtl8192e/rtllib_crypt_tkip.c seq[4] = tkey->tx_iv32 >> 16; tkey 714 drivers/staging/rtl8192e/rtllib_crypt_tkip.c seq[5] = tkey->tx_iv32 >> 24; tkey 288 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct ieee80211_tkip_data *tkey = priv; tkey 305 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (!tkey->tx_phase1_done) { tkey 306 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, tkey 307 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_iv32); tkey 308 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_phase1_done = 1; tkey 310 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); tkey 312 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_phase1_done = 1; tkey 321 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c *pos++ = Hi8(tkey->tx_iv16); tkey 322 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; tkey 323 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c *pos++ = Lo8(tkey->tx_iv16); tkey 330 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c *pos++ = (tkey->key_idx << 6) | BIT(5) /* Ext IV included */; tkey 331 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c *pos++ = tkey->tx_iv32 & 0xff; tkey 332 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c *pos++ = (tkey->tx_iv32 >> 8) & 0xff; tkey 333 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c *pos++ = (tkey->tx_iv32 >> 16) & 0xff; tkey 334 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c *pos++ = (tkey->tx_iv32 >> 24) & 0xff; tkey 337 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tkey->tx_tfm_arc4); tkey 345 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c crypto_sync_skcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); tkey 347 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c skcipher_request_set_sync_tfm(req, tkey->tx_tfm_arc4); tkey 354 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_iv16++; tkey 355 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (tkey->tx_iv16 == 0) { tkey 356 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_phase1_done = 0; tkey 357 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_iv32++; tkey 370 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct ieee80211_tkip_data *tkey = priv; tkey 397 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (tkey->key_idx != keyidx) { tkey 399 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); tkey 402 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (!tkey->key_set) { tkey 415 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tkey->rx_tfm_arc4); tkey 417 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (iv32 < tkey->rx_iv32 || tkey 418 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c (iv32 == tkey->rx_iv32 && iv16 <= tkey->rx_iv16)) { tkey 423 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_iv32, tkey->rx_iv16, iv32, iv16); tkey 425 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->dot11RSNAStatsTKIPReplays++; tkey 429 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (iv32 != tkey->rx_iv32 || !tkey->rx_phase1_done) { tkey 430 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); tkey 431 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_phase1_done = 1; tkey 433 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); tkey 437 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c crypto_sync_skcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); tkey 440 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c skcipher_request_set_sync_tfm(req, tkey->rx_tfm_arc4); tkey 462 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (iv32 != tkey->rx_iv32) { tkey 468 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_phase1_done = 0; tkey 474 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->dot11RSNAStatsTKIPICVErrors++; tkey 484 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_iv32_new = iv32; tkey 485 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_iv16_new = iv16; tkey 555 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct ieee80211_tkip_data *tkey = priv; tkey 568 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c michael_mic_hdr(skb, tkey->tx_hdr); tkey 573 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_hdr[12] = *(skb->data + hdr_len - 2) & 0x07; tkey 577 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (michael_mic(tkey->tx_tfm_michael, &tkey->key[16], tkey->tx_hdr, tkey 608 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct ieee80211_tkip_data *tkey = priv; tkey 614 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (!tkey->key_set) tkey 617 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c michael_mic_hdr(skb, tkey->rx_hdr); tkey 621 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_hdr[12] = *(skb->data + hdr_len - 2) & 0x07; tkey 624 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (michael_mic(tkey->rx_tfm_michael, &tkey->key[24], tkey->rx_hdr, tkey 637 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->dot11RSNAStatsTKIPLocalMICFailures++; tkey 645 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_iv32 = tkey->rx_iv32_new; tkey 646 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_iv16 = tkey->rx_iv16_new; tkey 656 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct ieee80211_tkip_data *tkey = priv; tkey 658 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct crypto_shash *tfm = tkey->tx_tfm_michael; tkey 659 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct crypto_sync_skcipher *tfm2 = tkey->tx_tfm_arc4; tkey 660 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct crypto_shash *tfm3 = tkey->rx_tfm_michael; tkey 661 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct crypto_sync_skcipher *tfm4 = tkey->rx_tfm_arc4; tkey 663 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c keyidx = tkey->key_idx; tkey 664 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c memset(tkey, 0, sizeof(*tkey)); tkey 665 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->key_idx = keyidx; tkey 666 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_tfm_michael = tfm; tkey 667 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_tfm_arc4 = tfm2; tkey 668 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_tfm_michael = tfm3; tkey 669 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_tfm_arc4 = tfm4; tkey 672 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c memcpy(tkey->key, key, TKIP_KEY_LEN); tkey 673 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->key_set = 1; tkey 674 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_iv16 = 1; /* TSC is initialized to 1 */ tkey 676 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_iv32 = (seq[5] << 24) | (seq[4] << 16) | tkey 678 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->rx_iv16 = (seq[1] << 8) | seq[0]; tkey 681 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->key_set = 0; tkey 691 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct ieee80211_tkip_data *tkey = priv; tkey 696 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (!tkey->key_set) tkey 698 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c memcpy(key, tkey->key, TKIP_KEY_LEN); tkey 702 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c u16 iv16 = tkey->tx_iv16; tkey 703 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c u32 iv32 = tkey->tx_iv32; tkey 708 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c seq[0] = tkey->tx_iv16; tkey 709 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c seq[1] = tkey->tx_iv16 >> 8; tkey 710 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c seq[2] = tkey->tx_iv32; tkey 711 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c seq[3] = tkey->tx_iv32 >> 8; tkey 712 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c seq[4] = tkey->tx_iv32 >> 16; tkey 713 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c seq[5] = tkey->tx_iv32 >> 24; tkey 322 net/sched/act_pedit.c struct tc_pedit_key *tkey = p->tcfp_keys; tkey 328 net/sched/act_pedit.c for (i = p->tcfp_nkeys; i > 0; i--, tkey++) { tkey 330 net/sched/act_pedit.c int offset = tkey->off; tkey 349 net/sched/act_pedit.c if (tkey->offmask) { tkey 352 net/sched/act_pedit.c if (!offset_valid(skb, hoffset + tkey->at)) { tkey 354 net/sched/act_pedit.c hoffset + tkey->at); tkey 357 net/sched/act_pedit.c d = skb_header_pointer(skb, hoffset + tkey->at, tkey 361 net/sched/act_pedit.c offset += (*d & tkey->offmask) >> tkey->shift; tkey 382 net/sched/act_pedit.c val = tkey->val; tkey 385 net/sched/act_pedit.c val = (*ptr + tkey->val) & ~tkey->mask; tkey 393 net/sched/act_pedit.c *ptr = ((*ptr & tkey->mask) ^ val); tkey 286 net/wireless/lib80211_crypt_tkip.c struct lib80211_tkip_data *tkey = priv; tkey 298 net/wireless/lib80211_crypt_tkip.c if (!tkey->tx_phase1_done) { tkey 299 net/wireless/lib80211_crypt_tkip.c tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, tkey 300 net/wireless/lib80211_crypt_tkip.c tkey->tx_iv32); tkey 301 net/wireless/lib80211_crypt_tkip.c tkey->tx_phase1_done = 1; tkey 303 net/wireless/lib80211_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); tkey 312 net/wireless/lib80211_crypt_tkip.c *pos++ = (tkey->key_idx << 6) | (1 << 5) /* Ext IV included */ ; tkey 313 net/wireless/lib80211_crypt_tkip.c *pos++ = tkey->tx_iv32 & 0xff; tkey 314 net/wireless/lib80211_crypt_tkip.c *pos++ = (tkey->tx_iv32 >> 8) & 0xff; tkey 315 net/wireless/lib80211_crypt_tkip.c *pos++ = (tkey->tx_iv32 >> 16) & 0xff; tkey 316 net/wireless/lib80211_crypt_tkip.c *pos++ = (tkey->tx_iv32 >> 24) & 0xff; tkey 318 net/wireless/lib80211_crypt_tkip.c tkey->tx_iv16++; tkey 319 net/wireless/lib80211_crypt_tkip.c if (tkey->tx_iv16 == 0) { tkey 320 net/wireless/lib80211_crypt_tkip.c tkey->tx_phase1_done = 0; tkey 321 net/wireless/lib80211_crypt_tkip.c tkey->tx_iv32++; tkey 329 net/wireless/lib80211_crypt_tkip.c struct lib80211_tkip_data *tkey = priv; tkey 334 net/wireless/lib80211_crypt_tkip.c if (tkey->flags & IEEE80211_CRYPTO_TKIP_COUNTERMEASURES) { tkey 357 net/wireless/lib80211_crypt_tkip.c arc4_setkey(&tkey->tx_ctx_arc4, rc4key, 16); tkey 358 net/wireless/lib80211_crypt_tkip.c arc4_crypt(&tkey->tx_ctx_arc4, pos, pos, len + 4); tkey 378 net/wireless/lib80211_crypt_tkip.c struct lib80211_tkip_data *tkey = priv; tkey 390 net/wireless/lib80211_crypt_tkip.c if (tkey->flags & IEEE80211_CRYPTO_TKIP_COUNTERMEASURES) { tkey 407 net/wireless/lib80211_crypt_tkip.c if (tkey->key_idx != keyidx) { tkey 409 net/wireless/lib80211_crypt_tkip.c tkey->key_idx, keyidx); tkey 412 net/wireless/lib80211_crypt_tkip.c if (!tkey->key_set) { tkey 421 net/wireless/lib80211_crypt_tkip.c if (tkip_replay_check(iv32, iv16, tkey->rx_iv32, tkey->rx_iv16)) { tkey 424 net/wireless/lib80211_crypt_tkip.c hdr->addr2, tkey->rx_iv32, tkey->rx_iv16, tkey 427 net/wireless/lib80211_crypt_tkip.c tkey->dot11RSNAStatsTKIPReplays++; tkey 431 net/wireless/lib80211_crypt_tkip.c if (iv32 != tkey->rx_iv32 || !tkey->rx_phase1_done) { tkey 432 net/wireless/lib80211_crypt_tkip.c tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); tkey 433 net/wireless/lib80211_crypt_tkip.c tkey->rx_phase1_done = 1; tkey 435 net/wireless/lib80211_crypt_tkip.c tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); tkey 439 net/wireless/lib80211_crypt_tkip.c arc4_setkey(&tkey->rx_ctx_arc4, rc4key, 16); tkey 440 net/wireless/lib80211_crypt_tkip.c arc4_crypt(&tkey->rx_ctx_arc4, pos, pos, plen + 4); tkey 448 net/wireless/lib80211_crypt_tkip.c if (iv32 != tkey->rx_iv32) { tkey 451 net/wireless/lib80211_crypt_tkip.c tkey->rx_phase1_done = 0; tkey 457 net/wireless/lib80211_crypt_tkip.c tkey->dot11RSNAStatsTKIPICVErrors++; tkey 463 net/wireless/lib80211_crypt_tkip.c tkey->rx_iv32_new = iv32; tkey 464 net/wireless/lib80211_crypt_tkip.c tkey->rx_iv16_new = iv16; tkey 544 net/wireless/lib80211_crypt_tkip.c struct lib80211_tkip_data *tkey = priv; tkey 554 net/wireless/lib80211_crypt_tkip.c michael_mic_hdr(skb, tkey->tx_hdr); tkey 556 net/wireless/lib80211_crypt_tkip.c if (michael_mic(tkey->tx_tfm_michael, &tkey->key[16], tkey->tx_hdr, tkey 587 net/wireless/lib80211_crypt_tkip.c struct lib80211_tkip_data *tkey = priv; tkey 590 net/wireless/lib80211_crypt_tkip.c if (!tkey->key_set) tkey 593 net/wireless/lib80211_crypt_tkip.c michael_mic_hdr(skb, tkey->rx_hdr); tkey 594 net/wireless/lib80211_crypt_tkip.c if (michael_mic(tkey->rx_tfm_michael, &tkey->key[24], tkey->rx_hdr, tkey 606 net/wireless/lib80211_crypt_tkip.c tkey->dot11RSNAStatsTKIPLocalMICFailures++; tkey 612 net/wireless/lib80211_crypt_tkip.c tkey->rx_iv32 = tkey->rx_iv32_new; tkey 613 net/wireless/lib80211_crypt_tkip.c tkey->rx_iv16 = tkey->rx_iv16_new; tkey 622 net/wireless/lib80211_crypt_tkip.c struct lib80211_tkip_data *tkey = priv; tkey 624 net/wireless/lib80211_crypt_tkip.c struct crypto_shash *tfm = tkey->tx_tfm_michael; tkey 625 net/wireless/lib80211_crypt_tkip.c struct arc4_ctx *tfm2 = &tkey->tx_ctx_arc4; tkey 626 net/wireless/lib80211_crypt_tkip.c struct crypto_shash *tfm3 = tkey->rx_tfm_michael; tkey 627 net/wireless/lib80211_crypt_tkip.c struct arc4_ctx *tfm4 = &tkey->rx_ctx_arc4; tkey 629 net/wireless/lib80211_crypt_tkip.c keyidx = tkey->key_idx; tkey 630 net/wireless/lib80211_crypt_tkip.c memset(tkey, 0, sizeof(*tkey)); tkey 631 net/wireless/lib80211_crypt_tkip.c tkey->key_idx = keyidx; tkey 632 net/wireless/lib80211_crypt_tkip.c tkey->tx_tfm_michael = tfm; tkey 633 net/wireless/lib80211_crypt_tkip.c tkey->tx_ctx_arc4 = *tfm2; tkey 634 net/wireless/lib80211_crypt_tkip.c tkey->rx_tfm_michael = tfm3; tkey 635 net/wireless/lib80211_crypt_tkip.c tkey->rx_ctx_arc4 = *tfm4; tkey 637 net/wireless/lib80211_crypt_tkip.c memcpy(tkey->key, key, TKIP_KEY_LEN); tkey 638 net/wireless/lib80211_crypt_tkip.c tkey->key_set = 1; tkey 639 net/wireless/lib80211_crypt_tkip.c tkey->tx_iv16 = 1; /* TSC is initialized to 1 */ tkey 641 net/wireless/lib80211_crypt_tkip.c tkey->rx_iv32 = (seq[5] << 24) | (seq[4] << 16) | tkey 643 net/wireless/lib80211_crypt_tkip.c tkey->rx_iv16 = (seq[1] << 8) | seq[0]; tkey 646 net/wireless/lib80211_crypt_tkip.c tkey->key_set = 0; tkey 655 net/wireless/lib80211_crypt_tkip.c struct lib80211_tkip_data *tkey = priv; tkey 660 net/wireless/lib80211_crypt_tkip.c if (!tkey->key_set) tkey 662 net/wireless/lib80211_crypt_tkip.c memcpy(key, tkey->key, TKIP_KEY_LEN); tkey 666 net/wireless/lib80211_crypt_tkip.c u16 iv16 = tkey->tx_iv16; tkey 667 net/wireless/lib80211_crypt_tkip.c u32 iv32 = tkey->tx_iv32; tkey 671 net/wireless/lib80211_crypt_tkip.c seq[0] = tkey->tx_iv16; tkey 672 net/wireless/lib80211_crypt_tkip.c seq[1] = tkey->tx_iv16 >> 8; tkey 673 net/wireless/lib80211_crypt_tkip.c seq[2] = tkey->tx_iv32; tkey 674 net/wireless/lib80211_crypt_tkip.c seq[3] = tkey->tx_iv32 >> 8; tkey 675 net/wireless/lib80211_crypt_tkip.c seq[4] = tkey->tx_iv32 >> 16; tkey 676 net/wireless/lib80211_crypt_tkip.c seq[5] = tkey->tx_iv32 >> 24; tkey 61 samples/bpf/tc_l2_redirect_kern.c struct bpf_tunnel_key tkey = {}; tkey 112 samples/bpf/tc_l2_redirect_kern.c struct bpf_tunnel_key tkey = {}; tkey 143 samples/bpf/tc_l2_redirect_kern.c tkey.tunnel_id = 10000; tkey 144 samples/bpf/tc_l2_redirect_kern.c tkey.tunnel_ttl = 64; tkey 145 samples/bpf/tc_l2_redirect_kern.c tkey.remote_ipv4 = 0x0a020166; /* 10.2.1.102 */ tkey 146 samples/bpf/tc_l2_redirect_kern.c bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), 0); tkey 153 samples/bpf/tc_l2_redirect_kern.c struct bpf_tunnel_key tkey = {}; tkey 194 samples/bpf/tc_l2_redirect_kern.c tkey.tunnel_id = 10000; tkey 195 samples/bpf/tc_l2_redirect_kern.c tkey.tunnel_ttl = 64; tkey 197 samples/bpf/tc_l2_redirect_kern.c tkey.remote_ipv6[0] = _htonl(0x2401db02); tkey 198 samples/bpf/tc_l2_redirect_kern.c tkey.remote_ipv6[1] = 0; tkey 199 samples/bpf/tc_l2_redirect_kern.c tkey.remote_ipv6[2] = 0; tkey 200 samples/bpf/tc_l2_redirect_kern.c tkey.remote_ipv6[3] = _htonl(0x00000066); tkey 201 samples/bpf/tc_l2_redirect_kern.c bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), BPF_F_TUNINFO_IPV6); tkey 208 samples/bpf/tc_l2_redirect_kern.c struct bpf_tunnel_key tkey = {}; tkey 31 security/keys/encrypted-keys/masterkey_trusted.c struct key *tkey; tkey 33 security/keys/encrypted-keys/masterkey_trusted.c tkey = request_key(&key_type_trusted, trusted_desc, NULL); tkey 34 security/keys/encrypted-keys/masterkey_trusted.c if (IS_ERR(tkey)) tkey 37 security/keys/encrypted-keys/masterkey_trusted.c down_read(&tkey->sem); tkey 38 security/keys/encrypted-keys/masterkey_trusted.c tpayload = tkey->payload.data[0]; tkey 42 security/keys/encrypted-keys/masterkey_trusted.c return tkey; tkey 330 tools/testing/selftests/bpf/progs/test_l4lb.c struct bpf_tunnel_key tkey = {}; tkey 348 tools/testing/selftests/bpf/progs/test_l4lb.c tkey.tunnel_ttl = 64; tkey 433 tools/testing/selftests/bpf/progs/test_l4lb.c memcpy(tkey.remote_ipv6, dst->dstv6, 16); tkey 440 tools/testing/selftests/bpf/progs/test_l4lb.c tkey.remote_ipv4 = dst->dst; tkey 448 tools/testing/selftests/bpf/progs/test_l4lb.c bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), tun_flag); tkey 449 tools/testing/selftests/bpf/progs/test_l4lb.c *(u32 *)eth->eth_dest = tkey.remote_ipv4; tkey 330 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c struct bpf_tunnel_key tkey = {}; tkey 348 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c tkey.tunnel_ttl = 64; tkey 433 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c memcpy(tkey.remote_ipv6, dst->dstv6, 16); tkey 440 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c tkey.remote_ipv4 = dst->dst; tkey 448 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), tun_flag); tkey 449 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c *(u32 *)eth->eth_dest = tkey.remote_ipv4;