Searched refs:kcf_ctx (Results 1 – 3 of 3) sorted by relevance
49 kcf_context_t *kcf_ctx; in kcf_new_ctx() local51 kcf_ctx = kmem_cache_alloc(kcf_context_cache, KM_SLEEP); in kcf_new_ctx()52 if (kcf_ctx == NULL) in kcf_new_ctx()56 kcf_ctx->kc_refcnt = 1; in kcf_new_ctx()58 kcf_ctx->kc_prov_desc = pd; in kcf_new_ctx()59 kcf_ctx->kc_sw_prov_desc = NULL; in kcf_new_ctx()61 ctx = &kcf_ctx->kc_glbl_ctx; in kcf_new_ctx()63 ctx->cc_framework_private = (void *)kcf_ctx; in kcf_new_ctx()79 kcf_free_context(kcf_context_t *kcf_ctx) in kcf_free_context() argument81 kcf_provider_desc_t *pd = kcf_ctx->kc_prov_desc; in kcf_free_context()[all …]
252 kcf_context_t *kcf_ctx; in crypto_mac_update() local256 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_mac_update()257 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_mac_update()281 kcf_context_t *kcf_ctx; in crypto_mac_final() local285 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_mac_final()286 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_mac_final()293 KCF_CONTEXT_COND_RELEASE(rv, kcf_ctx); in crypto_mac_final()
96 #define KCF_CONTEXT_COND_RELEASE(rv, kcf_ctx) { \ argument98 KCF_CONTEXT_REFRELE(kcf_ctx); \