Home
last modified time | relevance | path

Searched refs:ctx_tmpl (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/openzfs/module/icp/api/
H A Dkcf_ctxops.c76 kcf_ctx_template_t *ctx_tmpl; in crypto_create_ctx_template() local
91 if ((ctx_tmpl = kmem_alloc( in crypto_create_ctx_template()
103 &(ctx_tmpl->ct_prov_tmpl), &(ctx_tmpl->ct_size)); in crypto_create_ctx_template()
106 *ptmpl = ctx_tmpl; in crypto_create_ctx_template()
108 kmem_free(ctx_tmpl, sizeof (kcf_ctx_template_t)); in crypto_create_ctx_template()
134 kcf_ctx_template_t *ctx_tmpl = (kcf_ctx_template_t *)tmpl; in crypto_destroy_ctx_template() local
136 if (ctx_tmpl == NULL) in crypto_destroy_ctx_template()
139 ASSERT(ctx_tmpl->ct_prov_tmpl != NULL); in crypto_destroy_ctx_template()
141 memset(ctx_tmpl->ct_prov_tmpl, 0, ctx_tmpl->ct_size); in crypto_destroy_ctx_template()
142 kmem_free(ctx_tmpl->ct_prov_tmpl, ctx_tmpl->ct_size); in crypto_destroy_ctx_template()
[all …]
H A Dkcf_cipher.c74 kcf_ctx_template_t *ctx_tmpl; in crypto_encrypt() local
87 if (((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) in crypto_encrypt()
88 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_encrypt()
145 kcf_ctx_template_t *ctx_tmpl; in crypto_decrypt() local
158 if (((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) in crypto_decrypt()
159 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_decrypt()
H A Dkcf_mac.c90 kcf_ctx_template_t *ctx_tmpl; in crypto_mac() local
103 if (((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) in crypto_mac()
104 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_mac()
196 kcf_ctx_template_t *ctx_tmpl; in crypto_mac_init() local
216 if (((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) in crypto_mac_init()
217 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_mac_init()