| /dpdk/app/test-crypto-perf/ |
| H A D | cperf_ops.c | 811 cipher_xform.next = NULL; in cperf_create_session() 850 cipher_xform.next = NULL; in cperf_create_session() 866 .crypto_xform = &cipher_xform in cperf_create_session() 886 cipher_xform.next = NULL; in cperf_create_session() 891 cipher_xform.cipher.key.data = in cperf_create_session() 902 cipher_xform.next = NULL; in cperf_create_session() 916 .crypto_xform = &cipher_xform in cperf_create_session() 932 cipher_xform.next = NULL; in cperf_create_session() 939 cipher_xform.cipher.key.data = in cperf_create_session() 990 cipher_xform.next = NULL; in cperf_create_session() [all …]
|
| /dpdk/drivers/crypto/cnxk/ |
| H A D | cnxk_ipsec.h | 105 struct rte_crypto_sym_xform *auth_xform, *cipher_xform; in cnxk_ipsec_xform_verify() local 132 cipher_xform = crypto_xform->next; in cnxk_ipsec_xform_verify() 137 if ((cipher_xform != NULL) && ((cipher_xform->type != in cnxk_ipsec_xform_verify() 139 (cipher_xform->cipher.algo != in cnxk_ipsec_xform_verify() 145 cipher_xform = crypto_xform; in cnxk_ipsec_xform_verify() 149 cipher_xform->cipher.algo != in cnxk_ipsec_xform_verify() 170 cipher_xform = crypto_xform->next; in cnxk_ipsec_xform_verify() 177 cipher_xform = crypto_xform; in cnxk_ipsec_xform_verify() 181 ret = ipsec_xform_cipher_verify(cipher_xform); in cnxk_ipsec_xform_verify()
|
| H A D | cn9k_ipsec.c | 125 cipher_xform = crypto_xform->next; in ipsec_sa_ctl_set() 127 cipher_xform = crypto_xform; in ipsec_sa_ctl_set() 171 if (cipher_xform != NULL) { in ipsec_sa_ctl_set() 172 switch (cipher_xform->cipher.algo) { in ipsec_sa_ctl_set() 178 aes_key_len = cipher_xform->cipher.key.length; in ipsec_sa_ctl_set() 182 aes_key_len = cipher_xform->cipher.key.length; in ipsec_sa_ctl_set() 285 cipher_xform = crypto_xform->next; in fill_ipsec_common_sa() 287 cipher_xform = crypto_xform; in fill_ipsec_common_sa() 297 if (cipher_xform) { in fill_ipsec_common_sa() 298 cipher_key = cipher_xform->cipher.key.data; in fill_ipsec_common_sa() [all …]
|
| /dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_sym_session.c | 53 const struct rte_crypto_cipher_xform *cipher_xform) in crypto_set_session_cipher_parameters() argument 55 if (cipher_xform->key.length > BCMFS_MAX_KEY_SIZE) { in crypto_set_session_cipher_parameters() 60 sess->cipher.key.length = cipher_xform->key.length; in crypto_set_session_cipher_parameters() 61 sess->cipher.iv.offset = cipher_xform->iv.offset; in crypto_set_session_cipher_parameters() 62 sess->cipher.iv.length = cipher_xform->iv.length; in crypto_set_session_cipher_parameters() 63 sess->cipher.op = cipher_xform->op; in crypto_set_session_cipher_parameters() 64 sess->cipher.algo = cipher_xform->algo; in crypto_set_session_cipher_parameters() 66 get_key(cipher_xform->key.data, in crypto_set_session_cipher_parameters() 154 struct rte_crypto_cipher_xform *cipher_xform = in crypto_set_session_parameters() local 163 if (crypto_set_session_cipher_parameters(sess, cipher_xform)) in crypto_set_session_parameters() [all …]
|
| /dpdk/app/test/ |
| H A D | test_cryptodev_blockcipher.c | 397 init_xform = cipher_xform; in test_blockcipher_one_case() 403 cipher_xform->next = NULL; in test_blockcipher_one_case() 406 cipher_xform->next = NULL; in test_blockcipher_one_case() 413 cipher_xform->next = NULL; in test_blockcipher_one_case() 416 cipher_xform->next = NULL; in test_blockcipher_one_case() 427 init_xform = cipher_xform; in test_blockcipher_one_case() 434 init_xform = cipher_xform; in test_blockcipher_one_case() 435 cipher_xform->next = NULL; in test_blockcipher_one_case() 456 cipher_xform->cipher.op = in test_blockcipher_one_case() 459 cipher_xform->cipher.op = in test_blockcipher_one_case() [all …]
|
| H A D | test_event_crypto_adapter.c | 180 struct rte_crypto_sym_xform cipher_xform; in test_op_forward_mode() local 198 cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; in test_op_forward_mode() 199 cipher_xform.next = NULL; in test_op_forward_mode() 200 cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_NULL; in test_op_forward_mode() 217 &cipher_xform, params.session_priv_mpool); in test_op_forward_mode() 240 first_xform = &cipher_xform; in test_op_forward_mode() 379 struct rte_crypto_sym_xform cipher_xform; in test_op_new_mode() local 396 cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; in test_op_new_mode() 397 cipher_xform.next = NULL; in test_op_new_mode() 423 &cipher_xform, params.session_priv_mpool); in test_op_new_mode() [all …]
|
| H A D | test_ipsec_perf.c | 56 struct rte_crypto_sym_xform cipher_xform; member 194 sa->cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; in fill_ipsec_param() 195 sa->cipher_xform.cipher.algo = cipher_algo->algo; in fill_ipsec_param() 196 sa->cipher_xform.cipher.iv.offset = IV_OFFSET; in fill_ipsec_param() 197 sa->cipher_xform.cipher.iv.length = 12; in fill_ipsec_param() 205 sa->cipher_xform.cipher.op = in fill_ipsec_param() 208 sa->cipher_xform.next = NULL; in fill_ipsec_param() 209 sa->auth_xform.next = &sa->cipher_xform; in fill_ipsec_param() 212 sa->cipher_xform.cipher.op = in fill_ipsec_param() 216 sa->cipher_xform.next = &sa->auth_xform; in fill_ipsec_param() [all …]
|
| H A D | test_cryptodev.c | 78 struct rte_crypto_sym_xform cipher_xform; member 2323 ut_params->cipher_xform.next = NULL; in test_AES_CBC_HMAC_SHA512_decrypt_create_session_params() 2486 ut_params->cipher_xform.next = NULL; in create_wireless_algo_cipher_session() 2502 &ut_params->cipher_xform, in create_wireless_algo_cipher_session() 2625 &ut_params->cipher_xform, in create_wireless_algo_cipher_auth_session() 2688 &ut_params->cipher_xform, in create_wireless_cipher_auth_session() 2739 ut_params->cipher_xform.next = NULL; in create_wireless_algo_auth_cipher_session() 2758 &ut_params->cipher_xform, in create_wireless_algo_auth_cipher_session() 9272 &ut_params->cipher_xform) != 0) { in test_ipsec_proto_process() 10316 ut_params->cipher_xform.next = NULL; in test_docsis_proto_uplink() [all …]
|
| H A D | test_ipsec.c | 78 struct rte_crypto_sym_xform cipher_xform; member 227 ut_params->cipher_xform.cipher.algo = cipher_algo->algo; in fill_crypto_xform() 233 ut_params->cipher_xform.cipher.op = in fill_crypto_xform() 236 ut_params->cipher_xform.next = NULL; in fill_crypto_xform() 237 ut_params->auth_xform.next = &ut_params->cipher_xform; in fill_crypto_xform() 240 ut_params->cipher_xform.cipher.op = in fill_crypto_xform() 244 ut_params->cipher_xform.next = &ut_params->auth_xform; in fill_crypto_xform() 245 ut_params->crypto_xforms = &ut_params->cipher_xform; in fill_crypto_xform() 267 cap_idx.algo.cipher = ut->cipher_xform.cipher.algo; in check_cryptodev_capability() 273 ut->cipher_xform.cipher.key.length, in check_cryptodev_capability() [all …]
|
| /dpdk/examples/fips_validation/ |
| H A D | main.c | 758 cipher_xform->iv.length = 0; in prepare_aes_xform() 759 cipher_xform->iv.offset = 0; in prepare_aes_xform() 772 cipher_xform->key.length, in prepare_aes_xform() 776 cipher_xform->iv.length); in prepare_aes_xform() 806 cipher_xform->iv.length = 0; in prepare_tdes_xform() 807 cipher_xform->iv.offset = 0; in prepare_tdes_xform() 820 cipher_xform->key.length, in prepare_tdes_xform() 824 cipher_xform->iv.length); in prepare_tdes_xform() 1094 cipher_xform->iv.offset = IV_OFF; in prepare_xts_xform() 1107 cipher_xform->key.length, in prepare_xts_xform() [all …]
|
| H A D | fips_dev_self_test.c | 1022 cipher_xform->algo = vec->cipher.algo; in prepare_cipher_xform() 1023 cipher_xform->op = (dir == self_test_dir_enc_auth_gen) ? in prepare_cipher_xform() 1026 cipher_xform->key.data = key; in prepare_cipher_xform() 1027 cipher_xform->key.length = vec->key.len; in prepare_cipher_xform() 1028 cipher_xform->iv.length = vec->iv.len; in prepare_cipher_xform() 1029 cipher_xform->iv.offset = IV_OFF; in prepare_cipher_xform() 1031 cap_idx.algo.cipher = cipher_xform->algo; in prepare_cipher_xform() 1042 cipher_xform->key.length, in prepare_cipher_xform() 1043 cipher_xform->iv.length) != 0) { in prepare_cipher_xform() 1046 cipher_xform->key.length, in prepare_cipher_xform() [all …]
|
| /dpdk/drivers/crypto/ipsec_mb/ |
| H A D | ipsec_mb_private.h | 191 const struct rte_crypto_sym_xform **cipher_xform, in ipsec_mb_parse_xform() argument 205 *cipher_xform = xform; 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() 247 *cipher_xform = NULL; in ipsec_mb_parse_xform() 252 *cipher_xform = NULL; in ipsec_mb_parse_xform() 269 *cipher_xform = xform->next; in ipsec_mb_parse_xform() 279 *cipher_xform = xform->next; in ipsec_mb_parse_xform()
|
| H A D | pmd_zuc.c | 14 const struct rte_crypto_sym_xform *cipher_xform = NULL; in zuc_session_configure() local 18 &cipher_xform, NULL); in zuc_session_configure() 23 if (cipher_xform) { in zuc_session_configure() 25 if (cipher_xform->cipher.algo != RTE_CRYPTO_CIPHER_ZUC_EEA3) in zuc_session_configure() 28 if (cipher_xform->cipher.iv.length != ZUC_IV_KEY_LENGTH) { in zuc_session_configure() 32 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in zuc_session_configure() 35 memcpy(sess->pKey_cipher, cipher_xform->cipher.key.data, in zuc_session_configure()
|
| H A D | pmd_kasumi.c | 20 const struct rte_crypto_sym_xform *cipher_xform = NULL; in kasumi_session_configure() local 25 &cipher_xform, NULL); in kasumi_session_configure() 30 if (cipher_xform) { in kasumi_session_configure() 32 if (cipher_xform->cipher.algo != RTE_CRYPTO_CIPHER_KASUMI_F8) { in kasumi_session_configure() 37 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in kasumi_session_configure() 38 if (cipher_xform->cipher.iv.length != KASUMI_IV_LENGTH) { in kasumi_session_configure() 45 cipher_xform->cipher.key.data, in kasumi_session_configure()
|
| H A D | pmd_snow3g.c | 14 const struct rte_crypto_sym_xform *cipher_xform = NULL; in snow3g_session_configure() local 19 &cipher_xform, NULL); in snow3g_session_configure() 23 if (cipher_xform) { in snow3g_session_configure() 25 if (cipher_xform->cipher.algo != RTE_CRYPTO_CIPHER_SNOW3G_UEA2) in snow3g_session_configure() 28 if (cipher_xform->cipher.iv.length != SNOW3G_IV_LENGTH) { in snow3g_session_configure() 32 if (cipher_xform->cipher.key.length > SNOW3G_MAX_KEY_SIZE) { in snow3g_session_configure() 37 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in snow3g_session_configure() 40 IMB_SNOW3G_INIT_KEY_SCHED(mgr, cipher_xform->cipher.key.data, in snow3g_session_configure()
|
| H A D | pmd_chacha_poly.c | 14 const struct rte_crypto_sym_xform *cipher_xform; in chacha20_poly1305_session_configure() local 23 &cipher_xform, &aead_xform); in chacha20_poly1305_session_configure()
|
| /dpdk/drivers/crypto/mvsam/ |
| H A D | rte_mrvl_pmd.c | 224 const struct rte_crypto_sym_xform *cipher_xform) in mrvl_crypto_set_cipher_session_parameters() argument 236 (cipher_map[cipher_xform->cipher.algo].supported in mrvl_crypto_set_cipher_session_parameters() 248 cipher_map[cipher_xform->cipher.algo].cipher_alg; in mrvl_crypto_set_cipher_session_parameters() 256 if (cipher_xform->cipher.key.length > in mrvl_crypto_set_cipher_session_parameters() 268 memcpy(cipher_key, cipher_xform->cipher.key.data, in mrvl_crypto_set_cipher_session_parameters() 269 cipher_xform->cipher.key.length); in mrvl_crypto_set_cipher_session_parameters() 429 cipher_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() 449 if ((cipher_xform != NULL) && in mrvl_crypto_set_session_parameters() [all …]
|
| /dpdk/drivers/crypto/qat/ |
| H A D | qat_sym_session.c | 282 switch (cipher_xform->algo) { in qat_sym_session_configure_cipher() 354 cipher_xform->algo, in qat_sym_session_configure_cipher() 355 cipher_xform->op, in qat_sym_session_configure_cipher() 356 cipher_xform->key.data, in qat_sym_session_configure_cipher() 373 cipher_xform->algo, in qat_sym_session_configure_cipher() 374 cipher_xform->op, in qat_sym_session_configure_cipher() 375 cipher_xform->key.data, in qat_sym_session_configure_cipher() 395 [cipher_xform->algo]); in qat_sym_session_configure_cipher() 426 cipher_xform->algo); in qat_sym_session_configure_cipher() 431 cipher_xform->algo); in qat_sym_session_configure_cipher() [all …]
|
| /dpdk/drivers/crypto/armv8/ |
| H A D | rte_armv8_pmd.c | 360 const struct rte_crypto_sym_xform *cipher_xform, in armv8_crypto_set_session_chained_parameters() argument 378 sess->cipher.direction = cipher_xform->cipher.op; in armv8_crypto_set_session_chained_parameters() 380 sess->cipher.key.length = cipher_xform->cipher.key.length; in armv8_crypto_set_session_chained_parameters() 393 calg = cipher_xform->cipher.algo; in armv8_crypto_set_session_chained_parameters() 425 switch (cipher_xform->cipher.key.length << 3) { in armv8_crypto_set_session_chained_parameters() 455 if (cipher_set_prerequisites(sess, cipher_xform) != 0) in armv8_crypto_set_session_chained_parameters() 470 const struct rte_crypto_sym_xform *cipher_xform = NULL; in armv8_crypto_set_session_parameters() local 482 cipher_xform = xform; in armv8_crypto_set_session_parameters() 488 cipher_xform = xform->next; in armv8_crypto_set_session_parameters() 497 sess->cipher.iv.offset = cipher_xform->cipher.iv.offset; in armv8_crypto_set_session_parameters() [all …]
|
| /dpdk/examples/l2fwd-crypto/ |
| H A D | main.c | 135 struct rte_crypto_sym_xform cipher_xform; member 685 first_xform = &options->cipher_xform; in initialize_crypto_session() 689 first_xform->next = &options->cipher_xform; in initialize_crypto_session() 691 first_xform = &options->cipher_xform; in initialize_crypto_session() 845 options->cipher_xform.cipher.iv.length = in l2fwd_main_loop() 1257 options->cipher_xform.cipher.key.length = in l2fwd_crypto_parse_args_long_options() 1490 options->cipher_xform.next = NULL; in l2fwd_crypto_default_options() 1493 options->cipher_xform.cipher.key.length = 0; in l2fwd_crypto_default_options() 1547 options->cipher_xform.cipher.key.data, in display_cipher_info() 1548 options->cipher_xform.cipher.key.length); in display_cipher_info() [all …]
|
| /dpdk/drivers/crypto/virtio/ |
| H A D | virtio_cryptodev.c | 1139 struct rte_crypto_cipher_xform *cipher_xform) in virtio_crypto_sym_pad_cipher_param() argument 1141 switch (cipher_xform->algo) { in virtio_crypto_sym_pad_cipher_param() 1147 "Cipher alg %u", cipher_xform->algo); in virtio_crypto_sym_pad_cipher_param() 1151 para->keylen = cipher_xform->key.length; in virtio_crypto_sym_pad_cipher_param() 1152 switch (cipher_xform->op) { in virtio_crypto_sym_pad_cipher_param() 1218 if (cipher_xform) { in virtio_crypto_sym_pad_op_ctrl_req() 1234 .cipher_param, cipher_xform); in virtio_crypto_sym_pad_op_ctrl_req() 1238 cipher_xform); in virtio_crypto_sym_pad_op_ctrl_req() 1247 cipher_xform->key.length); in virtio_crypto_sym_pad_op_ctrl_req() 1249 session->iv.offset = cipher_xform->iv.offset; in virtio_crypto_sym_pad_op_ctrl_req() [all …]
|
| /dpdk/drivers/crypto/dpaa_sec/ |
| H A D | dpaa_sec.c | 2373 cipher_xform = &xform->cipher; in dpaa_sec_chain_init() 2399 cipher_xform->key.length); in dpaa_sec_chain_init() 2447 switch (cipher_xform->algo) { in dpaa_sec_chain_init() 2466 cipher_xform->algo); in dpaa_sec_chain_init() 2807 if (cipher_xform) { in dpaa_sec_ipsec_proto_init() 2819 cipher_xform->key.length); in dpaa_sec_ipsec_proto_init() 3133 cipher_xform = &xform->cipher; in dpaa_sec_set_pdcp_session() 3150 if (cipher_xform) { in dpaa_sec_set_pdcp_session() 3151 switch (cipher_xform->algo) { in dpaa_sec_set_pdcp_session() 3180 cipher_xform->key.length); in dpaa_sec_set_pdcp_session() [all …]
|
| /dpdk/drivers/crypto/dpaa2_sec/ |
| H A D | dpaa2_sec_dpseci.c | 2635 cipher_xform = &xform->cipher; in dpaa2_sec_aead_chain_init() 2681 cipher_xform->key.length); in dpaa2_sec_aead_chain_init() 2760 switch (cipher_xform->algo) { in dpaa2_sec_aead_chain_init() 2789 cipher_xform->algo); in dpaa2_sec_aead_chain_init() 2794 cipher_xform->algo); in dpaa2_sec_aead_chain_init() 3006 if (cipher_xform) { in dpaa2_sec_ipsec_proto_init() 3018 cipher_xform->key.length); in dpaa2_sec_ipsec_proto_init() 3437 cipher_xform = &xform->cipher; in dpaa2_sec_set_pdcp_session() 3456 if (cipher_xform) { in dpaa2_sec_set_pdcp_session() 3468 cipher_xform->key.length); in dpaa2_sec_set_pdcp_session() [all …]
|
| /dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_sym.c | 540 struct rte_crypto_cipher_xform *cipher_xform = NULL; in nitrox_sym_dev_sess_configure() local 554 cipher_xform = &xform->cipher; in nitrox_sym_dev_sess_configure() 557 cipher_xform = &xform->cipher; in nitrox_sym_dev_sess_configure() 562 cipher_xform = &xform->next->cipher; in nitrox_sym_dev_sess_configure() 573 if (cipher_xform && unlikely(configure_cipher_ctx(cipher_xform, ctx))) { in nitrox_sym_dev_sess_configure()
|
| /dpdk/drivers/crypto/caam_jr/ |
| H A D | caam_jr.c | 1754 struct rte_crypto_cipher_xform *cipher_xform; in caam_jr_set_ipsec_session() local 1766 cipher_xform = &conf->crypto_xform->cipher; in caam_jr_set_ipsec_session() 1770 cipher_xform = &conf->crypto_xform->next->cipher; in caam_jr_set_ipsec_session() 1774 cipher_xform->key.length, in caam_jr_set_ipsec_session() 1777 cipher_xform->key.length > 0) { in caam_jr_set_ipsec_session() 1782 session->cipher_key.length = cipher_xform->key.length; in caam_jr_set_ipsec_session() 1793 memcpy(session->cipher_key.data, cipher_xform->key.data, in caam_jr_set_ipsec_session() 1794 cipher_xform->key.length); in caam_jr_set_ipsec_session() 1842 switch (cipher_xform->algo) { in caam_jr_set_ipsec_session() 1858 cipher_xform->algo); in caam_jr_set_ipsec_session() [all …]
|