Lines Matching defs:ctx
57 struct ieee80211_wep_ctx *ctx;
59 ctx = malloc(sizeof(*ctx), M_DEVBUF, M_NOWAIT | M_ZERO);
60 if (ctx == NULL)
62 k->k_priv = ctx;
84 struct ieee80211_wep_ctx *ctx = k->k_priv;
113 iv = (ctx->iv != 0) ? ctx->iv : arc4random();
117 ctx->iv = iv + 1;
127 rc4_keysetup(&ctx->rc4, wepseed, IEEE80211_WEP_IVLEN + k->k_len);
162 rc4_crypt(&ctx->rc4, mtod(m, caddr_t) + moff,
186 rc4_crypt(&ctx->rc4, icvp, icvp, IEEE80211_WEP_CRCLEN);
203 struct ieee80211_wep_ctx *ctx = k->k_priv;
223 rc4_keysetup(&ctx->rc4, wepseed, IEEE80211_WEP_IVLEN + k->k_len);
277 rc4_crypt(&ctx->rc4, mtod(m, caddr_t) + moff,
288 rc4_crypt(&ctx->rc4, (caddr_t)&crc0, (caddr_t)&crc0,