Lines Matching refs:ctx
51 crypto_ctx_t *ctx;
68 if ((ctx = kcf_new_ctx(crq, real_provider, sid)) == NULL) {
76 rv = kcf_submit_request(real_provider, ctx, crq, ¶ms, B_FALSE);
81 *ctxp = (crypto_context_t)ctx;
84 KCF_CONTEXT_REFRELE((kcf_context_t *)ctx->cc_framework_private);
149 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
155 if ((ctx == NULL) ||
156 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
163 error = kcf_submit_request(pd, ctx, cr, ¶ms, B_FALSE);
177 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
183 if ((ctx == NULL) ||
184 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
190 KCF_WRAP_SIGN_OPS_PARAMS(¶ms, KCF_OP_UPDATE, ctx->cc_session, NULL,
192 rv = kcf_submit_request(pd, ctx, cr, ¶ms, B_FALSE);
204 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
210 if ((ctx == NULL) ||
211 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
217 KCF_WRAP_SIGN_OPS_PARAMS(¶ms, KCF_OP_FINAL, ctx->cc_session, NULL,
219 rv = kcf_submit_request(pd, ctx, cr, ¶ms, B_FALSE);
391 crypto_ctx_t *ctx;
408 if ((ctx = kcf_new_ctx(crq, real_provider, sid)) == NULL) {
416 rv = kcf_submit_request(real_provider, ctx, crq, ¶ms, B_FALSE);
421 *ctxp = (crypto_context_t)ctx;
424 KCF_CONTEXT_REFRELE((kcf_context_t *)ctx->cc_framework_private);
434 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
440 if ((ctx == NULL) ||
441 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
448 error = kcf_submit_request(pd, ctx, cr, ¶ms, B_FALSE);