Home
last modified time | relevance | path

Searched refs:crq (Results 1 – 11 of 11) sorted by relevance

/titanic_50/usr/src/uts/common/crypto/api/
H A Dkcf_object.c43 crypto_object_id_t *object_handle, crypto_call_req_t *crq) in crypto_object_create() argument
61 if (CHECK_FASTPATH(crq, real_provider)) { in crypto_object_create()
63 attrs, count, object_handle, KCF_SWFP_RHNDL(crq)); in crypto_object_create()
69 rv = kcf_submit_request(real_provider, NULL, crq, in crypto_object_create()
80 crypto_object_id_t object_handle, crypto_call_req_t *crq) in crypto_object_destroy() argument
98 if (CHECK_FASTPATH(crq, real_provider)) { in crypto_object_destroy()
100 object_handle, KCF_SWFP_RHNDL(crq)); in crypto_object_destroy()
106 rv = kcf_submit_request(real_provider, NULL, crq, in crypto_object_destroy()
118 uint_t count, crypto_object_id_t *new_handle, crypto_call_req_t *crq) in crypto_object_copy() argument
136 if (CHECK_FASTPATH(crq, real_provider)) { in crypto_object_copy()
[all …]
H A Dkcf_session.c43 crypto_call_req_t *crq) in crypto_session_open() argument
61 if (CHECK_FASTPATH(crq, pd)) { in crypto_session_open()
63 KCF_SWFP_RHNDL(crq), pd); in crypto_session_open()
69 rv = kcf_submit_request(real_provider, NULL, crq, in crypto_session_open()
83 crypto_call_req_t *crq) in crypto_session_close() argument
105 if (CHECK_FASTPATH(crq, pd)) { in crypto_session_close()
107 sid, KCF_SWFP_RHNDL(crq), pd); in crypto_session_close()
113 rv = kcf_submit_request(real_provider, NULL, crq, in crypto_session_close()
123 crypto_user_type_t type, char *pin, ulong_t len, crypto_call_req_t *crq) in crypto_session_login() argument
141 if (CHECK_FASTPATH(crq, real_provider)) { in crypto_session_login()
[all …]
H A Dkcf_keys.c42 crypto_object_id_t *handle, crypto_call_req_t *crq) in crypto_key_generate() argument
60 if (CHECK_FASTPATH(crq, real_provider)) { in crypto_key_generate()
62 mech, attrs, count, handle, KCF_SWFP_RHNDL(crq)); in crypto_key_generate()
67 rv = kcf_submit_request(real_provider, NULL, crq, in crypto_key_generate()
81 crypto_call_req_t *crq) in crypto_key_generate_pair() argument
99 if (CHECK_FASTPATH(crq, real_provider)) { in crypto_key_generate_pair()
102 pri_handle, KCF_SWFP_RHNDL(crq)); in crypto_key_generate_pair()
108 rv = kcf_submit_request(real_provider, NULL, crq, in crypto_key_generate_pair()
121 crypto_call_req_t *crq) in crypto_key_wrap() argument
139 if (CHECK_FASTPATH(crq, real_provider)) { in crypto_key_wrap()
[all …]
H A Dkcf_mac.c97 crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) in crypto_mac_prov() argument
117 rv = kcf_submit_request(real_provider, NULL, crq, &params, B_FALSE); in crypto_mac_prov()
131 crypto_call_req_t *crq) in crypto_mac() argument
170 if (CHECK_FASTPATH(crq, pd)) { in crypto_mac()
177 mac, spi_ctx_tmpl, KCF_SWFP_RHNDL(crq)); in crypto_mac()
194 error = kcf_submit_request(pd, NULL, crq, &params, in crypto_mac()
195 KCF_ISDUALREQ(crq)); in crypto_mac()
202 if (kcf_insert_triedlist(&list, pd, KCF_KMFLAG(crq)) != NULL) in crypto_mac()
221 crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) in crypto_mac_verify_prov() argument
241 rv = kcf_submit_request(real_provider, NULL, crq, &params, B_FALSE); in crypto_mac_verify_prov()
[all …]
H A Dkcf_sign.c48 crypto_context_t *ctxp, crypto_call_req_t *crq) in crypto_sign_init_prov() argument
68 if ((ctx = kcf_new_ctx(crq, real_provider, sid)) == NULL) { in crypto_sign_init_prov()
76 rv = kcf_submit_request(real_provider, ctx, crq, &params, B_FALSE); in crypto_sign_init_prov()
92 crypto_ctx_template_t tmpl, crypto_context_t *ctxp, crypto_call_req_t *crq) in crypto_sign_init() argument
130 ctxp, crq); in crypto_sign_init()
135 if (kcf_insert_triedlist(&list, pd, KCF_KMFLAG(crq)) != NULL) in crypto_sign_init()
230 crypto_call_req_t *crq) in crypto_sign_prov() argument
249 rv = kcf_submit_request(real_provider, NULL, crq, &params, B_FALSE); in crypto_sign_prov()
259 crypto_call_req_t *crq, crypto_func_group_t fg) in sign_sr_atomic_common() argument
298 if (CHECK_FASTPATH(crq, pd)) { in sign_sr_atomic_common()
[all …]
H A Dkcf_verify.c48 crypto_context_t *ctxp, crypto_call_req_t *crq) in crypto_verify_init_prov() argument
68 if ((ctx = kcf_new_ctx(crq, real_provider, sid)) == NULL) { in crypto_verify_init_prov()
76 rv = kcf_submit_request(real_provider, ctx, crq, &params, B_FALSE); in crypto_verify_init_prov()
93 crypto_ctx_template_t tmpl, crypto_context_t *ctxp, crypto_call_req_t *crq) in crypto_verify_init() argument
131 ctxp, crq); in crypto_verify_init()
136 if (kcf_insert_triedlist(&list, pd, KCF_KMFLAG(crq)) != NULL) in crypto_verify_init()
232 crypto_call_req_t *crq) in crypto_verify_prov() argument
251 rv = kcf_submit_request(real_provider, NULL, crq, &params, B_FALSE); in crypto_verify_prov()
261 crypto_call_req_t *crq, crypto_func_group_t fg) in verify_vr_atomic_common() argument
300 if (CHECK_FASTPATH(crq, pd)) { in verify_vr_atomic_common()
[all …]
H A Dkcf_cipher.c108 crypto_call_req_t *crq, crypto_func_group_t func) in crypto_cipher_init_prov() argument
134 if ((ctx = kcf_new_ctx(crq, real_provider, sid)) == NULL) { in crypto_cipher_init_prov()
141 if (CHECK_FASTPATH(crq, pd)) { in crypto_cipher_init_prov()
149 &lmech, key, tmpl, KCF_SWFP_RHNDL(crq)); in crypto_cipher_init_prov()
154 &lmech, key, tmpl, KCF_SWFP_RHNDL(crq)); in crypto_cipher_init_prov()
206 error = kcf_submit_request(real_provider, ctx, crq, &params, in crypto_cipher_init_prov()
231 crypto_call_req_t *crq, crypto_func_group_t func) in crypto_cipher_init() argument
269 spi_ctx_tmpl, ctxp, crq, func); in crypto_cipher_init()
273 if (kcf_insert_triedlist(&list, pd, KCF_KMFLAG(crq)) != NULL) in crypto_cipher_init()
321 crypto_call_req_t *crq) in crypto_encrypt_prov() argument
[all …]
H A Dkcf_digest.c97 crypto_call_req_t *crq) in crypto_digest_prov() argument
118 rv = kcf_submit_request(real_provider, NULL, crq, &params, B_FALSE); in crypto_digest_prov()
131 crypto_data_t *digest, crypto_call_req_t *crq) in crypto_digest() argument
148 if (CHECK_FASTPATH(crq, pd)) { in crypto_digest()
154 digest, KCF_SWFP_RHNDL(crq)); in crypto_digest()
166 error = kcf_submit_request(pd, NULL, crq, &params, in crypto_digest()
174 if (kcf_insert_triedlist(&list, pd, KCF_KMFLAG(crq)) != NULL) in crypto_digest()
210 crypto_mechanism_t *mech, crypto_context_t *ctxp, crypto_call_req_t *crq) in crypto_digest_init_prov() argument
230 if ((ctx = kcf_new_ctx(crq, real_provider, sid)) == NULL) { in crypto_digest_init_prov()
237 if (CHECK_FASTPATH(crq, pd)) { in crypto_digest_init_prov()
[all …]
H A Dkcf_dual.c54 crypto_dual_data_t *ct, crypto_data_t *mac, crypto_call_req_t *crq) in crypto_encrypt_mac_prov() argument
121 if (CHECK_FASTPATH(crq, real_provider)) { in crypto_encrypt_mac_prov()
136 mac, spi_encr_tmpl, spi_mac_tmpl, KCF_SWFP_RHNDL(crq)); in crypto_encrypt_mac_prov()
157 rv = kcf_submit_request(real_provider, NULL, crq, &params, in crypto_encrypt_mac_prov()
176 crypto_dual_data_t *ct, crypto_data_t *mac, crypto_call_req_t *crq) in crypto_encrypt_mac() argument
247 if (crq != NULL) { in crypto_encrypt_mac()
249 next_req = kcf_alloc_req(crq); in crypto_encrypt_mac()
268 encr_req.cr_flag = crq->cr_flag; in crypto_encrypt_mac()
283 error = kcf_submit_request(pd, NULL, (crq == NULL) ? NULL : in crypto_encrypt_mac()
309 mac_key, mac_tmpl, mac, (crq == NULL) ? NULL : in crypto_encrypt_mac()
[all …]
/titanic_50/usr/src/uts/common/sys/crypto/
H A Dsched_impl.h65 #define CHECK_FASTPATH(crq, pd) ((crq) == NULL || \ argument
66 !((crq)->cr_flag & CRYPTO_ALWAYS_QUEUE)) && \
69 #define KCF_KMFLAG(crq) (((crq) == NULL) ? KM_SLEEP : KM_NOSLEEP) argument
87 #define KCF_SWFP_RHNDL(crq) (((crq) == NULL) ? NULL : &kcf_swprov_hndl) argument
95 #define KCF_ISDUALREQ(crq) \ argument
96 (((crq) == NULL) ? B_FALSE : (crq->cr_flag & CRYPTO_SETDUAL))
/titanic_50/usr/src/uts/common/crypto/core/
H A Dkcf_sched.c111 kcf_new_ctx(crypto_call_req_t *crq, kcf_provider_desc_t *pd, in kcf_new_ctx() argument
118 (crq == NULL) ? KM_SLEEP : KM_NOSLEEP); in kcf_new_ctx()
152 crypto_call_req_t *crq, kcf_req_params_t *req, boolean_t isdual) in kcf_areqnode_alloc() argument
156 ASSERT(crq != NULL); in kcf_areqnode_alloc()
162 arptr->an_reqarg = *crq; in kcf_areqnode_alloc()
597 crypto_call_req_t *crq, kcf_req_params_t *params, boolean_t cont) in kcf_submit_request() argument
609 if (crq == NULL) { in kcf_submit_request()
704 if (!(crq->cr_flag & CRYPTO_ALWAYS_QUEUE)) { in kcf_submit_request()
716 areq = kcf_areqnode_alloc(pd, kcf_ctx, crq, in kcf_submit_request()
721 if (!(crq->cr_flag in kcf_submit_request()
[all …]