Lines Matching refs:tk

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