| /f-stack/dpdk/drivers/crypto/octeontx2/ |
| H A D | otx2_ipsec_fp.h | 163 switch (xform->cipher.key.length) { in ipsec_fp_xform_cipher_verify() 203 switch (xform->aead.key.length) { in ipsec_fp_xform_aead_verify() 227 if (xform->next == NULL) in ipsec_fp_xform_verify() 235 auth_xform = xform; in ipsec_fp_xform_verify() 236 cipher_xform = xform->next; in ipsec_fp_xform_verify() 242 cipher_xform = xform; in ipsec_fp_xform_verify() 243 auth_xform = xform->next; in ipsec_fp_xform_verify() 267 cipher_xform = xform; in ipsec_fp_sa_ctl_set() 268 auth_xform = xform->next; in ipsec_fp_sa_ctl_set() 271 auth_xform = xform; in ipsec_fp_sa_ctl_set() [all …]
|
| H A D | otx2_ipsec_po.h | 199 switch (xform->cipher.key.length) { in ipsec_po_xform_cipher_verify() 239 switch (xform->aead.key.length) { in ipsec_po_xform_aead_verify() 263 if (xform->next == NULL) in ipsec_po_xform_verify() 271 auth_xform = xform; in ipsec_po_xform_verify() 272 cipher_xform = xform->next; in ipsec_po_xform_verify() 278 cipher_xform = xform; in ipsec_po_xform_verify() 279 auth_xform = xform->next; in ipsec_po_xform_verify() 303 cipher_xform = xform; in ipsec_po_sa_ctl_set() 304 auth_xform = xform->next; in ipsec_po_sa_ctl_set() 307 auth_xform = xform; in ipsec_po_sa_ctl_set() [all …]
|
| H A D | otx2_cryptodev_ops.c | 320 if (xform->next) { in sym_xform_verify() 321 if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH && in sym_xform_verify() 363 ret = sym_xform_verify(xform); in sym_session_configure() 377 for ( ; xform != NULL; xform = xform->next) { in sym_session_configure() 378 switch (xform->type) { in sym_session_configure() 380 ret = fill_sess_aead(xform, misc); in sym_session_configure() 383 ret = fill_sess_cipher(xform, misc); in sym_session_configure() 387 ret = fill_sess_gmac(xform, misc); in sym_session_configure() 389 ret = fill_sess_auth(xform, misc); in sym_session_configure() 1239 struct rte_crypto_sym_xform *xform, in otx2_cpt_sym_session_configure() argument [all …]
|
| /f-stack/dpdk/drivers/crypto/qat/ |
| H A D | qat_asym.c | 304 xform->rsa.e.length in qat_asym_fill_arrays() 305 , xform->rsa.e.data, in qat_asym_fill_arrays() 306 xform->rsa.e.length); in qat_asym_fill_arrays() 309 xform->rsa.n.length, in qat_asym_fill_arrays() 310 xform->rsa.n.data, in qat_asym_fill_arrays() 311 xform->rsa.n.length); in qat_asym_fill_arrays() 427 xform->rsa.d.length, in qat_asym_fill_arrays() 428 xform->rsa.d.data, in qat_asym_fill_arrays() 433 xform->rsa.n.data, in qat_asym_fill_arrays() 492 op->asym->xform); in qat_asym_build_request() [all …]
|
| H A D | qat_sym_session.c | 174 if (xform->type == RTE_CRYPTO_SYM_XFORM_CIPHER && xform->next == NULL) in qat_get_cmd_id() 178 if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH && xform->next == NULL) in qat_get_cmd_id() 221 return &xform->auth; in qat_get_auth_xform() 223 xform = xform->next; in qat_get_auth_xform() 224 } while (xform); in qat_get_auth_xform() 236 xform = xform->next; in qat_get_cipher_xform() 237 } while (xform); in qat_get_cipher_xform() 583 xform, session); in qat_sym_session_set_parameters() 587 xform, session); in qat_sym_session_set_parameters() 602 xform, session); in qat_sym_session_set_parameters() [all …]
|
| H A D | qat_sym_session.h | 98 struct rte_crypto_sym_xform *xform, 104 struct rte_crypto_sym_xform *xform, void *session_private); 108 struct rte_crypto_sym_xform *xform, 113 struct rte_crypto_sym_xform *xform, 118 struct rte_crypto_sym_xform *xform,
|
| /f-stack/dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_sym_session.c | 21 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 …]
|
| /f-stack/dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_sym.c | 272 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 …]
|
| /f-stack/dpdk/drivers/crypto/null/ |
| H A D | null_crypto_pmd.c | 18 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 …]
|
| /f-stack/dpdk/drivers/crypto/aesni_mb/ |
| H A D | rte_aesni_mb_pmd.c | 79 if (xform == NULL) in aesni_mb_get_chain_order() 83 if (xform->next == NULL) in aesni_mb_get_chain_order() 90 if (xform->next == NULL) in aesni_mb_get_chain_order() 151 if (xform == NULL) { in aesni_mb_set_session_auth_parameters() 440 if (xform == NULL) { in aesni_mb_set_session_cipher_parameters() 783 auth_xform = xform; in aesni_mb_set_session_parameters() 789 cipher_xform = xform; in aesni_mb_set_session_parameters() 793 auth_xform = xform; in aesni_mb_set_session_parameters() 813 aead_xform = xform; in aesni_mb_set_session_parameters() 818 aead_xform = xform; in aesni_mb_set_session_parameters() [all …]
|
| /f-stack/dpdk/drivers/crypto/openssl/ |
| H A D | rte_openssl_pmd_ops.c | 845 xform->rsa.d.length, in openssl_set_asym_session_parameters() 983 xform->dh.p.data, in openssl_set_asym_session_parameters() 984 xform->dh.p.length, in openssl_set_asym_session_parameters() 987 xform->dh.g.data, in openssl_set_asym_session_parameters() 988 xform->dh.g.length, in openssl_set_asym_session_parameters() 1013 if (xform->dh.type == in openssl_set_asym_session_parameters() 1049 xform->dsa.p.data, in openssl_set_asym_session_parameters() 1054 xform->dsa.g.data, in openssl_set_asym_session_parameters() 1059 xform->dsa.q.data, in openssl_set_asym_session_parameters() 1066 xform->dsa.x.data, in openssl_set_asym_session_parameters() [all …]
|
| H A D | rte_openssl_pmd.c | 72 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 …]
|
| /f-stack/dpdk/drivers/crypto/armv8/ |
| H A D | rte_armv8_pmd.c | 214 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 …]
|
| /f-stack/dpdk/drivers/crypto/octeontx/ |
| H A D | otx_cryptodev_ops.c | 205 if (xform->next) { in sym_xform_verify() 206 if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH && in sym_xform_verify() 222 if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH && in sym_xform_verify() 248 ret = sym_xform_verify(xform); in sym_session_configure() 262 for ( ; xform != NULL; xform = xform->next) { in sym_session_configure() 263 switch (xform->type) { in sym_session_configure() 265 ret = fill_sess_aead(xform, misc); in sym_session_configure() 268 ret = fill_sess_cipher(xform, misc); in sym_session_configure() 272 ret = fill_sess_gmac(xform, misc); in sym_session_configure() 274 ret = fill_sess_auth(xform, misc); in sym_session_configure() [all …]
|
| /f-stack/dpdk/lib/librte_cryptodev/ |
| H A D | rte_crypto_sym.h | 599 struct rte_crypto_sym_xform *xform; member 881 struct rte_crypto_sym_xform *xform; in __rte_crypto_sym_op_sym_xforms_alloc() local 883 sym_op->xform = xform = (struct rte_crypto_sym_xform *)priv_data; in __rte_crypto_sym_op_sym_xforms_alloc() 886 xform->type = RTE_CRYPTO_SYM_XFORM_NOT_SPECIFIED; in __rte_crypto_sym_op_sym_xforms_alloc() 887 xform = xform->next = --nb_xforms > 0 ? xform + 1 : NULL; in __rte_crypto_sym_op_sym_xforms_alloc() 888 } while (xform); in __rte_crypto_sym_op_sym_xforms_alloc() 890 return sym_op->xform; in __rte_crypto_sym_op_sym_xforms_alloc()
|
| /f-stack/dpdk/drivers/crypto/zuc/ |
| H A D | rte_zuc_pmd.c | 23 if (xform == NULL) in zuc_get_mode() 26 if (xform->next) in zuc_get_mode() 27 if (xform->next->next != NULL) in zuc_get_mode() 31 if (xform->next == NULL) in zuc_get_mode() 40 if (xform->next == NULL) in zuc_get_mode() 62 mode = zuc_get_mode(xform); in zuc_set_session_parameters() 66 auth_xform = xform->next; in zuc_set_session_parameters() 70 cipher_xform = xform; in zuc_set_session_parameters() 73 cipher_xform = xform->next; in zuc_set_session_parameters() 76 auth_xform = xform; in zuc_set_session_parameters() [all …]
|
| /f-stack/dpdk/drivers/crypto/virtio/ |
| H A D | virtio_cryptodev.c | 42 struct rte_crypto_sym_xform *xform, 1083 return &xform->cipher; in virtio_crypto_get_cipher_xform() 1085 xform = xform->next; in virtio_crypto_get_cipher_xform() 1086 } while (xform); in virtio_crypto_get_cipher_xform() 1096 return &xform->auth; in virtio_crypto_get_auth_xform() 1098 xform = xform->next; in virtio_crypto_get_auth_xform() 1099 } while (xform); in virtio_crypto_get_auth_xform() 1108 if (xform == NULL) in virtio_crypto_get_chain_order() 1113 xform->next == NULL) in virtio_crypto_get_chain_order() 1118 xform->next == NULL) in virtio_crypto_get_chain_order() [all …]
|
| /f-stack/dpdk/drivers/crypto/kasumi/ |
| H A D | rte_kasumi_pmd.c | 26 if (xform == NULL) in kasumi_get_mode() 29 if (xform->next) in kasumi_get_mode() 30 if (xform->next->next != NULL) in kasumi_get_mode() 34 if (xform->next == NULL) in kasumi_get_mode() 43 if (xform->next == NULL) in kasumi_get_mode() 65 mode = kasumi_get_mode(xform); in kasumi_set_session_parameters() 69 auth_xform = xform->next; in kasumi_set_session_parameters() 72 cipher_xform = xform; in kasumi_set_session_parameters() 75 cipher_xform = xform->next; in kasumi_set_session_parameters() 78 auth_xform = xform; in kasumi_set_session_parameters() [all …]
|
| /f-stack/dpdk/drivers/crypto/mvsam/ |
| H A D | rte_mrvl_pmd.c | 190 if (xform->next != NULL && xform->next->next != NULL) in mrvl_crypto_get_chain_order() 193 if (xform->next != NULL) { in mrvl_crypto_get_chain_order() 407 const struct rte_crypto_sym_xform *xform) in mrvl_crypto_set_session_parameters() argument 414 if (xform == NULL) in mrvl_crypto_set_session_parameters() 420 cipher_xform = xform; in mrvl_crypto_set_session_parameters() 421 auth_xform = xform->next; in mrvl_crypto_set_session_parameters() 424 auth_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() 431 auth_xform = xform; in mrvl_crypto_set_session_parameters() [all …]
|
| /f-stack/dpdk/drivers/crypto/snow3g/ |
| H A D | rte_snow3g_pmd.c | 25 if (xform == NULL) in snow3g_get_mode() 28 if (xform->next) in snow3g_get_mode() 29 if (xform->next->next != NULL) in snow3g_get_mode() 33 if (xform->next == NULL) in snow3g_get_mode() 42 if (xform->next == NULL) in snow3g_get_mode() 64 mode = snow3g_get_mode(xform); in snow3g_set_session_parameters() 68 auth_xform = xform->next; in snow3g_set_session_parameters() 72 cipher_xform = xform; in snow3g_set_session_parameters() 75 cipher_xform = xform->next; in snow3g_set_session_parameters() 78 auth_xform = xform; in snow3g_set_session_parameters() [all …]
|
| /f-stack/dpdk/drivers/compress/isal/ |
| H A D | isal_compress_pmd.c | 31 const struct rte_comp_xform *xform) in isal_comp_set_priv_xform_parameters() argument 33 if (xform == NULL) in isal_comp_set_priv_xform_parameters() 37 if (xform->type == RTE_COMP_COMPRESS) { in isal_comp_set_priv_xform_parameters() 42 if (xform->compress.algo != RTE_COMP_ALGO_DEFLATE) { in isal_comp_set_priv_xform_parameters() 43 if (xform->compress.algo == RTE_COMP_ALGO_NULL) { in isal_comp_set_priv_xform_parameters() 62 switch (xform->compress.deflate.huffman) { in isal_comp_set_priv_xform_parameters() 81 switch (xform->compress.chksum) { in isal_comp_set_priv_xform_parameters() 106 xform->compress.level > RTE_COMP_LEVEL_MAX) { in isal_comp_set_priv_xform_parameters() 127 switch (xform->compress.level) { in isal_comp_set_priv_xform_parameters() 179 else if (xform->type == RTE_COMP_DECOMPRESS) { in isal_comp_set_priv_xform_parameters() [all …]
|
| /f-stack/dpdk/drivers/compress/zlib/ |
| H A D | zlib_pmd.c | 220 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()
|
| /f-stack/dpdk/drivers/crypto/caam_jr/ |
| H A D | caam_jr.c | 1552 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 …]
|
| /f-stack/dpdk/drivers/crypto/dpaa_sec/ |
| H A D | dpaa_sec.c | 2026 switch (xform->cipher.algo) { in dpaa_sec_cipher_init() 2047 xform->cipher.algo); in dpaa_sec_cipher_init() 2079 switch (xform->auth.algo) { in dpaa_sec_auth_init() 2114 xform->auth.algo); in dpaa_sec_auth_init() 2139 auth_xform = &xform->auth; in dpaa_sec_chain_init() 2355 if (xform->type == RTE_CRYPTO_SYM_XFORM_CIPHER && xform->next == NULL) { in dpaa_sec_set_session_parameters() 2361 xform->next == NULL) { in dpaa_sec_set_session_parameters() 2400 xform->next == NULL) { in dpaa_sec_set_session_parameters() 2868 if (xform->next != NULL) in dpaa_sec_set_pdcp_session() 2871 auth_xform = &xform->auth; in dpaa_sec_set_pdcp_session() [all …]
|
| /f-stack/dpdk/drivers/compress/qat/ |
| H A D | qat_comp.c | 815 const struct rte_comp_xform *xform, in qat_comp_create_templates() argument 852 else if (xform->compress.level == 1) in qat_comp_create_templates() 854 else if (xform->compress.level == 2) in qat_comp_create_templates() 856 else if (xform->compress.level == 3) in qat_comp_create_templates() 858 else if (xform->compress.level >= 4 && in qat_comp_create_templates() 859 xform->compress.level <= 9) in qat_comp_create_templates() 871 switch (xform->compress.algo) { in qat_comp_create_templates() 989 const struct rte_comp_xform *xform, in qat_comp_private_xform_create() argument 1010 if (xform->type == RTE_COMP_COMPRESS) { in qat_comp_private_xform_create() 1020 xform->compress.deflate.huffman == in qat_comp_private_xform_create() [all …]
|