Home
last modified time | relevance | path

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

12

/dpdk/app/test-crypto-perf/
H A Dcperf_ops.c698 auth_xform.next = NULL; in create_ipsec_session()
706 auth_xform.auth.key.length = in create_ipsec_session()
714 auth_xform.auth.iv.length = 0; in create_ipsec_session()
717 xform.next = &auth_xform; in create_ipsec_session()
829 auth_xform.next = NULL; in cperf_create_session()
958 auth_xform.next = NULL; in cperf_create_session()
967 auth_xform.auth.key.length = in cperf_create_session()
970 auth_xform.auth.iv.length = in cperf_create_session()
1013 auth_xform.next = NULL; in cperf_create_session()
1023 auth_xform.auth.key.length = in cperf_create_session()
[all …]
/dpdk/drivers/crypto/bcmfs/
H A Dbcmfs_sym_session.c76 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 …]
/dpdk/drivers/crypto/cnxk/
H A Dcnxk_ipsec.h105 struct rte_crypto_sym_xform *auth_xform, *cipher_xform; in cnxk_ipsec_xform_verify() local
131 auth_xform = crypto_xform; in cnxk_ipsec_xform_verify()
146 auth_xform = crypto_xform->next; in cnxk_ipsec_xform_verify()
148 if (auth_xform == NULL || in cnxk_ipsec_xform_verify()
154 auth_xform = crypto_xform; in cnxk_ipsec_xform_verify()
169 auth_xform = crypto_xform; in cnxk_ipsec_xform_verify()
178 auth_xform = crypto_xform->next; in cnxk_ipsec_xform_verify()
186 return ipsec_xform_auth_verify(auth_xform); in cnxk_ipsec_xform_verify()
H A Dcn9k_ipsec.c124 auth_xform = crypto_xform; in ipsec_sa_ctl_set()
128 auth_xform = crypto_xform->next; in ipsec_sa_ctl_set()
190 switch (auth_xform->auth.algo) { in ipsec_sa_ctl_set()
284 auth_xform = crypto_xform; in fill_ipsec_common_sa()
288 auth_xform = crypto_xform->next; in fill_ipsec_common_sa()
357 auth_xform = crypto_xform; in cn9k_ipsec_outb_sa_create()
359 auth_xform = crypto_xform->next; in cn9k_ipsec_outb_sa_create()
465 switch (auth_xform->auth.algo) { in cn9k_ipsec_outb_sa_create()
482 auth_xform->auth.algo); in cn9k_ipsec_outb_sa_create()
578 switch (auth_xform->auth.algo) { in cn9k_ipsec_inb_sa_create()
[all …]
/dpdk/examples/fips_validation/
H A Dmain.c857 auth_xform->key.length, in prepare_hmac_xform()
861 auth_xform->digest_length); in prepare_hmac_xform()
927 auth_xform->iv.offset = IV_OFF; in prepare_gmac_xform()
944 auth_xform->key.length, in prepare_gmac_xform()
945 auth_xform->digest_length, in prepare_gmac_xform()
951 auth_xform->digest_length, in prepare_gmac_xform()
952 auth_xform->iv.length); in prepare_gmac_xform()
986 auth_xform->key.length, in prepare_cmac_xform()
990 auth_xform->digest_length); in prepare_cmac_xform()
1067 auth_xform->key.length, in prepare_sha_xform()
[all …]
H A Dfips_dev_self_test.c1064 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 …]
/dpdk/app/test/
H A Dtest_cryptodev_blockcipher.c393 auth_xform->next = NULL; in test_blockcipher_one_case()
396 auth_xform->next = NULL; in test_blockcipher_one_case()
401 auth_xform = op->sym->xform; in test_blockcipher_one_case()
407 init_xform = auth_xform; in test_blockcipher_one_case()
411 auth_xform = op->sym->xform; in test_blockcipher_one_case()
417 init_xform = auth_xform; in test_blockcipher_one_case()
423 auth_xform->next = NULL; in test_blockcipher_one_case()
426 auth_xform->next = NULL; in test_blockcipher_one_case()
441 init_xform = auth_xform; in test_blockcipher_one_case()
442 auth_xform->next = NULL; in test_blockcipher_one_case()
[all …]
H A Dtest_ipsec_perf.c57 struct rte_crypto_sym_xform auth_xform; member
198 sa->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH; in fill_ipsec_param()
199 sa->auth_xform.auth.algo = auth_algo->algo; in fill_ipsec_param()
200 sa->auth_xform.auth.digest_length = auth_algo->digest_len; in fill_ipsec_param()
207 sa->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_VERIFY; in fill_ipsec_param()
209 sa->auth_xform.next = &sa->cipher_xform; in fill_ipsec_param()
210 sa->crypto_xforms = &sa->auth_xform; in fill_ipsec_param()
214 sa->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_GENERATE; in fill_ipsec_param()
215 sa->auth_xform.next = NULL; in fill_ipsec_param()
216 sa->cipher_xform.next = &sa->auth_xform; in fill_ipsec_param()
H A Dtest_cryptodev.c79 struct rte_crypto_sym_xform auth_xform; member
2187 ut_params->auth_xform.next = NULL; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2447 ut_params->auth_xform.next = NULL; in create_wireless_algo_hash_session()
2460 &ut_params->auth_xform, in create_wireless_algo_hash_session()
2594 ut_params->auth_xform.next = NULL; in create_wireless_algo_cipher_auth_session()
2657 ut_params->auth_xform.next = NULL; in create_wireless_cipher_auth_session()
2763 &ut_params->auth_xform, in create_wireless_algo_auth_cipher_session()
12780 &ut_params->auth_xform, in create_gmac_session()
13431 &ut_params->auth_xform, in create_auth_session()
13484 &ut_params->auth_xform, in create_auth_cipher_session()
[all …]
H A Dtest_ipsec.c79 struct rte_crypto_sym_xform auth_xform; member
228 ut_params->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH; in fill_crypto_xform()
229 ut_params->auth_xform.auth.algo = auth_algo->algo; in fill_crypto_xform()
235 ut_params->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_VERIFY; in fill_crypto_xform()
237 ut_params->auth_xform.next = &ut_params->cipher_xform; in fill_crypto_xform()
238 ut_params->crypto_xforms = &ut_params->auth_xform; in fill_crypto_xform()
243 ut_params->auth_xform.next = NULL; in fill_crypto_xform()
244 ut_params->cipher_xform.next = &ut_params->auth_xform; in fill_crypto_xform()
258 cap_idx.algo.auth = ut->auth_xform.auth.algo; in check_cryptodev_capability()
263 ut->auth_xform.auth.key.length, in check_cryptodev_capability()
[all …]
/dpdk/drivers/crypto/ipsec_mb/
H A Dipsec_mb_private.h190 const struct rte_crypto_sym_xform **auth_xform, in ipsec_mb_parse_xform() argument
206 *auth_xform = NULL; in ipsec_mb_parse_xform()
211 *auth_xform = NULL; in ipsec_mb_parse_xform()
228 *auth_xform = xform->next; in ipsec_mb_parse_xform()
238 *auth_xform = xform->next; 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()
H A Dpmd_zuc.c13 const struct rte_crypto_sym_xform *auth_xform = NULL; in zuc_session_configure() local
17 int ret = ipsec_mb_parse_xform(xform, &mode, &auth_xform, in zuc_session_configure()
39 if (auth_xform) { in zuc_session_configure()
41 if (auth_xform->auth.algo != RTE_CRYPTO_AUTH_ZUC_EIA3) in zuc_session_configure()
44 if (auth_xform->auth.digest_length != ZUC_DIGEST_LENGTH) { in zuc_session_configure()
49 sess->auth_op = auth_xform->auth.op; in zuc_session_configure()
51 if (auth_xform->auth.iv.length != ZUC_IV_KEY_LENGTH) { in zuc_session_configure()
55 sess->auth_iv_offset = auth_xform->auth.iv.offset; in zuc_session_configure()
58 memcpy(sess->pKey_hash, auth_xform->auth.key.data, in zuc_session_configure()
H A Dpmd_snow3g.c13 const struct rte_crypto_sym_xform *auth_xform = NULL; in snow3g_session_configure() local
18 int ret = ipsec_mb_parse_xform(xform, &mode, &auth_xform, in snow3g_session_configure()
44 if (auth_xform) { in snow3g_session_configure()
46 if (auth_xform->auth.algo != RTE_CRYPTO_AUTH_SNOW3G_UIA2) in snow3g_session_configure()
49 if (auth_xform->auth.digest_length != SNOW3G_DIGEST_LENGTH) { in snow3g_session_configure()
53 if (auth_xform->auth.key.length > SNOW3G_MAX_KEY_SIZE) { in snow3g_session_configure()
58 sess->auth_op = auth_xform->auth.op; in snow3g_session_configure()
60 if (auth_xform->auth.iv.length != SNOW3G_IV_LENGTH) { in snow3g_session_configure()
64 sess->auth_iv_offset = auth_xform->auth.iv.offset; in snow3g_session_configure()
67 IMB_SNOW3G_INIT_KEY_SCHED(mgr, auth_xform->auth.key.data, in snow3g_session_configure()
H A Dpmd_kasumi.c19 const struct rte_crypto_sym_xform *auth_xform = NULL; in kasumi_session_configure() local
24 int ret = ipsec_mb_parse_xform(xform, &mode, &auth_xform, in kasumi_session_configure()
49 if (auth_xform) { in kasumi_session_configure()
51 if (auth_xform->auth.algo != RTE_CRYPTO_AUTH_KASUMI_F9) { in kasumi_session_configure()
56 if (auth_xform->auth.digest_length != KASUMI_DIGEST_LENGTH) { in kasumi_session_configure()
61 sess->auth_op = auth_xform->auth.op; in kasumi_session_configure()
64 IMB_KASUMI_INIT_F9_KEY_SCHED(mgr, auth_xform->auth.key.data, in kasumi_session_configure()
H A Dpmd_aesni_gcm.c64 const struct rte_crypto_sym_xform *auth_xform; in aesni_gcm_session_configure() local
73 ret = ipsec_mb_parse_xform(xform, &mode, &auth_xform, in aesni_gcm_session_configure()
88 if (auth_xform->auth.algo != RTE_CRYPTO_AUTH_AES_GMAC) { in aesni_gcm_session_configure()
95 sess->iv.offset = auth_xform->auth.iv.offset; in aesni_gcm_session_configure()
96 sess->iv.length = auth_xform->auth.iv.length; in aesni_gcm_session_configure()
97 key_length = auth_xform->auth.key.length; in aesni_gcm_session_configure()
98 key = auth_xform->auth.key.data; in aesni_gcm_session_configure()
100 RTE_MIN(auth_xform->auth.digest_length, in aesni_gcm_session_configure()
/dpdk/drivers/crypto/ccp/
H A Dccp_crypto.c766 auth_xform = &xform->auth; in ccp_configure_session_auth()
773 switch (auth_xform->algo) { in ccp_configure_session_auth()
783 auth_xform->key.length); in ccp_configure_session_auth()
885 auth_xform->key.length); in ccp_configure_session_auth()
948 auth_xform->key.length); in ccp_configure_session_auth()
1013 auth_xform->key.length); in ccp_configure_session_auth()
1078 auth_xform->key.length); in ccp_configure_session_auth()
1202 auth_xform = xform; in ccp_set_session_parameters()
1206 auth_xform = xform->next; in ccp_set_session_parameters()
1209 auth_xform = xform; in ccp_set_session_parameters()
[all …]
/dpdk/drivers/crypto/mvsam/
H A Drte_mrvl_pmd.c286 const struct rte_crypto_sym_xform *auth_xform) in mrvl_crypto_set_auth_session_parameters() argument
307 auth_map[auth_xform->auth.algo].auth_alg; in mrvl_crypto_set_auth_session_parameters()
309 auth_xform->auth.digest_length; in mrvl_crypto_set_auth_session_parameters()
311 if (auth_xform->auth.key.length > 0) { in mrvl_crypto_set_auth_session_parameters()
318 memcpy(auth_key, auth_xform->auth.key.data, in mrvl_crypto_set_auth_session_parameters()
319 auth_xform->auth.key.length); in mrvl_crypto_set_auth_session_parameters()
430 auth_xform = xform->next; in mrvl_crypto_set_session_parameters()
433 auth_xform = xform; in mrvl_crypto_set_session_parameters()
440 auth_xform = xform; in mrvl_crypto_set_session_parameters()
456 if ((auth_xform != NULL) && in mrvl_crypto_set_session_parameters()
[all …]
/dpdk/drivers/crypto/armv8/
H A Drte_armv8_pmd.c361 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()
/dpdk/examples/l2fwd-crypto/
H A Dmain.c144 struct rte_crypto_sym_xform auth_xform; member
688 first_xform = &options->auth_xform; in initialize_crypto_session()
693 first_xform = &options->auth_xform; in initialize_crypto_session()
788 options->auth_xform.auth.iv.offset = in l2fwd_main_loop()
790 options->auth_xform.auth.iv.length = in l2fwd_main_loop()
1303 options->auth_xform.auth.key.length = in l2fwd_crypto_parse_args_long_options()
1504 options->auth_xform.next = NULL; in l2fwd_crypto_default_options()
1507 options->auth_xform.auth.key.length = 0; in l2fwd_crypto_default_options()
1559 options->auth_xform.auth.key.data, in display_auth_info()
1560 options->auth_xform.auth.key.length); in display_auth_info()
[all …]
/dpdk/drivers/crypto/qat/
H A Dqat_sym_session.c644 switch (auth_xform->algo) { in qat_sym_session_configure_auth()
720 [auth_xform->algo]); in qat_sym_session_configure_auth()
728 auth_xform->algo); in qat_sym_session_configure_auth()
732 auth_xform->algo); in qat_sym_session_configure_auth()
746 auth_xform->key.data, in qat_sym_session_configure_auth()
747 auth_xform->key.length)) in qat_sym_session_configure_auth()
755 auth_xform->op)) in qat_sym_session_configure_auth()
770 auth_xform->op)) in qat_sym_session_configure_auth()
774 auth_xform->key.data, in qat_sym_session_configure_auth()
775 auth_xform->key.length)) in qat_sym_session_configure_auth()
[all …]
/dpdk/drivers/crypto/virtio/
H A Dvirtio_cryptodev.c1171 struct rte_crypto_auth_xform *auth_xform) in virtio_crypto_sym_pad_auth_param() argument
1191 switch (auth_xform->algo) { in virtio_crypto_sym_pad_auth_param()
1198 auth_xform->algo); in virtio_crypto_sym_pad_auth_param()
1255 if (auth_xform) { in virtio_crypto_sym_pad_op_ctrl_req()
1259 if (auth_xform->key.length) { in virtio_crypto_sym_pad_op_ctrl_req()
1260 if (auth_xform->key.length > in virtio_crypto_sym_pad_op_ctrl_req()
1269 (uint32_t)auth_xform->key.length; in virtio_crypto_sym_pad_op_ctrl_req()
1271 auth_xform->digest_length; in virtio_crypto_sym_pad_op_ctrl_req()
1272 memcpy(auth_key_data, auth_xform->key.data, in virtio_crypto_sym_pad_op_ctrl_req()
1273 auth_xform->key.length); in virtio_crypto_sym_pad_op_ctrl_req()
[all …]
/dpdk/drivers/crypto/dpaa_sec/
H A Ddpaa_sec.c2377 auth_xform = &xform->auth; in dpaa_sec_chain_init()
2401 auth_xform->key.length); in dpaa_sec_chain_init()
2406 switch (auth_xform->algo) { in dpaa_sec_chain_init()
2441 auth_xform->algo); in dpaa_sec_chain_init()
2827 if (auth_xform) { in dpaa_sec_ipsec_proto_init()
2829 auth_xform->key.length, in dpaa_sec_ipsec_proto_init()
2832 auth_xform->key.length > 0) { in dpaa_sec_ipsec_proto_init()
2838 auth_xform->key.length); in dpaa_sec_ipsec_proto_init()
3138 auth_xform = &xform->auth; in dpaa_sec_set_pdcp_session()
3201 if (auth_xform) { in dpaa_sec_set_pdcp_session()
[all …]
/dpdk/drivers/crypto/dpaa2_sec/
H A Ddpaa2_sec_dpseci.c2642 auth_xform = &xform->auth; in dpaa2_sec_aead_chain_init()
2683 auth_xform->key.length); in dpaa2_sec_aead_chain_init()
2692 switch (auth_xform->algo) { in dpaa2_sec_aead_chain_init()
2746 auth_xform->algo); in dpaa2_sec_aead_chain_init()
2751 auth_xform->algo); in dpaa2_sec_aead_chain_init()
3026 if (auth_xform) { in dpaa2_sec_ipsec_proto_init()
3028 auth_xform->key.length, in dpaa2_sec_ipsec_proto_init()
3031 auth_xform->key.length > 0) { in dpaa2_sec_ipsec_proto_init()
3037 auth_xform->key.length); in dpaa2_sec_ipsec_proto_init()
3444 auth_xform = &xform->auth; in dpaa2_sec_set_pdcp_session()
[all …]
/dpdk/drivers/crypto/nitrox/
H A Dnitrox_sym.c541 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()
/dpdk/drivers/crypto/caam_jr/
H A Dcaam_jr.c1753 struct rte_crypto_auth_xform *auth_xform; in caam_jr_set_ipsec_session() local
1767 auth_xform = &conf->crypto_xform->next->auth; in caam_jr_set_ipsec_session()
1769 auth_xform = &conf->crypto_xform->auth; in caam_jr_set_ipsec_session()
1784 auth_xform->key.length, in caam_jr_set_ipsec_session()
1787 auth_xform->key.length > 0) { in caam_jr_set_ipsec_session()
1792 session->auth_key.length = auth_xform->key.length; in caam_jr_set_ipsec_session()
1795 memcpy(session->auth_key.data, auth_xform->key.data, in caam_jr_set_ipsec_session()
1796 auth_xform->key.length); in caam_jr_set_ipsec_session()
1798 switch (auth_xform->algo) { in caam_jr_set_ipsec_session()
1834 auth_xform->algo); in caam_jr_set_ipsec_session()
[all …]

12