| /dpdk/drivers/crypto/qat/ |
| H A D | qat_sym_session.c | 507 memset(session, 0, sizeof(*session)); in qat_sym_session_set_parameters() 514 session->is_ucs = 0; in qat_sym_session_set_parameters() 541 session); in qat_sym_session_set_parameters() 546 xform, session); in qat_sym_session_set_parameters() 550 xform, session); in qat_sym_session_set_parameters() 558 session); in qat_sym_session_set_parameters() 563 xform, session); in qat_sym_session_set_parameters() 567 xform, session); in qat_sym_session_set_parameters() 582 session->qat_cmd); in qat_sym_session_set_parameters() 586 session->qat_cmd); in qat_sym_session_set_parameters() [all …]
|
| H A D | qat_sym_session.h | 136 struct qat_sym_session *session); 141 struct qat_sym_session *session); 146 struct qat_sym_session *session); 150 struct rte_cryptodev_sym_session *session); 156 qat_sym_sesssion_init_common_hdr(struct qat_sym_session *session,
|
| H A D | qat_asym.h | 94 struct qat_asym_session *session = sess_private_data; in qat_asym_build_req_tmpl() local 96 qat_req = &session->req_tmpl; in qat_asym_build_req_tmpl()
|
| /dpdk/drivers/crypto/dpaa_sec/ |
| H A D | dpaa_sec.c | 675 op->sym->session, in dpaa_sec_dump() 1932 op->sym->session, in dpaa_sec_enqueue_burst() 2268 session->auth_key.data = in dpaa_sec_auth_init() 2597 session->iv.length = 0; in dpaa_sec_set_session_parameters() 2805 dpaa_sec_session *session) in dpaa_sec_ipsec_proto_init() argument 2975 session->dir = DIR_ENC; in dpaa_sec_set_ipsec_session() 2977 session->dir = DIR_DEC; in dpaa_sec_set_ipsec_session() 2984 ipsec_xform, session); in dpaa_sec_set_ipsec_session() 2990 ipsec_xform, session); in dpaa_sec_set_ipsec_session() 3188 session->dir = DIR_ENC; in dpaa_sec_set_pdcp_session() [all …]
|
| /dpdk/drivers/crypto/ipsec_mb/ |
| H A D | pmd_snow3g.c | 254 session->auth_iv_offset); in process_snow3g_hash_op() 259 if ((session->op == in process_snow3g_hash_op() 261 session->op == in process_snow3g_hash_op() 277 if (session->op == in process_snow3g_hash_op() 279 session->op == in process_snow3g_hash_op() 327 switch (session->op) { in process_ops() 331 session, num_ops); in process_ops() 367 ops[i]->sym->session)); in process_ops() 383 switch (session->op) { in process_op_bit() 388 session); in process_op_bit() [all …]
|
| H A D | pmd_kasumi.c | 94 session->cipher_iv_offset); in process_kasumi_cipher_op() 112 struct kasumi_session *session) in process_kasumi_cipher_op_bit() argument 126 session->cipher_iv_offset); in process_kasumi_cipher_op_bit() 166 &session->pKeySched_hash, src, in process_kasumi_hash_op() 179 &session->pKeySched_hash, src, in process_kasumi_hash_op() 196 switch (session->op) { in process_ops() 235 ops[i]->sym->session, 0, in process_ops() 237 ops[i]->sym->session)); in process_ops() 240 ops[i]->sym->session = NULL; in process_ops() 253 switch (session->op) { in process_op_bit() [all …]
|
| H A D | pmd_aesni_gcm.c | 212 if (session->req_digest_length != session->gen_digest_length) { in post_process_gcm_crypto_op() 213 if (session->op == in post_process_gcm_crypto_op() 217 session->req_digest_length); in post_process_gcm_crypto_op() 221 session->req_digest_length); in post_process_gcm_crypto_op() 244 memset(op->sym->session, 0, in handle_completed_gcm_crypto_op() 246 op->sym->session)); in handle_completed_gcm_crypto_op() 249 op->sym->session = NULL; in handle_completed_gcm_crypto_op() 324 session->iv.offset); in process_gcm_crypto_op() 354 if (session->req_digest_length != session->gen_digest_length) in process_gcm_crypto_op() 394 iv_ptr, session->iv.length); in process_gcm_crypto_op() [all …]
|
| H A D | pmd_aesni_mb.c | 1045 session->aead.aad_len; in set_cpu_mb_job_params() 1122 if (session == NULL) { in set_mb_job_params() 1208 session->aead.aad_len; in set_mb_job_params() 1290 session->iv.offset + 1); in set_mb_job_params() 1305 session->iv.offset); in set_mb_job_params() 1315 session->iv.offset); in set_mb_job_params() 1333 session->iv.offset); in set_mb_job_params() 1350 session->iv.offset); in set_mb_job_params() 1362 session->iv.offset); in set_mb_job_params() 1624 op->sym->session)); in post_process_mb_job() [all …]
|
| H A D | pmd_chacha_poly.c | 144 session->iv.offset); in chacha20_poly1305_crypto_op() 149 (uint64_t)session->aad_length); in chacha20_poly1305_crypto_op() 153 session->key, in chacha20_poly1305_crypto_op() 175 session->key, in chacha20_poly1305_crypto_op() 188 tag, session->gen_digest_length); in chacha20_poly1305_crypto_op() 192 session->key, in chacha20_poly1305_crypto_op() 216 session->key, in chacha20_poly1305_crypto_op() 264 tag, session->req_digest_length); in post_process_chacha20_poly1305_crypto_op() 293 memset(op->sym->session, 0, in handle_completed_chacha20_poly1305_crypto_op() 295 op->sym->session)); in handle_completed_chacha20_poly1305_crypto_op() [all …]
|
| H A D | ipsec_mb_private.h | 419 if (likely(sym_op->session != NULL)) in ipsec_mb_get_session_private() 420 sess = get_sym_session_private_data(sym_op->session, in ipsec_mb_get_session_private() 441 sym_op->session = (struct rte_cryptodev_sym_session *)_sess; in ipsec_mb_get_session_private() 442 set_sym_session_private_data(sym_op->session, driver_id, in ipsec_mb_get_session_private()
|
| /dpdk/drivers/net/bnxt/tf_core/ |
| H A D | tf_session.c | 132 session = (struct tf_session *)tfp->session->core_data; in tf_session_create() 133 session->ver.major = 0; in tf_session_create() 134 session->ver.minor = 0; in tf_session_create() 179 session->ref_count++; in tf_session_create() 206 &session->dev); in tf_session_create() 233 if (tfp->session) { in tf_session_create() 236 tfp->session = NULL; in tf_session_create() 288 session, in tf_session_client_create() 337 session->ref_count++; in tf_session_client_create() 630 tfp->session = NULL; in tf_session_close_session() [all …]
|
| /dpdk/drivers/crypto/dpaa2_sec/ |
| H A D | dpaa2_sec_dpseci.c | 1740 , sym_op->session, in dpaa2_sec_dump() 2179 session->dir); in dpaa2_sec_cipher_init() 2188 session->dir); in dpaa2_sec_cipher_init() 2197 session->dir); in dpaa2_sec_cipher_init() 2206 session->dir); in dpaa2_sec_cipher_init() 2248 session->ctxt = priv; in dpaa2_sec_cipher_init() 2316 !session->dir, in dpaa2_sec_auth_init() 2325 !session->dir, in dpaa2_sec_auth_init() 2334 !session->dir, in dpaa2_sec_auth_init() 2447 !session->dir, in dpaa2_sec_auth_init() [all …]
|
| /dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | bnxt_ulp.c | 385 session->g_shared_tfp.session = NULL; in ulp_ctx_shared_session_close() 485 if (!session->g_shared_tfp.session) in ulp_ctx_shared_session_open() 486 session->g_shared_tfp.session = bp->tfp_shared.session; in ulp_ctx_shared_session_open() 503 bp->tfp_shared.session = session->g_shared_tfp.session; in ulp_ctx_shared_session_attach() 603 session->g_tfp->session = bp->tfp.session; in ulp_ctx_session_open() 945 bp->tfp.session = session->g_tfp->session; in ulp_ctx_attach() 1061 if (!session) { in ulp_session_init() 1088 return session; in ulp_session_init() 1098 if (!session) in ulp_session_deinit() 1435 if (!session) { in bnxt_ulp_port_init() [all …]
|
| /dpdk/drivers/crypto/ccp/ |
| H A D | ccp_crypto.c | 1587 op->sym->session, in ccp_perform_hmac() 1768 op->sym->session, in ccp_perform_sha() 1861 op->sym->session, in ccp_perform_sha3_hmac() 2007 op->sym->session, in ccp_perform_sha3() 2081 op->sym->session, in ccp_perform_aes_cmac() 2244 op->sym->session, in ccp_perform_aes() 2332 op->sym->session, in ccp_perform_3des() 2442 op->sym->session, in ccp_perform_aes_gcm() 2609 op->sym->session, in ccp_crypto_cipher() 2647 op->sym->session, in ccp_crypto_auth() [all …]
|
| H A D | rte_ccp_pmd.c | 56 if (unlikely(op->sym->session == NULL)) in get_ccp_session() 61 op->sym->session, in get_ccp_session() 82 op->sym->session = (struct rte_cryptodev_sym_session *)_sess; in get_ccp_session() 83 set_sym_session_private_data(op->sym->session, in get_ccp_session() 166 ops[i]->sym->session, in ccp_pmd_dequeue_burst() 172 ops[i]->sym->session); in ccp_pmd_dequeue_burst() 173 ops[i]->sym->session = NULL; in ccp_pmd_dequeue_burst()
|
| /dpdk/drivers/crypto/caam_jr/ |
| H A D | caam_jr.c | 1638 session->iv.length = 0; in caam_jr_set_session_parameters() 1868 sizeof(session->ip4_hdr)); in caam_jr_set_ipsec_session() 1870 session->ip4_hdr.ip_hl = 5; in caam_jr_set_ipsec_session() 1872 sizeof(session->ip4_hdr)); in caam_jr_set_ipsec_session() 1874 session->ip4_hdr.ip_id = 0; in caam_jr_set_ipsec_session() 1875 session->ip4_hdr.ip_off = 0; in caam_jr_set_ipsec_session() 1880 session->ip4_hdr.ip_sum = 0; in caam_jr_set_ipsec_session() 1884 (void *)&session->ip4_hdr, in caam_jr_set_ipsec_session() 1887 session->encap_pdb.options = in caam_jr_set_ipsec_session() 1898 session->dir = DIR_ENC; in caam_jr_set_ipsec_session() [all …]
|
| /dpdk/drivers/crypto/virtio/ |
| H A D | virtio_rxtx.c | 114 struct virtio_crypto_session *session) in virtqueue_crypto_sym_pkt_header_arrange() argument 138 = session->iv.length; in virtqueue_crypto_sym_pkt_header_arrange() 209 struct virtio_crypto_session *session = in virtqueue_crypto_sym_enqueue_xmit() local 226 if (unlikely(session == NULL)) in virtqueue_crypto_sym_enqueue_xmit() 263 if (session->iv.length) { in virtqueue_crypto_sym_enqueue_xmit() 272 uint8_t *, session->iv.offset), in virtqueue_crypto_sym_enqueue_xmit() 273 session->iv.length); in virtqueue_crypto_sym_enqueue_xmit() 278 desc[idx].len = session->iv.length; in virtqueue_crypto_sym_enqueue_xmit() 283 if (session->aad.length) { in virtqueue_crypto_sym_enqueue_xmit() 284 desc[idx].addr = session->aad.phys_addr; in virtqueue_crypto_sym_enqueue_xmit() [all …]
|
| H A D | virtio_cryptodev.c | 43 struct rte_cryptodev_sym_session *session, 87 if (session == NULL) { in virtio_crypto_send_command() 255 session->session_id = input->session_id; in virtio_crypto_send_command() 936 struct virtio_crypto_session *session; in virtio_crypto_sym_clear_session() local 957 if (session == NULL) { in virtio_crypto_sym_clear_session() 1061 *status, session->session_id); in virtio_crypto_sym_clear_session() 1071 session->session_id); in virtio_crypto_sym_clear_session() 1076 rte_mempool_put(sess_mp, session); in virtio_crypto_sym_clear_session() 1320 struct virtio_crypto_session *session; in virtio_crypto_sym_configure_session() local 1345 ctrl_req = &session->ctrl; in virtio_crypto_sym_configure_session() [all …]
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | cryptodev_lib.rst | 134 temporary session to process the crypto operations in the session-less mode. 136 PMDs supports session-less mode. 315 with the crypto session. 424 and the session type (session-based/less), a reference to the operation 521 a session header normally takes smaller memory footprint as the session private 533 private session data. Once this is done, session should be freed using 586 a valid session (or transform chain if in session-less mode) and the minimum 709 buffer and attach either the cryptodev sym session, the rte_security session, 871 /* Create session mempool for the session header. */ 947 if (session == NULL) [all …]
|
| H A D | rte_security.rst | 196 Security Association (SA) as part of a crypto session creation including 234 | | SADB lookup | | <------ SA maps to cryptodev session 245 +--------|--------+ | | session sym session APIs 546 to create and manage two session mempools - one for session and other for session 550 And the session mempool object size should be enough to accommodate 577 security session which processed the packet. 590 Security session configuration 599 /**< Type of action to be performed on the session */ 608 /**< Configuration parameters for security session */ 612 /**< Application specific userdata to be saved with session */ [all …]
|
| /dpdk/drivers/crypto/null/ |
| H A D | null_crypto_pmd.c | 59 memset(op->sym->session, 0, in process_op() 61 rte_cryptodev_sym_session_free(op->sym->session); in process_op() 62 op->sym->session = NULL; in process_op() 79 if (likely(sym_op->session != NULL)) in get_session() 82 sym_op->session, cryptodev_driver_id); in get_session() 102 sym_op->session = (struct rte_cryptodev_sym_session *)_sess; in get_session() 103 set_sym_session_private_data(op->sym->session, in get_session()
|
| /dpdk/drivers/crypto/qat/dev/ |
| H A D | qat_crypto_pmd_gen2.c | 170 qat_sym_session_set_ext_hash_flags_gen2(struct qat_sym_session *session, in qat_sym_session_set_ext_hash_flags_gen2() argument 173 struct icp_qat_fw_comn_req_hdr *header = &session->fw_req.comn_hdr; in qat_sym_session_set_ext_hash_flags_gen2() 176 session->fw_req.cd_ctrl.content_desc_ctrl_lw; in qat_sym_session_set_ext_hash_flags_gen2() 188 switch (session->qat_cipher_alg) { in qat_sym_session_set_ext_hash_flags_gen2() 212 qat_sym_crypto_set_session_gen2(void *cdev, void *session) in qat_sym_crypto_set_session_gen2() argument 215 struct qat_sym_session *ctx = session; in qat_sym_crypto_set_session_gen2() 220 ret = qat_sym_crypto_set_session_gen1(cdev, session); in qat_sym_crypto_set_session_gen2()
|
| /dpdk/drivers/crypto/cnxk/ |
| H A D | cn10k_cryptodev_ops.c | 42 sym_op->session = sess; in cn10k_cpt_sym_temp_sess_create() 133 sym_op->session, cn10k_cryptodev_driver_id); in cn10k_cpt_fill_inst() 150 op->sym->session); in cn10k_cpt_fill_inst() 151 rte_mempool_put(qp->sess_mp, op->sym->session); in cn10k_cpt_fill_inst() 161 asym_op->session->sess_private_data; in cn10k_cpt_fill_inst() 435 op->session->sess_private_data; in cn10k_cpt_dequeue_post_process() 463 cop->sym->session); in cn10k_cpt_dequeue_post_process() 465 cop->sym->session); in cn10k_cpt_dequeue_post_process() 466 memset(cop->sym->session, 0, sz); in cn10k_cpt_dequeue_post_process() 467 rte_mempool_put(qp->sess_mp, cop->sym->session); in cn10k_cpt_dequeue_post_process() [all …]
|
| H A D | cn9k_cryptodev_ops.c | 91 sym_op->session = sess; in cn9k_cpt_sym_temp_sess_create() 113 sym_op->session, cn9k_cryptodev_driver_id); in cn9k_cpt_inst_prep() 130 op->sym->session); in cn9k_cpt_inst_prep() 131 rte_mempool_put(qp->sess_mp, op->sym->session); in cn9k_cpt_inst_prep() 142 asym_op->session->sess_private_data; in cn9k_cpt_inst_prep() 457 op->session->sess_private_data; in cn9k_cpt_dequeue_post_process() 485 cop->sym->session); in cn9k_cpt_dequeue_post_process() 487 cop->sym->session); in cn9k_cpt_dequeue_post_process() 488 memset(cop->sym->session, 0, sz); in cn9k_cpt_dequeue_post_process() 489 rte_mempool_put(qp->sess_mp, cop->sym->session); in cn9k_cpt_dequeue_post_process() [all …]
|
| /dpdk/drivers/crypto/armv8/ |
| H A D | rte_armv8_pmd.c | 523 if (likely(op->sym->session != NULL)) { in get_session() 526 op->sym->session, in get_session() 549 op->sym->session = (struct rte_cryptodev_sym_session *)_sess; in get_session() 550 set_sym_session_private_data(op->sym->session, in get_session() 677 memset(op->sym->session, 0, in process_op() 679 op->sym->session)); in process_op() 681 rte_mempool_put(qp->sess_mp, op->sym->session); in process_op() 682 op->sym->session = NULL; in process_op()
|