Home
last modified time | relevance | path

Searched refs:kcf_ctx (Results 1 – 8 of 8) sorted by relevance

/titanic_44/usr/src/uts/common/crypto/api/
H A Dkcf_cipher.c477 kcf_context_t *kcf_ctx; in crypto_encrypt_update() local
483 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_encrypt_update()
484 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_encrypt_update()
500 if (plaintext->cd_length < kcf_ctx->kc_mech->me_threshold && in crypto_encrypt_update()
501 kcf_ctx->kc_sw_prov_desc != NULL && in crypto_encrypt_update()
502 KCF_IS_PROV_USABLE(kcf_ctx->kc_sw_prov_desc)) { in crypto_encrypt_update()
503 pd = kcf_ctx->kc_sw_prov_desc; in crypto_encrypt_update()
537 kcf_context_t *kcf_ctx; in crypto_encrypt_final() local
543 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_encrypt_final()
544 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_encrypt_final()
[all …]
H A Dkcf_digest.c340 kcf_context_t *kcf_ctx; in crypto_digest_update() local
346 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_digest_update()
347 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_digest_update()
389 kcf_context_t *kcf_ctx; in crypto_digest_final() local
395 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_digest_final()
396 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_digest_final()
413 KCF_CONTEXT_COND_RELEASE(error, kcf_ctx); in crypto_digest_final()
426 kcf_context_t *kcf_ctx; in crypto_digest_key_prov() local
432 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_digest_key_prov()
433 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_digest_key_prov()
[all …]
H A Dkcf_sign.c150 kcf_context_t *kcf_ctx; in crypto_sign_single() local
156 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_sign_single()
157 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_sign_single()
166 KCF_CONTEXT_COND_RELEASE(error, kcf_ctx); in crypto_sign_single()
178 kcf_context_t *kcf_ctx; in crypto_sign_update() local
184 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_sign_update()
185 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_sign_update()
205 kcf_context_t *kcf_ctx; in crypto_sign_final() local
211 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_sign_final()
212 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_sign_final()
[all …]
H A Dkcf_verify.c151 kcf_context_t *kcf_ctx; in crypto_verify_single() local
157 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_verify_single()
158 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_verify_single()
167 KCF_CONTEXT_COND_RELEASE(error, kcf_ctx); in crypto_verify_single()
180 kcf_context_t *kcf_ctx; in crypto_verify_update() local
186 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_verify_update()
187 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_verify_update()
207 kcf_context_t *kcf_ctx; in crypto_verify_final() local
213 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_verify_final()
214 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_verify_final()
[all …]
H A Dkcf_mac.c526 kcf_context_t *kcf_ctx; in crypto_mac_update() local
532 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_mac_update()
533 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_mac_update()
575 kcf_context_t *kcf_ctx; in crypto_mac_final() local
581 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_mac_final()
582 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_mac_final()
599 KCF_CONTEXT_COND_RELEASE(rv, kcf_ctx); in crypto_mac_final()
611 kcf_context_t *kcf_ctx; in crypto_mac_single() local
618 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_mac_single()
619 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_mac_single()
[all …]
H A Dkcf_dual.c871 kcf_context_t *kcf_ctx, *kcf_mac_ctx; in crypto_encrypt_mac_update() local
877 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_encrypt_mac_update()
878 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_encrypt_mac_update()
884 if ((kcf_mac_ctx = kcf_ctx->kc_secondctx) != NULL) { in crypto_encrypt_mac_update()
974 kcf_context_t *kcf_ctx, *kcf_mac_ctx; in crypto_encrypt_mac_final() local
980 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_encrypt_mac_final()
981 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_encrypt_mac_final()
987 if ((kcf_mac_ctx = kcf_ctx->kc_secondctx) != NULL) { in crypto_encrypt_mac_final()
1060 KCF_CONTEXT_COND_RELEASE(error, kcf_ctx); in crypto_encrypt_mac_final()
1977 kcf_context_t *kcf_ctx, *kcf_mac_ctx; in crypto_mac_decrypt_update() local
[all …]
/titanic_44/usr/src/uts/common/crypto/core/
H A Dkcf_sched.c115 kcf_context_t *kcf_ctx; in kcf_new_ctx() local
117 kcf_ctx = kmem_cache_alloc(kcf_context_cache, in kcf_new_ctx()
119 if (kcf_ctx == NULL) in kcf_new_ctx()
123 kcf_ctx->kc_refcnt = 1; in kcf_new_ctx()
124 kcf_ctx->kc_req_chain_first = NULL; in kcf_new_ctx()
125 kcf_ctx->kc_req_chain_last = NULL; in kcf_new_ctx()
126 kcf_ctx->kc_secondctx = NULL; in kcf_new_ctx()
128 kcf_ctx->kc_prov_desc = pd; in kcf_new_ctx()
129 kcf_ctx->kc_sw_prov_desc = NULL; in kcf_new_ctx()
130 kcf_ctx->kc_mech = NULL; in kcf_new_ctx()
[all …]
/titanic_44/usr/src/uts/common/sys/crypto/
H A Dsched_impl.h346 #define KCF_CONTEXT_COND_RELEASE(rv, kcf_ctx) { \ argument
348 KCF_CONTEXT_REFRELE(kcf_ctx); \