Lines Matching refs:ctx
114 crypto_ctx_t *ctx;
132 ctx = &kcf_ctx->kc_glbl_ctx;
133 ctx->cc_provider = pd->pd_prov_handle;
134 ctx->cc_session = sid;
135 ctx->cc_provider_private = NULL;
136 ctx->cc_framework_private = (void *)kcf_ctx;
137 ctx->cc_flags = 0;
138 ctx->cc_opstate = NULL;
140 return (ctx);
246 crypto_ctx_t *ctx;
294 ctx = sreq->sn_context ? &sreq->sn_context->kc_glbl_ctx : NULL;
295 error = common_submit_request(sreq->sn_provider, ctx,
306 ctx = (ictx = areq->an_context) ? &ictx->kc_glbl_ctx : NULL;
328 error = common_submit_request(areq->an_provider, ctx,
536 crypto_ctx_t *ctx;
543 ctx = &ictx->kc_glbl_ctx;
544 ctx->cc_provider = new_pd->pd_prov_handle;
545 ctx->cc_session = new_pd->pd_sid;
546 ctx->cc_provider_private = NULL;
592 * It is the caller's responsibility to free the ctx argument when
596 kcf_submit_request(kcf_provider_desc_t *pd, crypto_ctx_t *ctx,
606 kcf_ctx = ctx ? (kcf_context_t *)ctx->cc_framework_private : NULL;
612 error = common_submit_request(pd, ctx, params,
630 error = common_submit_request(pd, ctx,
709 error = common_submit_request(pd, ctx, params,
1668 crypto_cancel_ctx(crypto_context_t ctx)
1673 if (ctx == NULL)
1676 ictx = (kcf_context_t *)((crypto_ctx_t *)ctx)->cc_framework_private;