Lines Matching refs:ctx
213 crypto_ctx_t *ctx;
230 if ((ctx = kcf_new_ctx(crq, real_provider, sid)) == NULL) {
242 error = KCF_PROV_DIGEST_INIT(real_provider, ctx, &lmech,
248 error = kcf_submit_request(real_provider, ctx, crq, ¶ms,
256 *ctxp = (crypto_context_t)ctx;
259 KCF_CONTEXT_REFRELE((kcf_context_t *)ctx->cc_framework_private);
339 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
345 if ((ctx == NULL) ||
346 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
355 error = KCF_PROV_DIGEST_UPDATE(pd, ctx, data, NULL);
359 ctx->cc_session, NULL, NULL, data, NULL);
360 error = kcf_submit_request(pd, ctx, cr, ¶ms, B_FALSE);
388 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
394 if ((ctx == NULL) ||
395 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
404 error = KCF_PROV_DIGEST_FINAL(pd, ctx, digest, NULL);
408 ctx->cc_session, NULL, NULL, NULL, digest);
409 error = kcf_submit_request(pd, ctx, cr, ¶ms, B_FALSE);
425 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
431 if ((ctx == NULL) ||
432 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
441 error = KCF_PROV_DIGEST_KEY(pd, ctx, key, NULL);
445 ctx->cc_session, NULL, key, NULL, NULL);
446 error = kcf_submit_request(pd, ctx, cr, ¶ms, B_FALSE);
459 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
465 if ((ctx == NULL) ||
466 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
474 error = KCF_PROV_DIGEST(pd, ctx, data, digest, NULL);
479 error = kcf_submit_request(pd, ctx, cr, ¶ms, B_FALSE);