Home
last modified time | relevance | path

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

1234

/dpdk/drivers/common/qat/qat_adf/
H A Dqat_pke.h63 if (xform->modinv.modulus.data[ in get_modinv_function()
65 if (xform->modex.modulus.length <= 16) { in get_modinv_function()
100 if (xform->modex.modulus.length <= 16) { in get_modinv_function()
144 if (xform->rsa.n.length <= 64) { in get_rsa_enc_function()
147 } else if (xform->rsa.n.length <= 128) { in get_rsa_enc_function()
150 } else if (xform->rsa.n.length <= 192) { in get_rsa_enc_function()
171 if (xform->rsa.n.length <= 64) { in get_rsa_dec_function()
197 int nlen = xform->rsa.qt.p.length * 2; in get_rsa_crt_function()
226 switch (xform->ec.curve_id) { in get_ecdsa_verify_function()
246 switch (xform->ec.curve_id) { in get_ecdsa_function()
[all …]
/dpdk/drivers/crypto/qat/
H A Dqat_asym.c221 } else if (xform->modex.exponent.length > xform->modex.modulus.length) in modexp_set_input()
791 cookie, xform); in asym_set_input()
794 cookie, xform); in asym_set_input()
836 xform = &qat_session->xform; in qat_asym_build_request()
840 xform = op->asym->xform; in qat_asym_build_request()
848 xform); in qat_asym_build_request()
932 xform = &qat_session->xform; in qat_asym_process_response()
935 xform = op->asym->xform; in qat_asym_process_response()
1009 qat_session->xform.rsa.key_type = xform->rsa.key_type; in session_set_rsa()
1128 qat_session->xform.ec.curve_id = xform->ec.curve_id; in session_set_ecdsa()
[all …]
H A Dqat_sym_session.c197 if (xform->type == RTE_CRYPTO_SYM_XFORM_CIPHER && xform->next == NULL) in qat_get_cmd_id()
201 if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH && xform->next == NULL) in qat_get_cmd_id()
244 return &xform->auth; in qat_get_auth_xform()
246 xform = xform->next; in qat_get_auth_xform()
247 } while (xform); in qat_get_auth_xform()
259 xform = xform->next; in qat_get_cipher_xform()
260 } while (xform); in qat_get_cipher_xform()
546 xform, session); in qat_sym_session_set_parameters()
550 xform, session); in qat_sym_session_set_parameters()
563 xform, session); in qat_sym_session_set_parameters()
[all …]
H A Dqat_sym_session.h125 struct rte_crypto_sym_xform *xform,
131 struct rte_crypto_sym_xform *xform, void *session_private);
135 struct rte_crypto_sym_xform *xform,
140 struct rte_crypto_sym_xform *xform,
145 struct rte_crypto_sym_xform *xform,
/dpdk/drivers/crypto/ipsec_mb/
H A Dipsec_mb_private.h194 if (xform == NULL) { in ipsec_mb_parse_xform()
210 *cipher_xform = xform; in ipsec_mb_parse_xform()
227 *cipher_xform = xform; in ipsec_mb_parse_xform()
237 *cipher_xform = xform; in ipsec_mb_parse_xform()
246 *auth_xform = xform; in ipsec_mb_parse_xform()
251 *auth_xform = xform; in ipsec_mb_parse_xform()
268 *auth_xform = xform; in ipsec_mb_parse_xform()
278 *auth_xform = xform; in ipsec_mb_parse_xform()
291 *aead_xform = xform; in ipsec_mb_parse_xform()
302 *aead_xform = xform; in ipsec_mb_parse_xform()
[all …]
H A Dpmd_aesni_mb.c70 if (xform == NULL) { in aesni_mb_set_session_auth_parameters()
249 xform->auth.key.data, in aesni_mb_set_session_auth_parameters()
265 xform->auth.key.data, in aesni_mb_set_session_auth_parameters()
281 xform->auth.key.data, in aesni_mb_set_session_auth_parameters()
297 xform->auth.key.data, in aesni_mb_set_session_auth_parameters()
313 xform->auth.key.data, in aesni_mb_set_session_auth_parameters()
354 xform->auth.key.length, in aesni_mb_set_session_auth_parameters()
359 xform->auth.key.data, in aesni_mb_set_session_auth_parameters()
360 xform->auth.key.length, in aesni_mb_set_session_auth_parameters()
380 if (xform == NULL) { in aesni_mb_set_session_cipher_parameters()
[all …]
/dpdk/drivers/crypto/bcmfs/
H A Dbcmfs_sym_session.c21 if (xform != NULL) { in crypto_get_chain_order()
26 if (xform->next == NULL) in crypto_get_chain_order()
28 else if (xform->next->type == in crypto_get_chain_order()
33 if (xform->next == NULL) in crypto_get_chain_order()
127 return &xform->auth; in crypto_get_auth_xform()
129 xform = xform->next; in crypto_get_auth_xform()
130 } while (xform); in crypto_get_auth_xform()
140 return &xform->cipher; in crypto_get_cipher_xform()
142 xform = xform->next; in crypto_get_cipher_xform()
143 } while (xform); in crypto_get_cipher_xform()
[all …]
/dpdk/drivers/crypto/nitrox/
H A Dnitrox_sym.c272 switch (xform->type) { in get_crypto_chain_order()
283 xform->auth.op, xform->next->cipher.op); in get_crypto_chain_order()
297 xform->cipher.op, xform->next->auth.op); in get_crypto_chain_order()
367 xform->key.length); in crypto_key_is_valid()
403 memcpy(fctx->crypto.key, xform->key.data, xform->key.length); in configure_cipher_ctx()
466 if (unlikely(!auth_key_is_valid(xform->key.data, xform->key.length, in configure_auth_ctx()
478 memcpy(fctx->auth.opad, xform->key.data, xform->key.length); in configure_auth_ctx()
491 xform->aad_length); in configure_aead_ctx()
502 if (unlikely(!auth_key_is_valid(xform->key.data, xform->key.length, in configure_aead_ctx()
518 memcpy(fctx->crypto.key, xform->key.data, xform->key.length); in configure_aead_ctx()
[all …]
/dpdk/drivers/crypto/null/
H A Dnull_crypto_pmd.c18 const struct rte_crypto_sym_xform *xform) in null_crypto_set_session_parameters() argument
20 if (xform == NULL) { in null_crypto_set_session_parameters()
22 } else if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH && in null_crypto_set_session_parameters()
23 xform->next == NULL) { in null_crypto_set_session_parameters()
25 if (xform->auth.algo == RTE_CRYPTO_AUTH_NULL) in null_crypto_set_session_parameters()
30 if (xform->auth.algo == RTE_CRYPTO_AUTH_NULL && in null_crypto_set_session_parameters()
34 xform->next == NULL) { in null_crypto_set_session_parameters()
36 if (xform->cipher.algo == RTE_CRYPTO_CIPHER_NULL) in null_crypto_set_session_parameters()
39 xform->next->type == RTE_CRYPTO_SYM_XFORM_AUTH) { in null_crypto_set_session_parameters()
42 xform->next->auth.algo == RTE_CRYPTO_AUTH_NULL) in null_crypto_set_session_parameters()
[all …]
/dpdk/drivers/crypto/openssl/
H A Drte_openssl_pmd_ops.c843 xform->rsa.d.length, in openssl_set_asym_session_parameters()
981 xform->dh.p.data, in openssl_set_asym_session_parameters()
982 xform->dh.p.length, in openssl_set_asym_session_parameters()
985 xform->dh.g.data, in openssl_set_asym_session_parameters()
986 xform->dh.g.length, in openssl_set_asym_session_parameters()
1011 if (xform->dh.type == in openssl_set_asym_session_parameters()
1047 xform->dsa.p.data, in openssl_set_asym_session_parameters()
1052 xform->dsa.g.data, in openssl_set_asym_session_parameters()
1057 xform->dsa.q.data, in openssl_set_asym_session_parameters()
1064 xform->dsa.x.data, in openssl_set_asym_session_parameters()
[all …]
H A Drte_openssl_pmd.c72 if (xform != NULL) { in openssl_get_chain_order()
74 if (xform->next == NULL) in openssl_get_chain_order()
81 if (xform->next == NULL) in openssl_get_chain_order()
596 xform->auth.key.data, in openssl_set_session_auth_parameters()
637 xform->aead.digest_length, xform->aead.key.data); in openssl_set_session_aead_parameters()
640 xform->aead.digest_length, xform->aead.key.data); in openssl_set_session_aead_parameters()
656 cipher_xform = xform; in openssl_set_session_parameters()
659 auth_xform = xform; in openssl_set_session_parameters()
662 cipher_xform = xform; in openssl_set_session_parameters()
666 auth_xform = xform; in openssl_set_session_parameters()
[all …]
/dpdk/drivers/crypto/armv8/
H A Drte_armv8_pmd.c214 if (xform->next == NULL || xform->next->next != NULL) in armv8_crypto_get_chain_order()
239 xform->auth.key.length); in auth_hmac_pad_prepare()
265 switch (xform->auth.algo) { in auth_set_prerequisites()
278 xform->auth.key.length); in auth_set_prerequisites()
313 xform->auth.key.length); in auth_set_prerequisites()
476 if (xform == NULL) in armv8_crypto_set_session_parameters()
482 cipher_xform = xform; in armv8_crypto_set_session_parameters()
483 auth_xform = xform->next; in armv8_crypto_set_session_parameters()
487 auth_xform = xform; in armv8_crypto_set_session_parameters()
488 cipher_xform = xform->next; in armv8_crypto_set_session_parameters()
[all …]
/dpdk/drivers/crypto/octeontx/
H A Dotx_cryptodev_ops.c209 if (xform->next) { in sym_xform_verify()
210 if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH && in sym_xform_verify()
230 if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH && in sym_xform_verify()
256 ret = sym_xform_verify(xform); in sym_session_configure()
270 for ( ; xform != NULL; xform = xform->next) { in sym_session_configure()
271 switch (xform->type) { in sym_session_configure()
273 ret = fill_sess_aead(xform, misc); in sym_session_configure()
276 ret = fill_sess_cipher(xform, misc); in sym_session_configure()
280 ret = fill_sess_gmac(xform, misc); in sym_session_configure()
282 ret = fill_sess_auth(xform, misc); in sym_session_configure()
[all …]
/dpdk/drivers/compress/qat/dev/
H A Dqat_comp_pmd_gen1.c101 const struct rte_comp_xform *xform, in qat_comp_set_slice_cfg_word_gen1() argument
107 if (xform->compress.algo == RTE_COMP_ALGO_DEFLATE) in qat_comp_set_slice_cfg_word_gen1()
120 if (xform->compress.level == RTE_COMP_LEVEL_PMD_DEFAULT) in qat_comp_set_slice_cfg_word_gen1()
122 else if (xform->compress.level == 1) in qat_comp_set_slice_cfg_word_gen1()
124 else if (xform->compress.level == 2) in qat_comp_set_slice_cfg_word_gen1()
126 else if (xform->compress.level == 3) in qat_comp_set_slice_cfg_word_gen1()
128 else if (xform->compress.level >= 4 && in qat_comp_set_slice_cfg_word_gen1()
129 xform->compress.level <= 9) in qat_comp_set_slice_cfg_word_gen1()
/dpdk/lib/cryptodev/
H A Drte_crypto_sym.h623 struct rte_crypto_sym_xform *xform; member
906 struct rte_crypto_sym_xform *xform; in __rte_crypto_sym_op_sym_xforms_alloc() local
908 sym_op->xform = xform = (struct rte_crypto_sym_xform *)priv_data; in __rte_crypto_sym_op_sym_xforms_alloc()
911 xform->type = RTE_CRYPTO_SYM_XFORM_NOT_SPECIFIED; in __rte_crypto_sym_op_sym_xforms_alloc()
912 xform = xform->next = --nb_xforms > 0 ? xform + 1 : NULL; in __rte_crypto_sym_op_sym_xforms_alloc()
913 } while (xform); in __rte_crypto_sym_op_sym_xforms_alloc()
915 return sym_op->xform; in __rte_crypto_sym_op_sym_xforms_alloc()
/dpdk/drivers/compress/mlx5/
H A Dmlx5_compress.c277 rte_free(xform); in mlx5_compress_xform_free()
290 switch (xform->type) { in mlx5_compress_xform_create()
333 xfrm->type = xform->type; in mlx5_compress_xform_create()
334 switch (xform->type) { in mlx5_compress_xform_create()
336 switch (xform->compress.algo) { in mlx5_compress_xform_create()
365 switch (xform->decompress.algo) { in mlx5_compress_xform_create()
475 struct mlx5_compress_xform *xform; in mlx5_compress_enqueue_burst() local
493 xform = op->private_xform; in mlx5_compress_enqueue_burst()
522 wqe->gga_ctrl1 = xform->gga_ctrl1; in mlx5_compress_enqueue_burst()
625 xform = op->private_xform; in mlx5_compress_dequeue_burst()
[all …]
/dpdk/drivers/crypto/virtio/
H A Dvirtio_cryptodev.c42 struct rte_crypto_sym_xform *xform,
1085 return &xform->cipher; in virtio_crypto_get_cipher_xform()
1087 xform = xform->next; in virtio_crypto_get_cipher_xform()
1088 } while (xform); in virtio_crypto_get_cipher_xform()
1098 return &xform->auth; in virtio_crypto_get_auth_xform()
1100 xform = xform->next; in virtio_crypto_get_auth_xform()
1101 } while (xform); in virtio_crypto_get_auth_xform()
1110 if (xform == NULL) in virtio_crypto_get_chain_order()
1115 xform->next == NULL) in virtio_crypto_get_chain_order()
1120 xform->next == NULL) in virtio_crypto_get_chain_order()
[all …]
/dpdk/app/test-crypto-perf/
H A Dcperf_ops.c669 xform.next = NULL; in create_ipsec_session()
671 xform.aead.op = options->aead_op; in create_ipsec_session()
672 xform.aead.iv.offset = iv_offset; in create_ipsec_session()
681 xform.next = NULL; in create_ipsec_session()
689 xform.cipher.key.length = in create_ipsec_session()
692 xform.cipher.key.data = NULL; in create_ipsec_session()
693 xform.cipher.key.length = 0; in create_ipsec_session()
702 xform.cipher.iv.length; in create_ipsec_session()
717 xform.next = &auth_xform; in create_ipsec_session()
761 .crypto_xform = &xform in create_ipsec_session()
[all …]
/dpdk/drivers/crypto/cnxk/
H A Dcnxk_cryptodev_ops.c432 if (xform == NULL) in cnxk_sess_fill()
436 c_xfrm = xform; in cnxk_sess_fill()
437 a_xfrm = xform->next; in cnxk_sess_fill()
440 c_xfrm = xform->next; in cnxk_sess_fill()
441 a_xfrm = xform; in cnxk_sess_fill()
444 aead_xfrm = xform; in cnxk_sess_fill()
560 struct rte_crypto_sym_xform *xform, in sym_session_configure() argument
577 ret = cnxk_sess_fill(xform, sess_priv); in sym_session_configure()
582 cpt_mac_len_verify(&xform->auth)) { in sym_session_configure()
607 struct rte_crypto_sym_xform *xform, in cnxk_cpt_sym_session_configure() argument
[all …]
/dpdk/drivers/crypto/caam_jr/
H A Dcaam_jr.c1552 struct rte_crypto_sym_xform *xform, in caam_jr_cipher_init() argument
1567 xform->cipher.key.length); in caam_jr_cipher_init()
1576 struct rte_crypto_sym_xform *xform, in caam_jr_auth_init() argument
1579 session->auth_alg = xform->auth.algo; in caam_jr_auth_init()
1590 xform->auth.key.length); in caam_jr_auth_init()
1599 struct rte_crypto_sym_xform *xform, in caam_jr_aead_init() argument
1602 session->aead_alg = xform->aead.algo; in caam_jr_aead_init()
1616 xform->aead.key.length); in caam_jr_aead_init()
1641 if (xform->type == RTE_CRYPTO_SYM_XFORM_CIPHER && xform->next == NULL) { in caam_jr_set_session_parameters()
1647 xform->next == NULL) { in caam_jr_set_session_parameters()
[all …]
/dpdk/app/test/
H A Dtest_cryptodev_security_ipsec_test_vectors.h110 .xform = {
209 .xform = {
311 .xform = {
417 .xform = {
518 .xform = {
620 .xform = {
725 .xform = {
833 .xform = {
938 .xform = {
1049 .xform = {
[all …]
H A Dtest_cryptodev_security_ipsec.c313 td_in->xform.chain.cipher.cipher.op = in test_ipsec_td_in_from_out()
408 td->xform.chain.auth.auth.algo = in test_ipsec_td_prepare()
410 td->xform.chain.auth.auth.key.length = in test_ipsec_td_prepare()
412 td->xform.chain.auth.auth.digest_length = in test_ipsec_td_prepare()
417 td->xform.chain.auth.auth.iv.length = in test_ipsec_td_prepare()
422 td->xform.chain.cipher.cipher.algo = in test_ipsec_td_prepare()
426 td->xform.chain.cipher.cipher.iv.length = in test_ipsec_td_prepare()
428 td->xform.chain.auth.auth.algo = in test_ipsec_td_prepare()
430 td->xform.chain.auth.auth.key.length = in test_ipsec_td_prepare()
436 td->xform.chain.auth.auth.iv.length = in test_ipsec_td_prepare()
[all …]
/dpdk/drivers/compress/isal/
H A Disal_compress_pmd.c32 const struct rte_comp_xform *xform) in isal_comp_set_priv_xform_parameters() argument
34 if (xform == NULL) in isal_comp_set_priv_xform_parameters()
38 if (xform->type == RTE_COMP_COMPRESS) { in isal_comp_set_priv_xform_parameters()
43 if (xform->compress.algo != RTE_COMP_ALGO_DEFLATE) { in isal_comp_set_priv_xform_parameters()
44 if (xform->compress.algo == RTE_COMP_ALGO_NULL) { in isal_comp_set_priv_xform_parameters()
63 switch (xform->compress.deflate.huffman) { in isal_comp_set_priv_xform_parameters()
82 switch (xform->compress.chksum) { in isal_comp_set_priv_xform_parameters()
107 xform->compress.level > RTE_COMP_LEVEL_MAX) { in isal_comp_set_priv_xform_parameters()
128 switch (xform->compress.level) { in isal_comp_set_priv_xform_parameters()
183 else if (xform->type == RTE_COMP_DECOMPRESS) { in isal_comp_set_priv_xform_parameters()
[all …]
/dpdk/drivers/compress/zlib/
H A Dzlib_pmd.c220 zlib_set_stream_parameters(const struct rte_comp_xform *xform, in zlib_set_stream_parameters() argument
231 switch (xform->type) { in zlib_set_stream_parameters()
236 switch (xform->compress.algo) { in zlib_set_stream_parameters()
238 wbits = -(xform->compress.window_size); in zlib_set_stream_parameters()
245 switch (xform->compress.level) { in zlib_set_stream_parameters()
259 level = xform->compress.level; in zlib_set_stream_parameters()
270 switch (xform->compress.deflate.huffman) { in zlib_set_stream_parameters()
296 switch (xform->decompress.algo) { in zlib_set_stream_parameters()
298 wbits = -(xform->decompress.window_size); in zlib_set_stream_parameters()
/dpdk/drivers/crypto/mvsam/
H A Drte_mrvl_pmd.c191 if (xform->next != NULL && xform->next->next != NULL) in mrvl_crypto_get_chain_order()
194 if (xform->next != NULL) { in mrvl_crypto_get_chain_order()
416 const struct rte_crypto_sym_xform *xform) in mrvl_crypto_set_session_parameters() argument
423 if (xform == NULL) in mrvl_crypto_set_session_parameters()
429 cipher_xform = xform; in mrvl_crypto_set_session_parameters()
430 auth_xform = xform->next; in mrvl_crypto_set_session_parameters()
433 auth_xform = xform; in mrvl_crypto_set_session_parameters()
434 cipher_xform = xform->next; in mrvl_crypto_set_session_parameters()
437 cipher_xform = xform; in mrvl_crypto_set_session_parameters()
440 auth_xform = xform; in mrvl_crypto_set_session_parameters()
[all …]

1234