| /f-stack/dpdk/app/test-crypto-perf/ |
| H A D | cperf_ops.c | 561 cipher_xform.next = NULL; in cperf_create_session() 600 cipher_xform.next = NULL; in cperf_create_session() 616 .crypto_xform = &cipher_xform in cperf_create_session() 630 cipher_xform.next = NULL; in cperf_create_session() 635 cipher_xform.cipher.key.data = in cperf_create_session() 646 cipher_xform.next = NULL; in cperf_create_session() 660 .crypto_xform = &cipher_xform in cperf_create_session() 676 cipher_xform.next = NULL; in cperf_create_session() 683 cipher_xform.cipher.key.data = in cperf_create_session() 734 cipher_xform.next = NULL; in cperf_create_session() [all …]
|
| /f-stack/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 …]
|
| /f-stack/dpdk/app/test/ |
| H A D | test_cryptodev_blockcipher.c | 344 cipher_xform = op->sym->xform; in test_blockcipher_one_case() 350 init_xform = cipher_xform; in test_blockcipher_one_case() 356 cipher_xform->next = NULL; in test_blockcipher_one_case() 359 cipher_xform->next = NULL; in test_blockcipher_one_case() 365 cipher_xform = op->sym->xform; in test_blockcipher_one_case() 367 init_xform = cipher_xform; in test_blockcipher_one_case() 368 cipher_xform->next = NULL; in test_blockcipher_one_case() 389 cipher_xform->cipher.op = in test_blockcipher_one_case() 392 cipher_xform->cipher.op = in test_blockcipher_one_case() 723 if (cipher_xform) in test_blockcipher_one_case() [all …]
|
| H A D | test_ipsec_perf.c | 44 struct rte_crypto_sym_xform cipher_xform; member 182 sa->cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; in fill_ipsec_param() 183 sa->cipher_xform.cipher.algo = cipher_algo->algo; in fill_ipsec_param() 184 sa->cipher_xform.cipher.iv.offset = IV_OFFSET; in fill_ipsec_param() 185 sa->cipher_xform.cipher.iv.length = 12; in fill_ipsec_param() 193 sa->cipher_xform.cipher.op = in fill_ipsec_param() 196 sa->cipher_xform.next = NULL; in fill_ipsec_param() 197 sa->auth_xform.next = &sa->cipher_xform; in fill_ipsec_param() 200 sa->cipher_xform.cipher.op = in fill_ipsec_param() 204 sa->cipher_xform.next = &sa->auth_xform; in fill_ipsec_param() [all …]
|
| H A D | test_event_crypto_adapter.c | 165 struct rte_crypto_sym_xform cipher_xform; in test_op_forward_mode() local 183 cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; in test_op_forward_mode() 184 cipher_xform.next = NULL; in test_op_forward_mode() 185 cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_NULL; in test_op_forward_mode() 201 &cipher_xform, params.session_priv_mpool); in test_op_forward_mode() 224 first_xform = &cipher_xform; in test_op_forward_mode() 365 struct rte_crypto_sym_xform cipher_xform; in test_op_new_mode() local 382 cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; in test_op_new_mode() 383 cipher_xform.next = NULL; in test_op_new_mode() 409 &cipher_xform, params.session_priv_mpool); in test_op_new_mode() [all …]
|
| H A D | test_cryptodev.c | 89 struct rte_crypto_sym_xform cipher_xform; member 1818 ut_params->cipher_xform.next = NULL; in test_AES_CBC_HMAC_SHA512_decrypt_create_session_params() 2052 ut_params->cipher_xform.next = NULL; in create_wireless_algo_cipher_session() 2068 &ut_params->cipher_xform, in create_wireless_algo_cipher_session() 2188 &ut_params->cipher_xform, in create_wireless_algo_cipher_auth_session() 2251 &ut_params->cipher_xform, in create_wireless_cipher_auth_session() 2302 ut_params->cipher_xform.next = NULL; in create_wireless_algo_auth_cipher_session() 2321 &ut_params->cipher_xform, in create_wireless_algo_auth_cipher_session() 8562 ut_params->cipher_xform.next = NULL; in test_docsis_proto_uplink() 8738 ut_params->cipher_xform.next = NULL; in test_docsis_proto_downlink() [all …]
|
| H A D | test_ipsec.c | 68 struct rte_crypto_sym_xform cipher_xform; member 217 ut_params->cipher_xform.cipher.algo = cipher_algo->algo; in fill_crypto_xform() 223 ut_params->cipher_xform.cipher.op = in fill_crypto_xform() 226 ut_params->cipher_xform.next = NULL; in fill_crypto_xform() 227 ut_params->auth_xform.next = &ut_params->cipher_xform; in fill_crypto_xform() 230 ut_params->cipher_xform.cipher.op = in fill_crypto_xform() 234 ut_params->cipher_xform.next = &ut_params->auth_xform; in fill_crypto_xform() 235 ut_params->crypto_xforms = &ut_params->cipher_xform; in fill_crypto_xform() 257 cap_idx.algo.cipher = ut->cipher_xform.cipher.algo; in check_cryptodev_capability() 263 ut->cipher_xform.cipher.key.length, in check_cryptodev_capability() [all …]
|
| /f-stack/dpdk/drivers/crypto/octeontx2/ |
| H A D | otx2_cryptodev_sec.c | 26 struct rte_crypto_sym_xform *cipher_xform, *auth_xform; in ipsec_lp_len_precalc() local 59 cipher_xform = xform; in ipsec_lp_len_precalc() 63 cipher_xform = xform->next; in ipsec_lp_len_precalc() 178 struct rte_crypto_sym_xform *cipher_xform) in set_session_misc_attributes() argument 186 sess->iv_offset = cipher_xform->cipher.iv.offset; in set_session_misc_attributes() 289 cipher_xform = crypto_xform; in crypto_sec_ipsec_outb_session_create() 303 cipher_key = cipher_xform->cipher.key.data; in crypto_sec_ipsec_outb_session_create() 331 auth_xform, cipher_xform); in crypto_sec_ipsec_outb_session_create() 372 cipher_xform = crypto_xform->next; in crypto_sec_ipsec_inb_session_create() 387 cipher_key = cipher_xform->cipher.key.data; in crypto_sec_ipsec_inb_session_create() [all …]
|
| H A D | otx2_ipsec_fp.h | 221 struct rte_crypto_sym_xform *auth_xform, *cipher_xform; in ipsec_fp_xform_verify() local 236 cipher_xform = xform->next; in ipsec_fp_xform_verify() 242 cipher_xform = xform; in ipsec_fp_xform_verify() 246 ret = ipsec_fp_xform_cipher_verify(cipher_xform); in ipsec_fp_xform_verify() 262 struct rte_crypto_sym_xform *cipher_xform, *auth_xform; in ipsec_fp_sa_ctl_set() local 267 cipher_xform = xform; in ipsec_fp_sa_ctl_set() 272 cipher_xform = xform->next; in ipsec_fp_sa_ctl_set() 309 } else if (cipher_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CBC) { in ipsec_fp_sa_ctl_set() 311 aes_key_len = cipher_xform->cipher.key.length; in ipsec_fp_sa_ctl_set()
|
| H A D | otx2_ipsec_po.h | 257 struct rte_crypto_sym_xform *auth_xform, *cipher_xform; in ipsec_po_xform_verify() local 272 cipher_xform = xform->next; in ipsec_po_xform_verify() 278 cipher_xform = xform; in ipsec_po_xform_verify() 282 ret = ipsec_po_xform_cipher_verify(cipher_xform); in ipsec_po_xform_verify() 298 struct rte_crypto_sym_xform *cipher_xform, *auth_xform; in ipsec_po_sa_ctl_set() local 303 cipher_xform = xform; in ipsec_po_sa_ctl_set() 308 cipher_xform = xform->next; in ipsec_po_sa_ctl_set() 345 } else if (cipher_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CBC) { in ipsec_po_sa_ctl_set()
|
| /f-stack/dpdk/drivers/crypto/mvsam/ |
| H A D | rte_mrvl_pmd.c | 223 const struct rte_crypto_sym_xform *cipher_xform) in mrvl_crypto_set_cipher_session_parameters() argument 235 (cipher_map[cipher_xform->cipher.algo].supported in mrvl_crypto_set_cipher_session_parameters() 247 cipher_map[cipher_xform->cipher.algo].cipher_alg; in mrvl_crypto_set_cipher_session_parameters() 255 if (cipher_xform->cipher.key.length > in mrvl_crypto_set_cipher_session_parameters() 267 memcpy(cipher_key, cipher_xform->cipher.key.data, in mrvl_crypto_set_cipher_session_parameters() 268 cipher_xform->cipher.key.length); in mrvl_crypto_set_cipher_session_parameters() 420 cipher_xform = xform; in mrvl_crypto_set_session_parameters() 425 cipher_xform = xform->next; in mrvl_crypto_set_session_parameters() 428 cipher_xform = xform; in mrvl_crypto_set_session_parameters() 440 if ((cipher_xform != NULL) && in mrvl_crypto_set_session_parameters() [all …]
|
| /f-stack/dpdk/examples/fips_validation/ |
| H A D | main.c | 743 cipher_xform->iv.length = 0; in prepare_aes_xform() 744 cipher_xform->iv.offset = 0; in prepare_aes_xform() 757 cipher_xform->key.length, in prepare_aes_xform() 761 cipher_xform->iv.length); in prepare_aes_xform() 791 cipher_xform->iv.length = 0; in prepare_tdes_xform() 792 cipher_xform->iv.offset = 0; in prepare_tdes_xform() 805 cipher_xform->key.length, in prepare_tdes_xform() 809 cipher_xform->iv.length); in prepare_tdes_xform() 1079 cipher_xform->iv.offset = IV_OFF; in prepare_xts_xform() 1092 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 …]
|
| /f-stack/dpdk/drivers/crypto/qat/ |
| H A D | qat_sym_session.c | 257 switch (cipher_xform->algo) { in qat_sym_session_configure_cipher() 327 cipher_xform->algo, in qat_sym_session_configure_cipher() 328 cipher_xform->op, in qat_sym_session_configure_cipher() 329 cipher_xform->key.data, in qat_sym_session_configure_cipher() 346 cipher_xform->algo, in qat_sym_session_configure_cipher() 347 cipher_xform->op, in qat_sym_session_configure_cipher() 348 cipher_xform->key.data, in qat_sym_session_configure_cipher() 368 [cipher_xform->algo]); in qat_sym_session_configure_cipher() 399 cipher_xform->algo); in qat_sym_session_configure_cipher() 404 cipher_xform->algo); in qat_sym_session_configure_cipher() [all …]
|
| /f-stack/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 …]
|
| /f-stack/dpdk/drivers/net/octeontx2/ |
| H A D | otx2_ethdev_sec.c | 224 struct rte_crypto_sym_xform *cipher_xform, *auth_xform; in ipsec_sa_const_set() local 250 cipher_xform = xform; in ipsec_sa_const_set() 254 cipher_xform = xform->next; in ipsec_sa_const_set() 351 struct rte_crypto_sym_xform *auth_xform, *cipher_xform; in eth_sec_ipsec_out_sess_create() local 405 cipher_xform = crypto_xform; in eth_sec_ipsec_out_sess_create() 416 cipher_key = cipher_xform->cipher.key.data; in eth_sec_ipsec_out_sess_create() 417 cipher_key_len = cipher_xform->cipher.key.length; in eth_sec_ipsec_out_sess_create() 466 struct rte_crypto_sym_xform *auth_xform, *cipher_xform; in eth_sec_ipsec_in_sess_create() local 497 cipher_xform = crypto_xform->next; in eth_sec_ipsec_in_sess_create() 509 cipher_key = cipher_xform->cipher.key.data; in eth_sec_ipsec_in_sess_create() [all …]
|
| /f-stack/dpdk/drivers/crypto/snow3g/ |
| H A D | rte_snow3g_pmd.c | 60 const struct rte_crypto_sym_xform *cipher_xform = NULL; in snow3g_set_session_parameters() local 72 cipher_xform = xform; in snow3g_set_session_parameters() 75 cipher_xform = xform->next; in snow3g_set_session_parameters() 86 if (cipher_xform) { in snow3g_set_session_parameters() 88 if (cipher_xform->cipher.algo != RTE_CRYPTO_CIPHER_SNOW3G_UEA2) in snow3g_set_session_parameters() 91 if (cipher_xform->cipher.iv.length != SNOW3G_IV_LENGTH) { in snow3g_set_session_parameters() 95 if (cipher_xform->cipher.key.length > SNOW3G_MAX_KEY_SIZE) { in snow3g_set_session_parameters() 100 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in snow3g_set_session_parameters() 103 IMB_SNOW3G_INIT_KEY_SCHED(mgr, cipher_xform->cipher.key.data, in snow3g_set_session_parameters()
|
| /f-stack/dpdk/drivers/crypto/zuc/ |
| H A D | rte_zuc_pmd.c | 58 const struct rte_crypto_sym_xform *cipher_xform = NULL; in zuc_set_session_parameters() local 70 cipher_xform = xform; in zuc_set_session_parameters() 73 cipher_xform = xform->next; in zuc_set_session_parameters() 84 if (cipher_xform) { in zuc_set_session_parameters() 86 if (cipher_xform->cipher.algo != RTE_CRYPTO_CIPHER_ZUC_EEA3) in zuc_set_session_parameters() 89 if (cipher_xform->cipher.iv.length != ZUC_IV_KEY_LENGTH) { in zuc_set_session_parameters() 93 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in zuc_set_session_parameters() 96 memcpy(sess->pKey_cipher, cipher_xform->cipher.key.data, in zuc_set_session_parameters()
|
| /f-stack/dpdk/drivers/crypto/virtio/ |
| H A D | virtio_cryptodev.c | 1137 struct rte_crypto_cipher_xform *cipher_xform) in virtio_crypto_sym_pad_cipher_param() argument 1139 switch (cipher_xform->algo) { in virtio_crypto_sym_pad_cipher_param() 1145 "Cipher alg %u", cipher_xform->algo); in virtio_crypto_sym_pad_cipher_param() 1149 para->keylen = cipher_xform->key.length; in virtio_crypto_sym_pad_cipher_param() 1150 switch (cipher_xform->op) { in virtio_crypto_sym_pad_cipher_param() 1216 if (cipher_xform) { in virtio_crypto_sym_pad_op_ctrl_req() 1232 .cipher_param, cipher_xform); in virtio_crypto_sym_pad_op_ctrl_req() 1236 cipher_xform); in virtio_crypto_sym_pad_op_ctrl_req() 1245 cipher_xform->key.length); in virtio_crypto_sym_pad_op_ctrl_req() 1247 session->iv.offset = cipher_xform->iv.offset; in virtio_crypto_sym_pad_op_ctrl_req() [all …]
|
| /f-stack/dpdk/drivers/crypto/kasumi/ |
| H A D | rte_kasumi_pmd.c | 61 const struct rte_crypto_sym_xform *cipher_xform = NULL; in kasumi_set_session_parameters() local 72 cipher_xform = xform; in kasumi_set_session_parameters() 75 cipher_xform = xform->next; in kasumi_set_session_parameters() 86 if (cipher_xform) { in kasumi_set_session_parameters() 88 if (cipher_xform->cipher.algo != RTE_CRYPTO_CIPHER_KASUMI_F8) { in kasumi_set_session_parameters() 93 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in kasumi_set_session_parameters() 94 if (cipher_xform->cipher.iv.length != KASUMI_IV_LENGTH) { in kasumi_set_session_parameters() 100 IMB_KASUMI_INIT_F8_KEY_SCHED(mgr, cipher_xform->cipher.key.data, in kasumi_set_session_parameters()
|
| /f-stack/dpdk/examples/l2fwd-crypto/ |
| H A D | main.c | 136 struct rte_crypto_sym_xform cipher_xform; member 661 first_xform = &options->cipher_xform; in initialize_crypto_session() 665 first_xform->next = &options->cipher_xform; in initialize_crypto_session() 667 first_xform = &options->cipher_xform; in initialize_crypto_session() 818 options->cipher_xform.cipher.iv.length = in l2fwd_main_loop() 1226 options->cipher_xform.cipher.key.length = in l2fwd_crypto_parse_args_long_options() 1448 options->cipher_xform.next = NULL; in l2fwd_crypto_default_options() 1451 options->cipher_xform.cipher.key.length = 0; in l2fwd_crypto_default_options() 1504 options->cipher_xform.cipher.key.data, in display_cipher_info() 1505 options->cipher_xform.cipher.key.length); in display_cipher_info() [all …]
|
| /f-stack/dpdk/drivers/crypto/dpaa_sec/ |
| H A D | dpaa_sec.c | 2135 cipher_xform = &xform->cipher; in dpaa_sec_chain_init() 2161 cipher_xform->key.length); in dpaa_sec_chain_init() 2201 switch (cipher_xform->algo) { in dpaa_sec_chain_init() 2216 cipher_xform->algo); in dpaa_sec_chain_init() 2557 if (cipher_xform) { in dpaa_sec_ipsec_proto_init() 2569 cipher_xform->key.length); in dpaa_sec_ipsec_proto_init() 2867 cipher_xform = &xform->cipher; in dpaa_sec_set_pdcp_session() 2882 if (cipher_xform) { in dpaa_sec_set_pdcp_session() 2883 switch (cipher_xform->algo) { in dpaa_sec_set_pdcp_session() 2912 cipher_xform->key.length); in dpaa_sec_set_pdcp_session() [all …]
|
| /f-stack/dpdk/drivers/crypto/dpaa2_sec/ |
| H A D | dpaa2_sec_dpseci.c | 2319 cipher_xform = &xform->cipher; in dpaa2_sec_aead_chain_init() 2366 cipher_xform->key.length); in dpaa2_sec_aead_chain_init() 2437 switch (cipher_xform->algo) { in dpaa2_sec_aead_chain_init() 2466 cipher_xform->algo); in dpaa2_sec_aead_chain_init() 2471 cipher_xform->algo); in dpaa2_sec_aead_chain_init() 2684 if (cipher_xform) { in dpaa2_sec_ipsec_proto_init() 2696 cipher_xform->key.length); in dpaa2_sec_ipsec_proto_init() 3108 cipher_xform = &xform->cipher; in dpaa2_sec_set_pdcp_session() 3112 cipher_xform = &xform->cipher; in dpaa2_sec_set_pdcp_session() 3125 if (cipher_xform) { in dpaa2_sec_set_pdcp_session() [all …]
|
| /f-stack/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()
|
| /f-stack/dpdk/doc/guides/sample_app_ug/ |
| H A D | l2_forward_crypto.rst | 256 opt_cipher_algo = options->cipher_xform.cipher.algo; 281 options->cipher_xform.cipher.key.length, 302 options->cipher_xform.cipher.key.length = 306 options->cipher_xform.cipher.key.length = 340 first_xform = &options->cipher_xform; 344 first_xform->next = &options->cipher_xform; 346 first_xform = &options->cipher_xform;
|