Home
last modified time | relevance | path

Searched refs:sym_op (Results 1 – 25 of 25) sorted by relevance

/dpdk/app/test-crypto-perf/
H A Dcperf_ops.c85 sym_op->m_src->pkt_len = sym_op->m_src->data_len; in cperf_set_ops_security()
107 sym_op->cipher.data.offset = sym_op->auth.data.offset + in cperf_set_ops_security()
115 sym_op->m_dst = NULL; in cperf_set_ops_security()
165 sym_op->m_dst = NULL; in cperf_set_ops_security_ipsec()
210 sym_op->m_dst = NULL; in cperf_set_ops_null_cipher()
250 sym_op->m_dst = NULL; in cperf_set_ops_null_auth()
290 sym_op->m_dst = NULL; in cperf_set_ops_cipher()
347 sym_op->m_dst = NULL; in cperf_set_ops_auth()
371 buf = sym_op->m_dst; in cperf_set_ops_auth()
448 sym_op->m_dst = NULL; in cperf_set_ops_cipher_auth()
[all …]
/dpdk/drivers/crypto/qat/
H A Dqat_sym.h168 struct rte_crypto_sym_op *sym_op = op->sym; in qat_bpicipher_postprocess() local
184 if (unlikely(sym_op->m_dst != NULL)) in qat_bpicipher_postprocess()
202 if (sym_op->m_dst != NULL) in qat_bpicipher_postprocess()
212 if (sym_op->m_dst != NULL) in qat_bpicipher_postprocess()
230 sym_op->auth.data.length != 0) { in qat_crc_verify()
232 crc_data_ofs = sym_op->auth.data.offset; in qat_crc_verify()
233 crc_data_len = sym_op->auth.data.length; in qat_crc_verify()
254 sym_op->auth.data.length != 0 && in qat_crc_generate()
255 sym_op->m_src->nb_segs == 1) { in qat_crc_generate()
257 crc_data_len = sym_op->auth.data.length; in qat_crc_generate()
[all …]
/dpdk/drivers/crypto/bcmfs/
H A Dbcmfs_sym.c140 sym_op->cipher.data.offset); in process_crypto_combined_op()
145 sym_op->cipher.data.offset); in process_crypto_combined_op()
148 sym_op->cipher.data.offset); in process_crypto_combined_op()
150 sym_op->cipher.data.offset); in process_crypto_combined_op()
171 aad_size = sym_op->auth.data.length - sym_op->cipher.data.length; in process_crypto_combined_op()
178 sym_op->auth.data.offset); in process_crypto_combined_op()
180 sym_op->auth.data.offset); in process_crypto_combined_op()
216 sym_op->aead.data.offset); in process_crypto_aead_op()
220 sym_op->aead.data.offset); in process_crypto_aead_op()
223 sym_op->aead.data.offset); in process_crypto_aead_op()
[all …]
/dpdk/app/test/
H A Dtest_cryptodev_blockcipher.c296 sym_op = op->sym; in test_blockcipher_one_case()
340 sym_op->m_src = ibuf; in test_blockcipher_one_case()
343 sym_op->m_dst = obuf; in test_blockcipher_one_case()
346 sym_op->m_dst = NULL; in test_blockcipher_one_case()
541 sym_op->m_src->buf_addr, sym_op->m_src->buf_len); in test_blockcipher_one_case()
546 sym_op->m_dst->buf_addr, sym_op->m_dst->buf_len); in test_blockcipher_one_case()
585 sym_op->m_src->buf_addr, sym_op->m_src->buf_len); in test_blockcipher_one_case()
588 sym_op->m_dst->buf_addr, sym_op->m_dst->buf_len); in test_blockcipher_one_case()
666 mbuf = sym_op->m_src; in test_blockcipher_one_case()
701 mbuf = sym_op->m_dst; in test_blockcipher_one_case()
[all …]
H A Dtest_cryptodev.c2818 sym_op->auth.digest.data, in create_wireless_algo_hash_operation()
2874 sym_op->auth.digest.data, in create_wireless_cipher_hash_operation()
2960 sym_op->auth.digest.data, in create_wireless_algo_cipher_hash_operation()
3041 sym_op->m_src : sym_op->m_dst); in create_wireless_algo_auth_cipher_operation()
3077 sym_op->m_dst, in create_wireless_algo_auth_cipher_operation()
3080 sym_op->m_src, in create_wireless_algo_auth_cipher_operation()
8038 sym_op->xform->next = NULL; in create_aead_xform()
8193 sym_op->aead.digest.data, in create_aead_operation()
13528 sym_op->auth.digest.data, in create_auth_operation()
13575 sym_op->auth.digest.data, in create_auth_GMAC_operation()
[all …]
H A Dtest_event_crypto_adapter.c183 struct rte_crypto_sym_op *sym_op; in test_op_forward_mode() local
208 sym_op = op->sym; in test_op_forward_mode()
241 sym_op->xform = first_xform; in test_op_forward_mode()
251 sym_op->m_src = m; in test_op_forward_mode()
252 sym_op->cipher.data.offset = 0; in test_op_forward_mode()
253 sym_op->cipher.data.length = PACKET_LENGTH; in test_op_forward_mode()
382 struct rte_crypto_sym_op *sym_op; in test_op_new_mode() local
405 sym_op = op->sym; in test_op_new_mode()
433 sym_op->xform = first_xform; in test_op_new_mode()
441 sym_op->m_src = m; in test_op_new_mode()
[all …]
/dpdk/drivers/crypto/dpaa2_sec/
H A Ddpaa2_sec_dpseci.c99 if (sym_op->m_dst) in build_proto_compound_sg_fd()
100 mbuf = sym_op->m_dst; in build_proto_compound_sg_fd()
286 if (sym_op->m_dst) in build_proto_fd()
330 if (sym_op->m_dst) in build_authenc_gcm_sg_fd()
476 if (sym_op->m_dst) in build_authenc_gcm_fd()
620 if (sym_op->m_dst) in build_authenc_sg_fd()
768 if (sym_op->m_dst) in build_authenc_fd()
1728 sym_op = op->sym; in dpaa2_sec_dump()
1741 sym_op->cipher.data.offset, sym_op->cipher.data.length, in dpaa2_sec_dump()
1742 sym_op->auth.data.offset, sym_op->auth.data.length, in dpaa2_sec_dump()
[all …]
/dpdk/drivers/crypto/virtio/
H A Dvirtio_rxtx.c141 (sym_op->cipher.data.length + in virtqueue_crypto_sym_pkt_header_arrange()
142 sym_op->cipher.data.offset); in virtqueue_crypto_sym_pkt_header_arrange()
160 (sym_op->cipher.data.length + in virtqueue_crypto_sym_pkt_header_arrange()
161 sym_op->cipher.data.offset); in virtqueue_crypto_sym_pkt_header_arrange()
165 sym_op->cipher.data.offset; in virtqueue_crypto_sym_pkt_header_arrange()
167 sym_op->cipher.data.length; in virtqueue_crypto_sym_pkt_header_arrange()
169 sym_op->auth.data.offset; in virtqueue_crypto_sym_pkt_header_arrange()
171 sym_op->auth.data.length; in virtqueue_crypto_sym_pkt_header_arrange()
292 + sym_op->cipher.data.length); in virtqueue_crypto_sym_enqueue_xmit()
296 if (sym_op->m_dst) { in virtqueue_crypto_sym_enqueue_xmit()
[all …]
/dpdk/drivers/crypto/ipsec_mb/
H A Dpmd_aesni_gcm.c272 struct rte_mbuf *m_src = sym_op->m_src; in process_gcm_crypto_op()
281 offset = sym_op->aead.data.offset; in process_gcm_crypto_op()
285 offset = sym_op->auth.data.offset; in process_gcm_crypto_op()
305 RTE_ASSERT((sym_op->m_dst == NULL) || in process_gcm_crypto_op()
306 ((sym_op->m_dst != NULL) && in process_gcm_crypto_op()
310 if (sym_op->m_dst == NULL || (sym_op->m_dst == sym_op->m_src)) in process_gcm_crypto_op()
328 sym_op->aead.aad.data, in process_gcm_crypto_op()
357 tag = sym_op->aead.digest.data; in process_gcm_crypto_op()
363 sym_op->aead.aad.data, in process_gcm_crypto_op()
418 tag = sym_op->auth.digest.data; in process_gcm_crypto_op()
[all …]
H A Dpmd_chacha_poly.c103 struct rte_crypto_sym_op *sym_op = op->sym; in chacha20_poly1305_crypto_op() local
104 struct rte_mbuf *m_src = sym_op->m_src; in chacha20_poly1305_crypto_op()
111 offset = sym_op->aead.data.offset; in chacha20_poly1305_crypto_op()
113 data_length = sym_op->aead.data.length; in chacha20_poly1305_crypto_op()
130 if (sym_op->m_dst == NULL || (sym_op->m_dst == sym_op->m_src)) in chacha20_poly1305_crypto_op()
138 RTE_ASSERT(rte_pktmbuf_is_contiguous(sym_op->m_dst)); in chacha20_poly1305_crypto_op()
139 dst = rte_pktmbuf_mtod_offset(sym_op->m_dst, uint8_t *, in chacha20_poly1305_crypto_op()
148 iv_ptr, sym_op->aead.aad.data, in chacha20_poly1305_crypto_op()
185 tag = sym_op->aead.digest.data; in chacha20_poly1305_crypto_op()
H A Dipsec_mb_private.h411 struct rte_crypto_sym_op *sym_op = op->sym; in ipsec_mb_get_session_private() local
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()
435 sess, sym_op->xform) != 0)) { 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/crypto/cnxk/
H A Dcn9k_cryptodev_ops.c45 struct rte_crypto_sym_op *sym_op = op->sym; in cn9k_cpt_sec_inst_fill() local
49 if (unlikely(sym_op->m_dst && sym_op->m_dst != sym_op->m_src)) { in cn9k_cpt_sec_inst_fill()
54 if (unlikely(!rte_pktmbuf_is_contiguous(sym_op->m_src))) { in cn9k_cpt_sec_inst_fill()
74 struct rte_crypto_sym_op *sym_op = op->sym; in cn9k_cpt_sym_temp_sess_create() local
84 ret = sym_session_configure(qp->lf.roc_cpt, driver_id, sym_op->xform, in cn9k_cpt_sym_temp_sess_create()
91 sym_op->session = sess; in cn9k_cpt_sym_temp_sess_create()
107 struct rte_crypto_sym_op *sym_op; in cn9k_cpt_inst_prep() local
111 sym_op = op->sym; in cn9k_cpt_inst_prep()
113 sym_op->session, cn9k_cryptodev_driver_id); in cn9k_cpt_inst_prep()
388 struct rte_crypto_sym_op *sym_op = cop->sym; in cn9k_cpt_sec_post_process() local
[all …]
H A Dcn10k_cryptodev_ops.c25 struct rte_crypto_sym_op *sym_op = op->sym; in cn10k_cpt_sym_temp_sess_create() local
35 ret = sym_session_configure(qp->lf.roc_cpt, driver_id, sym_op->xform, in cn10k_cpt_sym_temp_sess_create()
42 sym_op->session = sess; in cn10k_cpt_sym_temp_sess_create()
55 struct rte_crypto_sym_op *sym_op = op->sym; in cpt_sec_inst_fill() local
59 if (unlikely(sym_op->m_dst && sym_op->m_dst != sym_op->m_src)) { in cpt_sec_inst_fill()
64 if (unlikely(!rte_pktmbuf_is_contiguous(sym_op->m_src))) { in cpt_sec_inst_fill()
104 struct rte_crypto_sym_op *sym_op; in cn10k_cpt_fill_inst() local
121 sym_op = op->sym; in cn10k_cpt_fill_inst()
126 sym_op->sec_session); in cn10k_cpt_fill_inst()
133 sym_op->session, cn10k_cryptodev_driver_id); in cn10k_cpt_fill_inst()
H A Dcnxk_se.h2148 m_src = sym_op->m_src; in fill_fc_params()
2149 m_dst = sym_op->m_dst; in fill_fc_params()
2159 sym_op->aead.data.offset + sym_op->aead.data.length; in fill_fc_params()
2197 sym_op->aead.digest.data; in fill_fc_params()
2205 sym_op->cipher.data.offset + sym_op->cipher.data.length; in fill_fc_params()
2210 (sym_op->auth.data.offset + sym_op->auth.data.length)) { in fill_fc_params()
2239 sym_op->auth.digest.data; in fill_fc_params()
2341 if (sym_op->auth.digest.data) in compl_auth_verify()
2342 mac = sym_op->auth.digest.data; in compl_auth_verify()
2412 m_src = sym_op->m_src; in fill_digest_params()
[all …]
H A Dcn10k_ipsec_la_ops.h54 struct rte_crypto_sym_op *sym_op = cop->sym; in process_outb_sa() local
55 struct rte_mbuf *m_src = sym_op->m_src; in process_outb_sa()
99 struct rte_crypto_sym_op *sym_op = cop->sym; in process_inb_sa() local
100 struct rte_mbuf *m_src = sym_op->m_src; in process_inb_sa()
H A Dcn9k_ipsec_la_ops.h78 struct rte_crypto_sym_op *sym_op = cop->sym; in process_outb_sa() local
79 struct rte_mbuf *m_src = sym_op->m_src; in process_outb_sa()
136 struct rte_crypto_sym_op *sym_op = cop->sym; in process_inb_sa() local
137 struct rte_mbuf *m_src = sym_op->m_src; in process_inb_sa()
/dpdk/drivers/crypto/null/
H A Dnull_crypto_pmd.c76 struct rte_crypto_sym_op *sym_op = op->sym; in get_session() local
79 if (likely(sym_op->session != NULL)) in get_session()
82 sym_op->session, cryptodev_driver_id); in get_session()
97 sym_op->xform) != 0)) { in get_session()
102 sym_op->session = (struct rte_cryptodev_sym_session *)_sess; in get_session()
/dpdk/lib/cryptodev/
H A Drte_crypto_sym.h903 __rte_crypto_sym_op_sym_xforms_alloc(struct rte_crypto_sym_op *sym_op, in __rte_crypto_sym_op_sym_xforms_alloc() argument
908 sym_op->xform = xform = (struct rte_crypto_sym_xform *)priv_data; in __rte_crypto_sym_op_sym_xforms_alloc()
915 return sym_op->xform; in __rte_crypto_sym_op_sym_xforms_alloc()
926 __rte_crypto_sym_op_attach_sym_session(struct rte_crypto_sym_op *sym_op, in __rte_crypto_sym_op_attach_sym_session() argument
929 sym_op->session = sess; in __rte_crypto_sym_op_attach_sym_session()
/dpdk/drivers/common/cpt/
H A Dcpt_ucode.h3123 m_src = sym_op->m_src; in fill_fc_params()
3124 m_dst = sym_op->m_dst; in fill_fc_params()
3141 sym_op->aead.data.offset))) { in fill_fc_params()
3174 sym_op->aead.digest.data; in fill_fc_params()
3219 sym_op->auth.digest.data; in fill_fc_params()
3345 if (sym_op->auth.digest.data) in compl_auth_verify()
3422 m_src = sym_op->m_src; in fill_digest_params()
3497 sym_op->auth.digest.data; in fill_digest_params()
3502 sym_op->auth.data.length; in fill_digest_params()
3505 m_dst = sym_op->m_dst ? in fill_digest_params()
[all …]
/dpdk/drivers/crypto/qat/dev/
H A Dqat_crypto_pmd_gens.h50 struct rte_crypto_sym_op *sym_op = op->sym; in qat_bpicipher_preprocess() local
52 sym_op->cipher.data.length % block_len : 0; in qat_bpicipher_preprocess()
57 uint32_t last_block_offset = sym_op->cipher.data.offset + in qat_bpicipher_preprocess()
58 sym_op->cipher.data.length - last_block_len; in qat_bpicipher_preprocess()
62 if (unlikely((sym_op->m_dst != NULL) in qat_bpicipher_preprocess()
63 && (sym_op->m_dst != sym_op->m_src))) in qat_bpicipher_preprocess()
65 dst = (uint8_t *) rte_pktmbuf_mtod_offset(sym_op->m_dst, in qat_bpicipher_preprocess()
70 if (last_block_len < sym_op->cipher.data.length) in qat_bpicipher_preprocess()
81 if (sym_op->m_dst != NULL) in qat_bpicipher_preprocess()
90 if (sym_op->m_dst != NULL) in qat_bpicipher_preprocess()
[all …]
/dpdk/app/test-eventdev/
H A Dtest_perf_common.c285 struct rte_crypto_sym_op *sym_op; in crypto_adapter_enq_op_new() local
310 sym_op = op->sym; in crypto_adapter_enq_op_new()
311 sym_op->m_src = m; in crypto_adapter_enq_op_new()
312 sym_op->cipher.data.offset = 0; in crypto_adapter_enq_op_new()
313 sym_op->cipher.data.length = len; in crypto_adapter_enq_op_new()
336 struct rte_crypto_sym_op *sym_op; in crypto_adapter_enq_op_fwd() local
364 sym_op = op->sym; in crypto_adapter_enq_op_fwd()
365 sym_op->m_src = m; in crypto_adapter_enq_op_fwd()
366 sym_op->cipher.data.offset = 0; in crypto_adapter_enq_op_fwd()
367 sym_op->cipher.data.length = len; in crypto_adapter_enq_op_fwd()
/dpdk/lib/security/
H A Drte_security.h708 __rte_security_attach_session(struct rte_crypto_sym_op *sym_op, in __rte_security_attach_session() argument
711 sym_op->sec_session = sess; in __rte_security_attach_session()
/dpdk/drivers/crypto/octeontx/
H A Dotx_cryptodev_ops.c524 struct rte_crypto_sym_op *sym_op = op->sym; in otx_cpt_enq_single_sym() local
532 get_sym_session_private_data(sym_op->session, in otx_cpt_enq_single_sym()
564 struct rte_crypto_sym_op *sym_op = op->sym; in otx_cpt_enq_single_sym_sessless() local
576 ret = sym_session_configure(driver_id, sym_op->xform, sess, in otx_cpt_enq_single_sym_sessless()
581 sym_op->session = sess; in otx_cpt_enq_single_sym_sessless()
/dpdk/drivers/crypto/dpaa_sec/
H A Ddpaa_sec.c669 struct rte_crypto_sym_op *sym_op; in dpaa_sec_dump() local
738 sym_op = op->sym; in dpaa_sec_dump()
739 if (sym_op->m_src) { in dpaa_sec_dump()
741 rte_pktmbuf_dump(stdout, sym_op->m_src, in dpaa_sec_dump()
742 sym_op->m_src->data_len); in dpaa_sec_dump()
744 if (sym_op->m_dst) { in dpaa_sec_dump()
747 sym_op->m_dst->data_len); in dpaa_sec_dump()
752 sym_op->session, sym_op->cipher.data.offset, in dpaa_sec_dump()
753 sym_op->cipher.data.length, in dpaa_sec_dump()
754 sym_op->auth.data.offset, sym_op->auth.data.length, in dpaa_sec_dump()
[all …]
/dpdk/lib/pipeline/
H A Drte_table_action.c1643 struct rte_crypto_sym_op sym_op; member