Lines Matching refs:ctx

111 	crypto_ctx_t *ctx;
134 if ((ctx = kcf_new_ctx(crq, real_provider, sid)) == NULL) {
148 error = KCF_PROV_ENCRYPT_INIT(real_provider, ctx,
153 error = KCF_PROV_DECRYPT_INIT(real_provider, ctx,
165 kcf_context_t *tctxp = (kcf_context_t *)ctx;
190 ctx->cc_flags = CRYPTO_INIT_OPSTATE;
206 error = kcf_submit_request(real_provider, ctx, crq, &params,
214 *ctxp = (crypto_context_t)ctx;
217 KCF_CONTEXT_REFRELE((kcf_context_t *)ctx->cc_framework_private);
476 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
482 if ((ctx == NULL) ||
483 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
492 error = KCF_PROV_ENCRYPT_UPDATE(pd, ctx, plaintext,
499 if ((ctx->cc_flags & CRYPTO_USE_OPSTATE) && cr == NULL) {
508 ctx->cc_session, NULL, NULL, plaintext, ciphertext, NULL);
509 error = kcf_submit_request(pd, ctx, cr, &params, B_FALSE);
536 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
542 if ((ctx == NULL) ||
543 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
552 error = KCF_PROV_ENCRYPT_FINAL(pd, ctx, ciphertext, NULL);
556 ctx->cc_session, NULL, NULL, NULL, ciphertext, NULL);
557 error = kcf_submit_request(pd, ctx, cr, &params, B_FALSE);
758 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
764 if ((ctx == NULL) ||
765 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
774 error = KCF_PROV_DECRYPT_UPDATE(pd, ctx, ciphertext,
781 if ((ctx->cc_flags & CRYPTO_USE_OPSTATE) && cr == NULL) {
790 ctx->cc_session, NULL, NULL, ciphertext, plaintext, NULL);
791 error = kcf_submit_request(pd, ctx, cr, &params, B_FALSE);
818 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
824 if ((ctx == NULL) ||
825 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
834 error = KCF_PROV_DECRYPT_FINAL(pd, ctx, plaintext,
839 ctx->cc_session, NULL, NULL, NULL, plaintext, NULL);
840 error = kcf_submit_request(pd, ctx, cr, &params, B_FALSE);
855 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
861 if ((ctx == NULL) ||
862 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
869 error = KCF_PROV_ENCRYPT(pd, ctx, plaintext,
875 error = kcf_submit_request(pd, ctx, cr, &params, B_FALSE);
890 crypto_ctx_t *ctx = (crypto_ctx_t *)context;
896 if ((ctx == NULL) ||
897 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) ||
904 error = KCF_PROV_DECRYPT(pd, ctx, ciphertext,
910 error = kcf_submit_request(pd, ctx, cr, &params, B_FALSE);