Lines Matching refs:ctx
56 struct ieee80211_ccmp_ctx *ctx;
58 ctx = malloc(sizeof(*ctx), M_DEVBUF, M_NOWAIT | M_ZERO);
59 if (ctx == NULL)
61 AES_Setkey(&ctx->aesctx, k->k_key, 16);
62 k->k_priv = ctx;
81 ieee80211_ccmp_phase1(AES_CTX *ctx, const struct ieee80211_frame *wh,
149 AES_Encrypt(ctx, b, b);
153 AES_Encrypt(ctx, b, b);
156 AES_Encrypt(ctx, b, b);
162 AES_Encrypt(ctx, a, s0);
169 struct ieee80211_ccmp_ctx *ctx = k->k_priv;
213 ieee80211_ccmp_phase1(&ctx->aesctx, wh, k->k_tsc,
220 AES_Encrypt(&ctx->aesctx, a, s);
263 AES_Encrypt(&ctx->aesctx, b, b);
268 AES_Encrypt(&ctx->aesctx, a, s);
277 AES_Encrypt(&ctx->aesctx, b, b);
346 struct ieee80211_ccmp_ctx *ctx = k->k_priv;
397 ieee80211_ccmp_phase1(&ctx->aesctx, wh, pn,
409 AES_Encrypt(&ctx->aesctx, a, s);
452 AES_Encrypt(&ctx->aesctx, b, b);
457 AES_Encrypt(&ctx->aesctx, a, s);
466 AES_Encrypt(&ctx->aesctx, b, b);