Home
last modified time | relevance | path

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

/titanic_41/usr/src/uts/common/crypto/api/
H A Dkcf_ctxops.c82 kcf_ctx_template_t *ctx_tmpl; in crypto_create_ctx_template() local
97 if ((ctx_tmpl = (kcf_ctx_template_t *)kmem_alloc( in crypto_create_ctx_template()
109 &(ctx_tmpl->ct_prov_tmpl), &(ctx_tmpl->ct_size), KCF_RHNDL(kmflag)); in crypto_create_ctx_template()
112 ctx_tmpl->ct_generation = me->me_gen_swprov; in crypto_create_ctx_template()
113 *ptmpl = ctx_tmpl; in crypto_create_ctx_template()
115 kmem_free(ctx_tmpl, sizeof (kcf_ctx_template_t)); in crypto_create_ctx_template()
141 kcf_ctx_template_t *ctx_tmpl = (kcf_ctx_template_t *)tmpl; in crypto_destroy_ctx_template() local
143 if (ctx_tmpl == NULL) in crypto_destroy_ctx_template()
146 ASSERT(ctx_tmpl->ct_prov_tmpl != NULL); in crypto_destroy_ctx_template()
148 bzero(ctx_tmpl->ct_prov_tmpl, ctx_tmpl->ct_size); in crypto_destroy_ctx_template()
[all …]
H A Dkcf_mac.c137 kcf_ctx_template_t *ctx_tmpl; in crypto_mac() local
158 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_mac()
159 if (ctx_tmpl->ct_generation != me->me_gen_swprov) { in crypto_mac()
165 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_mac()
261 kcf_ctx_template_t *ctx_tmpl; in crypto_mac_verify() local
282 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_mac_verify()
283 if (ctx_tmpl->ct_generation != me->me_gen_swprov) { in crypto_mac_verify()
289 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_mac_verify()
441 kcf_ctx_template_t *ctx_tmpl; in crypto_mac_init() local
463 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_mac_init()
[all …]
H A Dkcf_cipher.c236 kcf_ctx_template_t *ctx_tmpl; in crypto_cipher_init() local
257 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_cipher_init()
258 if (ctx_tmpl->ct_generation != me->me_gen_swprov) { in crypto_cipher_init()
264 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_cipher_init()
362 kcf_ctx_template_t *ctx_tmpl; in crypto_encrypt() local
383 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_encrypt()
384 if (ctx_tmpl->ct_generation != me->me_gen_swprov) { in crypto_encrypt()
390 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_encrypt()
644 kcf_ctx_template_t *ctx_tmpl; in crypto_decrypt() local
665 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_decrypt()
[all …]
H A Dkcf_sign.c98 kcf_ctx_template_t *ctx_tmpl; in crypto_sign_init() local
118 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_sign_init()
119 if (ctx_tmpl->ct_generation != me->me_gen_swprov) { in crypto_sign_init()
125 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_sign_init()
266 kcf_ctx_template_t *ctx_tmpl; in sign_sr_atomic_common() local
286 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in sign_sr_atomic_common()
287 if (ctx_tmpl->ct_generation != me->me_gen_swprov) { in sign_sr_atomic_common()
293 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in sign_sr_atomic_common()
H A Dkcf_verify.c99 kcf_ctx_template_t *ctx_tmpl; in crypto_verify_init() local
119 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_verify_init()
120 if (ctx_tmpl->ct_generation != me->me_gen_swprov) { in crypto_verify_init()
126 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in crypto_verify_init()
268 kcf_ctx_template_t *ctx_tmpl; in verify_vr_atomic_common() local
288 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in verify_vr_atomic_common()
289 if (ctx_tmpl->ct_generation != me->me_gen_swprov) { in verify_vr_atomic_common()
295 spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl; in verify_vr_atomic_common()
/titanic_41/usr/src/uts/common/inet/ip/
H A Dsadb.c7073 crypto_ctx_template_t *ctx_tmpl = NULL; local
7094 ctx_tmpl = &entry->ipsa_authtmpl;
7098 ctx_tmpl = &entry->ipsa_encrtmpl;
7101 ctx_tmpl = NULL;
7104 if (ctx_tmpl == NULL) {
7115 if (*ctx_tmpl == NULL) {
7124 if (*ctx_tmpl != NULL)
H A Dipsecah.c2872 crypto_ctx_template_t ctx_tmpl; in ah_submit_req_inbound() local
2916 IPSEC_CTX_TMPL(assoc, ipsa_authtmpl, IPSEC_ALG_AUTH, ctx_tmpl); in ah_submit_req_inbound()
2920 &ic->ic_crypto_data, &assoc->ipsa_kcfauthkey, ctx_tmpl, in ah_submit_req_inbound()