| /f-stack/dpdk/app/test-crypto-perf/ |
| H A D | cperf_ops.c | 579 auth_xform.next = NULL; in cperf_create_session() 595 auth_xform.auth.iv.length = 0; in cperf_create_session() 702 auth_xform.next = NULL; in cperf_create_session() 711 auth_xform.auth.key.length = in cperf_create_session() 714 auth_xform.auth.iv.length = in cperf_create_session() 720 auth_xform.auth.iv.length = 0; in cperf_create_session() 757 auth_xform.next = NULL; in cperf_create_session() 767 auth_xform.auth.key.length = in cperf_create_session() 769 auth_xform.auth.key.data = in cperf_create_session() 775 auth_xform.auth.iv.length = 0; in cperf_create_session() [all …]
|
| /f-stack/dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_sym_session.c | 76 const struct rte_crypto_auth_xform *auth_xform) in crypto_set_session_auth_parameters() argument 78 if (auth_xform->key.length > BCMFS_MAX_KEY_SIZE) { in crypto_set_session_auth_parameters() 83 sess->auth.op = auth_xform->op; in crypto_set_session_auth_parameters() 84 sess->auth.key.length = auth_xform->key.length; in crypto_set_session_auth_parameters() 85 sess->auth.digest_length = auth_xform->digest_length; in crypto_set_session_auth_parameters() 86 sess->auth.iv.length = auth_xform->iv.length; in crypto_set_session_auth_parameters() 87 sess->auth.iv.offset = auth_xform->iv.offset; in crypto_set_session_auth_parameters() 88 sess->auth.algo = auth_xform->algo; in crypto_set_session_auth_parameters() 90 get_key(auth_xform->key.data, in crypto_set_session_auth_parameters() 91 auth_xform->key.length, in crypto_set_session_auth_parameters() [all …]
|
| /f-stack/dpdk/drivers/crypto/octeontx2/ |
| H A D | otx2_cryptodev_sec.c | 60 auth_xform = xform->next; in ipsec_lp_len_precalc() 62 auth_xform = xform; in ipsec_lp_len_precalc() 177 struct rte_crypto_sym_xform *auth_xform, in set_session_misc_attributes() argument 290 auth_xform = crypto_xform->next; in crypto_sec_ipsec_outb_session_create() 305 auth_key = auth_xform->auth.key.data; in crypto_sec_ipsec_outb_session_create() 306 auth_key_len = auth_xform->auth.key.length; in crypto_sec_ipsec_outb_session_create() 331 auth_xform, cipher_xform); in crypto_sec_ipsec_outb_session_create() 371 auth_xform = crypto_xform; in crypto_sec_ipsec_inb_session_create() 389 auth_key = auth_xform->auth.key.data; in crypto_sec_ipsec_inb_session_create() 390 auth_key_len = auth_xform->auth.key.length; 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 235 auth_xform = xform; in ipsec_fp_xform_verify() 243 auth_xform = xform->next; in ipsec_fp_xform_verify() 250 ret = ipsec_fp_xform_auth_verify(auth_xform); in ipsec_fp_xform_verify() 262 struct rte_crypto_sym_xform *cipher_xform, *auth_xform; in ipsec_fp_sa_ctl_set() local 268 auth_xform = xform->next; in ipsec_fp_sa_ctl_set() 271 auth_xform = xform; in ipsec_fp_sa_ctl_set() 331 switch (auth_xform->auth.algo) { 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 271 auth_xform = xform; in ipsec_po_xform_verify() 279 auth_xform = xform->next; in ipsec_po_xform_verify() 286 ret = ipsec_po_xform_auth_verify(auth_xform); in ipsec_po_xform_verify() 298 struct rte_crypto_sym_xform *cipher_xform, *auth_xform; in ipsec_po_sa_ctl_set() local 304 auth_xform = xform->next; in ipsec_po_sa_ctl_set() 307 auth_xform = xform; in ipsec_po_sa_ctl_set() 368 switch (auth_xform->auth.algo) { in ipsec_po_sa_ctl_set()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_cryptodev_blockcipher.c | 327 auth_xform = rte_zmalloc(NULL, in test_blockcipher_one_case() 345 auth_xform = cipher_xform->next; in test_blockcipher_one_case() 346 auth_xform->next = NULL; in test_blockcipher_one_case() 349 auth_xform->next = NULL; in test_blockcipher_one_case() 354 auth_xform = op->sym->xform; in test_blockcipher_one_case() 360 init_xform = auth_xform; in test_blockcipher_one_case() 372 auth_xform = op->sym->xform; in test_blockcipher_one_case() 374 init_xform = auth_xform; in test_blockcipher_one_case() 375 auth_xform->next = NULL; in test_blockcipher_one_case() 725 if (auth_xform) in test_blockcipher_one_case() [all …]
|
| H A D | test_ipsec_perf.c | 45 struct rte_crypto_sym_xform auth_xform; member 186 sa->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH; in fill_ipsec_param() 187 sa->auth_xform.auth.algo = auth_algo->algo; in fill_ipsec_param() 188 sa->auth_xform.auth.digest_length = auth_algo->digest_len; in fill_ipsec_param() 195 sa->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_VERIFY; in fill_ipsec_param() 197 sa->auth_xform.next = &sa->cipher_xform; in fill_ipsec_param() 198 sa->crypto_xforms = &sa->auth_xform; in fill_ipsec_param() 202 sa->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_GENERATE; in fill_ipsec_param() 203 sa->auth_xform.next = NULL; in fill_ipsec_param() 204 sa->cipher_xform.next = &sa->auth_xform; in fill_ipsec_param()
|
| H A D | test_cryptodev.c | 90 struct rte_crypto_sym_xform auth_xform; member 1687 ut_params->auth_xform.next = NULL; in test_AES_CBC_HMAC_SHA1_encrypt_digest() 2016 ut_params->auth_xform.next = NULL; in create_wireless_algo_hash_session() 2029 &ut_params->auth_xform, in create_wireless_algo_hash_session() 2157 ut_params->auth_xform.next = NULL; in create_wireless_algo_cipher_auth_session() 2220 ut_params->auth_xform.next = NULL; in create_wireless_cipher_auth_session() 2326 &ut_params->auth_xform, in create_wireless_algo_auth_cipher_session() 10863 &ut_params->auth_xform, in create_gmac_session() 11508 &ut_params->auth_xform, in create_auth_session() 11561 &ut_params->auth_xform, in create_auth_cipher_session() [all …]
|
| H A D | test_ipsec.c | 69 struct rte_crypto_sym_xform auth_xform; member 218 ut_params->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH; in fill_crypto_xform() 219 ut_params->auth_xform.auth.algo = auth_algo->algo; in fill_crypto_xform() 225 ut_params->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_VERIFY; in fill_crypto_xform() 227 ut_params->auth_xform.next = &ut_params->cipher_xform; in fill_crypto_xform() 228 ut_params->crypto_xforms = &ut_params->auth_xform; in fill_crypto_xform() 233 ut_params->auth_xform.next = NULL; in fill_crypto_xform() 234 ut_params->cipher_xform.next = &ut_params->auth_xform; in fill_crypto_xform() 248 cap_idx.algo.auth = ut->auth_xform.auth.algo; in check_cryptodev_capability() 253 ut->auth_xform.auth.key.length, in check_cryptodev_capability() [all …]
|
| /f-stack/dpdk/examples/fips_validation/ |
| H A D | main.c | 842 auth_xform->key.length, in prepare_hmac_xform() 846 auth_xform->digest_length); in prepare_hmac_xform() 912 auth_xform->iv.offset = IV_OFF; in prepare_gmac_xform() 929 auth_xform->key.length, in prepare_gmac_xform() 930 auth_xform->digest_length, in prepare_gmac_xform() 936 auth_xform->digest_length, in prepare_gmac_xform() 937 auth_xform->iv.length); in prepare_gmac_xform() 971 auth_xform->key.length, in prepare_cmac_xform() 975 auth_xform->digest_length); in prepare_cmac_xform() 1052 auth_xform->key.length, in prepare_sha_xform() [all …]
|
| H A D | fips_dev_self_test.c | 1064 struct rte_crypto_auth_xform *auth_xform = &xform->auth; in prepare_auth_xform() local 1079 auth_xform->algo = vec->auth.algo; in prepare_auth_xform() 1080 auth_xform->op = (dir == self_test_dir_enc_auth_gen) ? in prepare_auth_xform() 1083 auth_xform->digest_length = vec->digest.len; in prepare_auth_xform() 1084 auth_xform->key.data = key; in prepare_auth_xform() 1085 auth_xform->key.length = vec->key.len; in prepare_auth_xform() 1087 cap_idx.algo.auth = auth_xform->algo; in prepare_auth_xform() 1098 auth_xform->key.length, in prepare_auth_xform() 1099 auth_xform->digest_length, 0) != 0) { in prepare_auth_xform() 1102 auth_xform->key.length, in prepare_auth_xform() [all …]
|
| /f-stack/dpdk/drivers/crypto/mvsam/ |
| H A D | rte_mrvl_pmd.c | 285 const struct rte_crypto_sym_xform *auth_xform) in mrvl_crypto_set_auth_session_parameters() argument 306 auth_map[auth_xform->auth.algo].auth_alg; in mrvl_crypto_set_auth_session_parameters() 308 auth_xform->auth.digest_length; in mrvl_crypto_set_auth_session_parameters() 310 if (auth_xform->auth.key.length > 0) { in mrvl_crypto_set_auth_session_parameters() 317 memcpy(auth_key, auth_xform->auth.key.data, in mrvl_crypto_set_auth_session_parameters() 318 auth_xform->auth.key.length); in mrvl_crypto_set_auth_session_parameters() 421 auth_xform = xform->next; in mrvl_crypto_set_session_parameters() 424 auth_xform = xform; in mrvl_crypto_set_session_parameters() 431 auth_xform = xform; in mrvl_crypto_set_session_parameters() 447 if ((auth_xform != NULL) && in mrvl_crypto_set_session_parameters() [all …]
|
| /f-stack/dpdk/drivers/crypto/ccp/ |
| H A D | ccp_crypto.c | 759 auth_xform = &xform->auth; in ccp_configure_session_auth() 766 switch (auth_xform->algo) { in ccp_configure_session_auth() 776 auth_xform->key.length); in ccp_configure_session_auth() 876 auth_xform->key.length); in ccp_configure_session_auth() 938 auth_xform->key.length); in ccp_configure_session_auth() 1002 auth_xform->key.length); in ccp_configure_session_auth() 1066 auth_xform->key.length); in ccp_configure_session_auth() 1185 auth_xform = xform; in ccp_set_session_parameters() 1189 auth_xform = xform->next; in ccp_set_session_parameters() 1192 auth_xform = xform; in ccp_set_session_parameters() [all …]
|
| /f-stack/dpdk/drivers/crypto/zuc/ |
| H A D | rte_zuc_pmd.c | 57 const struct rte_crypto_sym_xform *auth_xform = NULL; in zuc_set_session_parameters() local 66 auth_xform = xform->next; in zuc_set_session_parameters() 76 auth_xform = xform; in zuc_set_session_parameters() 100 if (auth_xform) { in zuc_set_session_parameters() 102 if (auth_xform->auth.algo != RTE_CRYPTO_AUTH_ZUC_EIA3) in zuc_set_session_parameters() 105 if (auth_xform->auth.digest_length != ZUC_DIGEST_LENGTH) { in zuc_set_session_parameters() 110 sess->auth_op = auth_xform->auth.op; in zuc_set_session_parameters() 112 if (auth_xform->auth.iv.length != ZUC_IV_KEY_LENGTH) { in zuc_set_session_parameters() 116 sess->auth_iv_offset = auth_xform->auth.iv.offset; in zuc_set_session_parameters() 119 memcpy(sess->pKey_hash, auth_xform->auth.key.data, in zuc_set_session_parameters()
|
| /f-stack/dpdk/drivers/crypto/snow3g/ |
| H A D | rte_snow3g_pmd.c | 59 const struct rte_crypto_sym_xform *auth_xform = NULL; in snow3g_set_session_parameters() local 68 auth_xform = xform->next; in snow3g_set_session_parameters() 78 auth_xform = xform; in snow3g_set_session_parameters() 107 if (auth_xform) { in snow3g_set_session_parameters() 109 if (auth_xform->auth.algo != RTE_CRYPTO_AUTH_SNOW3G_UIA2) in snow3g_set_session_parameters() 112 if (auth_xform->auth.digest_length != SNOW3G_DIGEST_LENGTH) { in snow3g_set_session_parameters() 116 if (auth_xform->auth.key.length > SNOW3G_MAX_KEY_SIZE) { in snow3g_set_session_parameters() 121 sess->auth_op = auth_xform->auth.op; in snow3g_set_session_parameters() 123 if (auth_xform->auth.iv.length != SNOW3G_IV_LENGTH) { in snow3g_set_session_parameters() 127 sess->auth_iv_offset = auth_xform->auth.iv.offset; in snow3g_set_session_parameters() [all …]
|
| /f-stack/dpdk/drivers/crypto/armv8/ |
| H A D | rte_armv8_pmd.c | 361 const struct rte_crypto_sym_xform *auth_xform) in armv8_crypto_set_session_chained_parameters() argument 407 sess->auth.operation = auth_xform->auth.op; in armv8_crypto_set_session_chained_parameters() 410 switch (auth_xform->auth.algo) { in armv8_crypto_set_session_chained_parameters() 414 aalg = auth_xform->auth.algo; in armv8_crypto_set_session_chained_parameters() 422 sess->auth.digest_length = auth_xform->auth.digest_length; in armv8_crypto_set_session_chained_parameters() 459 if (auth_set_prerequisites(sess, auth_xform) != 0) in armv8_crypto_set_session_chained_parameters() 471 const struct rte_crypto_sym_xform *auth_xform = NULL; in armv8_crypto_set_session_parameters() local 483 auth_xform = xform->next; in armv8_crypto_set_session_parameters() 487 auth_xform = xform; in armv8_crypto_set_session_parameters() 501 cipher_xform, auth_xform); in armv8_crypto_set_session_parameters()
|
| /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 251 auth_xform = xform->next; in ipsec_sa_const_set() 253 auth_xform = xform; in ipsec_sa_const_set() 265 if (auth_xform->auth.algo == RTE_CRYPTO_AUTH_SHA1_HMAC) in ipsec_sa_const_set() 351 struct rte_crypto_sym_xform *auth_xform, *cipher_xform; in eth_sec_ipsec_out_sess_create() local 406 auth_xform = crypto_xform->next; in eth_sec_ipsec_out_sess_create() 418 auth_key = auth_xform->auth.key.data; in eth_sec_ipsec_out_sess_create() 419 auth_key_len = auth_xform->auth.key.length; in eth_sec_ipsec_out_sess_create() 496 auth_xform = crypto_xform; in eth_sec_ipsec_in_sess_create() 511 auth_key = auth_xform->auth.key.data; in eth_sec_ipsec_in_sess_create() [all …]
|
| /f-stack/dpdk/examples/l2fwd-crypto/ |
| H A D | main.c | 145 struct rte_crypto_sym_xform auth_xform; member 664 first_xform = &options->auth_xform; in initialize_crypto_session() 669 first_xform = &options->auth_xform; in initialize_crypto_session() 763 options->auth_xform.auth.iv.offset = in l2fwd_main_loop() 765 options->auth_xform.auth.iv.length = in l2fwd_main_loop() 1262 options->auth_xform.auth.key.length = in l2fwd_crypto_parse_args_long_options() 1461 options->auth_xform.next = NULL; in l2fwd_crypto_default_options() 1464 options->auth_xform.auth.key.length = 0; in l2fwd_crypto_default_options() 1516 options->auth_xform.auth.key.data, in display_auth_info() 1517 options->auth_xform.auth.key.length); in display_auth_info() [all …]
|
| /f-stack/dpdk/drivers/crypto/kasumi/ |
| H A D | rte_kasumi_pmd.c | 60 const struct rte_crypto_sym_xform *auth_xform = NULL; in kasumi_set_session_parameters() local 69 auth_xform = xform->next; in kasumi_set_session_parameters() 78 auth_xform = xform; in kasumi_set_session_parameters() 104 if (auth_xform) { in kasumi_set_session_parameters() 106 if (auth_xform->auth.algo != RTE_CRYPTO_AUTH_KASUMI_F9) { in kasumi_set_session_parameters() 111 if (auth_xform->auth.digest_length != KASUMI_DIGEST_LENGTH) { in kasumi_set_session_parameters() 116 sess->auth_op = auth_xform->auth.op; in kasumi_set_session_parameters() 119 IMB_KASUMI_INIT_F9_KEY_SCHED(mgr, auth_xform->auth.key.data, in kasumi_set_session_parameters()
|
| /f-stack/dpdk/drivers/crypto/qat/ |
| H A D | qat_sym_session.c | 715 switch (auth_xform->algo) { in qat_sym_session_configure_auth() 786 [auth_xform->algo]); in qat_sym_session_configure_auth() 794 auth_xform->algo); in qat_sym_session_configure_auth() 798 auth_xform->algo); in qat_sym_session_configure_auth() 812 auth_xform->key.data, in qat_sym_session_configure_auth() 813 auth_xform->key.length)) in qat_sym_session_configure_auth() 821 auth_xform->op)) in qat_sym_session_configure_auth() 836 auth_xform->op)) in qat_sym_session_configure_auth() 840 auth_xform->key.data, in qat_sym_session_configure_auth() 841 auth_xform->key.length)) in qat_sym_session_configure_auth() [all …]
|
| /f-stack/dpdk/drivers/crypto/virtio/ |
| H A D | virtio_cryptodev.c | 1169 struct rte_crypto_auth_xform *auth_xform) in virtio_crypto_sym_pad_auth_param() argument 1189 switch (auth_xform->algo) { in virtio_crypto_sym_pad_auth_param() 1196 auth_xform->algo); in virtio_crypto_sym_pad_auth_param() 1253 if (auth_xform) { in virtio_crypto_sym_pad_op_ctrl_req() 1257 if (auth_xform->key.length) { in virtio_crypto_sym_pad_op_ctrl_req() 1258 if (auth_xform->key.length > in virtio_crypto_sym_pad_op_ctrl_req() 1267 (uint32_t)auth_xform->key.length; in virtio_crypto_sym_pad_op_ctrl_req() 1269 auth_xform->digest_length; in virtio_crypto_sym_pad_op_ctrl_req() 1270 memcpy(auth_key_data, auth_xform->key.data, in virtio_crypto_sym_pad_op_ctrl_req() 1271 auth_xform->key.length); in virtio_crypto_sym_pad_op_ctrl_req() [all …]
|
| /f-stack/dpdk/drivers/crypto/dpaa_sec/ |
| H A D | dpaa_sec.c | 2139 auth_xform = &xform->auth; in dpaa_sec_chain_init() 2163 auth_xform->key.length); in dpaa_sec_chain_init() 2168 switch (auth_xform->algo) { in dpaa_sec_chain_init() 2195 auth_xform->algo); in dpaa_sec_chain_init() 2577 if (auth_xform) { in dpaa_sec_ipsec_proto_init() 2579 auth_xform->key.length, in dpaa_sec_ipsec_proto_init() 2582 auth_xform->key.length > 0) { in dpaa_sec_ipsec_proto_init() 2588 auth_xform->key.length); in dpaa_sec_ipsec_proto_init() 2871 auth_xform = &xform->auth; in dpaa_sec_set_pdcp_session() 2933 if (auth_xform) { in dpaa_sec_set_pdcp_session() [all …]
|
| /f-stack/dpdk/drivers/crypto/dpaa2_sec/ |
| H A D | dpaa2_sec_dpseci.c | 2326 auth_xform = &xform->auth; in dpaa2_sec_aead_chain_init() 2368 auth_xform->key.length); in dpaa2_sec_aead_chain_init() 2377 switch (auth_xform->algo) { in dpaa2_sec_aead_chain_init() 2423 auth_xform->algo); in dpaa2_sec_aead_chain_init() 2428 auth_xform->algo); in dpaa2_sec_aead_chain_init() 2704 if (auth_xform) { in dpaa2_sec_ipsec_proto_init() 2706 auth_xform->key.length, in dpaa2_sec_ipsec_proto_init() 2709 auth_xform->key.length > 0) { in dpaa2_sec_ipsec_proto_init() 2715 auth_xform->key.length); in dpaa2_sec_ipsec_proto_init() 3118 auth_xform = &xform->auth; in dpaa2_sec_set_pdcp_session() [all …]
|
| /f-stack/dpdk/drivers/crypto/aesni_gcm/ |
| H A D | aesni_gcm_pmd.c | 49 const struct rte_crypto_sym_xform *auth_xform; in aesni_gcm_set_session_parameters() local 56 auth_xform = xform; in aesni_gcm_set_session_parameters() 57 if (auth_xform->auth.algo != RTE_CRYPTO_AUTH_AES_GMAC) { in aesni_gcm_set_session_parameters() 63 sess->iv.offset = auth_xform->auth.iv.offset; in aesni_gcm_set_session_parameters() 64 sess->iv.length = auth_xform->auth.iv.length; in aesni_gcm_set_session_parameters() 67 if (auth_xform->auth.op == RTE_CRYPTO_AUTH_OP_GENERATE) in aesni_gcm_set_session_parameters() 72 key_length = auth_xform->auth.key.length; in aesni_gcm_set_session_parameters() 73 key = auth_xform->auth.key.data; in aesni_gcm_set_session_parameters() 74 sess->req_digest_length = auth_xform->auth.digest_length; in aesni_gcm_set_session_parameters()
|
| /f-stack/dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_sym.c | 541 struct rte_crypto_auth_xform *auth_xform = NULL; in nitrox_sym_dev_sess_configure() local 558 auth_xform = &xform->next->auth; in nitrox_sym_dev_sess_configure() 561 auth_xform = &xform->auth; in nitrox_sym_dev_sess_configure() 578 if (auth_xform && unlikely(configure_auth_ctx(auth_xform, ctx))) { in nitrox_sym_dev_sess_configure()
|