Lines Matching refs:tk
82 static void tkip_mixing_phase1(const u8 *tk, struct tkip_ctx *ctx,
96 p1k[0] += tkipS(p1k[4] ^ get_unaligned_le16(tk + 0 + j));
97 p1k[1] += tkipS(p1k[0] ^ get_unaligned_le16(tk + 4 + j));
98 p1k[2] += tkipS(p1k[1] ^ get_unaligned_le16(tk + 8 + j));
99 p1k[3] += tkipS(p1k[2] ^ get_unaligned_le16(tk + 12 + j));
100 p1k[4] += tkipS(p1k[3] ^ get_unaligned_le16(tk + 0 + j)) + i;
106 static void tkip_mixing_phase2(const u8 *tk, struct tkip_ctx *ctx,
120 ppk[0] += tkipS(ppk[5] ^ get_unaligned_le16(tk + 0));
121 ppk[1] += tkipS(ppk[0] ^ get_unaligned_le16(tk + 2));
122 ppk[2] += tkipS(ppk[1] ^ get_unaligned_le16(tk + 4));
123 ppk[3] += tkipS(ppk[2] ^ get_unaligned_le16(tk + 6));
124 ppk[4] += tkipS(ppk[3] ^ get_unaligned_le16(tk + 8));
125 ppk[5] += tkipS(ppk[4] ^ get_unaligned_le16(tk + 10));
126 ppk[0] += ror16(ppk[5] ^ get_unaligned_le16(tk + 12), 1);
127 ppk[1] += ror16(ppk[0] ^ get_unaligned_le16(tk + 14), 1);
134 *rc4key++ = ((ppk[5] ^ get_unaligned_le16(tk)) >> 1) & 0xFF;
156 const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY];
168 tkip_mixing_phase1(tk, ctx, sdata->vif.addr, iv32);
188 const u8 *tk = &keyconf->key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY];
191 tkip_mixing_phase1(tk, &ctx, ta, iv32);
201 const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY];
210 tkip_mixing_phase2(tk, ctx, iv16, p2k);
249 const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY];
292 tkip_mixing_phase1(tk, &rx_ctx->ctx, ta, iv32);
307 tkip_mixing_phase2(tk, &rx_ctx->ctx, iv16, rc4key);