Lines Matching refs:ctx
84 static void tkip_mixing_phase1(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase1() argument
88 u16 *p1k = ctx->p1k; in tkip_mixing_phase1()
104 ctx->state = TKIP_STATE_PHASE1_DONE; in tkip_mixing_phase1()
105 ctx->p1k_iv32 = tsc_IV32; in tkip_mixing_phase1()
108 static void tkip_mixing_phase2(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase2() argument
112 const u16 *p1k = ctx->p1k; in tkip_mixing_phase2()
158 struct tkip_ctx *ctx = &key->u.tkip.tx; in ieee80211_compute_tkip_p1k() local
170 if (ctx->p1k_iv32 != iv32 || ctx->state == TKIP_STATE_NOT_INIT) in ieee80211_compute_tkip_p1k()
171 tkip_mixing_phase1(tk, ctx, sdata->vif.addr, iv32); in ieee80211_compute_tkip_p1k()
179 struct tkip_ctx *ctx = &key->u.tkip.tx; in ieee80211_get_tkip_p1k_iv() local
183 memcpy(p1k, ctx->p1k, sizeof(ctx->p1k)); in ieee80211_get_tkip_p1k_iv()
192 struct tkip_ctx ctx; in ieee80211_get_tkip_rx_p1k() local
194 tkip_mixing_phase1(tk, &ctx, ta, iv32); in ieee80211_get_tkip_rx_p1k()
195 memcpy(p1k, ctx.p1k, sizeof(ctx.p1k)); in ieee80211_get_tkip_rx_p1k()
205 struct tkip_ctx *ctx = &key->u.tkip.tx; in ieee80211_get_tkip_p2k() local
213 tkip_mixing_phase2(tk, ctx, iv16, p2k); in ieee80211_get_tkip_p2k()