Searched refs:kcf_ctx (Results 1 – 3 of 3) sorted by relevance
48 kcf_context_t *kcf_ctx; in kcf_new_ctx() local50 kcf_ctx = kmem_cache_alloc(kcf_context_cache, KM_SLEEP); in kcf_new_ctx()51 if (kcf_ctx == NULL) in kcf_new_ctx()55 kcf_ctx->kc_refcnt = 1; in kcf_new_ctx()57 kcf_ctx->kc_prov_desc = pd; in kcf_new_ctx()58 kcf_ctx->kc_sw_prov_desc = NULL; in kcf_new_ctx()60 ctx = &kcf_ctx->kc_glbl_ctx; in kcf_new_ctx()62 ctx->cc_framework_private = (void *)kcf_ctx; in kcf_new_ctx()78 kcf_free_context(kcf_context_t *kcf_ctx) in kcf_free_context() argument80 kcf_provider_desc_t *pd = kcf_ctx->kc_prov_desc; in kcf_free_context()[all …]
251 kcf_context_t *kcf_ctx; in crypto_mac_update() local255 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_mac_update()256 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_mac_update()280 kcf_context_t *kcf_ctx; in crypto_mac_final() local284 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_mac_final()285 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_mac_final()292 KCF_CONTEXT_COND_RELEASE(rv, kcf_ctx); in crypto_mac_final()
95 #define KCF_CONTEXT_COND_RELEASE(rv, kcf_ctx) { \ argument97 KCF_CONTEXT_REFRELE(kcf_ctx); \