Home
last modified time | relevance | path

Searched refs:modex (Results 1 – 16 of 16) sorted by relevance

/dpdk/drivers/common/qat/qat_adf/
H A Dqat_pke.h65 if (xform->modex.modulus.length <= 16) { in get_modinv_function()
68 } else if (xform->modex.modulus.length <= 24) { in get_modinv_function()
71 } else if (xform->modex.modulus.length <= 32) { in get_modinv_function()
74 } else if (xform->modex.modulus.length <= 48) { in get_modinv_function()
77 } else if (xform->modex.modulus.length <= 64) { in get_modinv_function()
80 } else if (xform->modex.modulus.length <= 96) { in get_modinv_function()
100 if (xform->modex.modulus.length <= 16) { in get_modinv_function()
103 } else if (xform->modex.modulus.length <= 24) { in get_modinv_function()
106 } else if (xform->modex.modulus.length <= 32) { in get_modinv_function()
109 } else if (xform->modex.modulus.length <= 48) { in get_modinv_function()
[all …]
/dpdk/drivers/crypto/qat/
H A Dqat_asym.c218 if (asym_op->modex.base.length > xform->modex.exponent.length && in modexp_set_input()
219 asym_op->modex.base.length > xform->modex.modulus.length) { in modexp_set_input()
221 } else if (xform->modex.exponent.length > xform->modex.modulus.length) in modexp_set_input()
966 qat_session->xform.modex.modulus.length = xform->modex.modulus.length; in session_set_modexp()
973 qat_session->xform.modex.exponent.length = xform->modex.exponent.length; in session_set_modexp()
976 xform->modex.modulus.length); in session_set_modexp()
978 xform->modex.exponent.length); in session_set_modexp()
1178 memset(modex->modulus.data, 0, modex->modulus.length); in session_clear_modexp()
1179 rte_free(modex->modulus.data); in session_clear_modexp()
1180 memset(modex->exponent.data, 0, modex->exponent.length); in session_clear_modexp()
[all …]
/dpdk/app/test/
H A Dtest_cryptodev_asym.c54 struct modex_test_data modex; member
352 xform_tc.modex.modulus.data = data_tc->modex.modulus.data; in test_cryptodev_asym_op()
353 xform_tc.modex.modulus.length = data_tc->modex.modulus.len; in test_cryptodev_asym_op()
354 xform_tc.modex.exponent.data = data_tc->modex.exponent.data; in test_cryptodev_asym_op()
355 xform_tc.modex.exponent.length = data_tc->modex.exponent.len; in test_cryptodev_asym_op()
357 data_tc->modex.base.len); in test_cryptodev_asym_op()
358 asym_op->modex.base.data = input; in test_cryptodev_asym_op()
359 asym_op->modex.base.length = data_tc->modex.base.len; in test_cryptodev_asym_op()
361 asym_op->modex.result.length = data_tc->modex.result_len; in test_cryptodev_asym_op()
533 tc.modex.description, test_msg); in test_one_case()
[all …]
H A Dtest_cryptodev_asym_util.h32 if (memcmp(mod_exp, result_op->asym->modex.result.data, in verify_modexp()
33 result_op->asym->modex.result.length)) in verify_modexp()
H A Dtest_cryptodev_mod_test_vectors.h1050 .modex = {
/dpdk/app/test-crypto-perf/
H A Dcperf_test_vectors.c657 t_vec->modex.mod = options->modex_data->modulus.data; in cperf_test_vector_get_dummy()
658 t_vec->modex.exp = options->modex_data->exponent.data; in cperf_test_vector_get_dummy()
659 t_vec->modex.mlen = options->modex_data->modulus.len; in cperf_test_vector_get_dummy()
660 t_vec->modex.elen = options->modex_data->exponent.len; in cperf_test_vector_get_dummy()
H A Dcperf_ops.c30 asym_op->modex.base.data = options->modex_data->base.data; in cperf_set_ops_asym()
31 asym_op->modex.base.length = options->modex_data->base.len; in cperf_set_ops_asym()
32 asym_op->modex.result.data = options->modex_data->result.data; in cperf_set_ops_asym()
33 asym_op->modex.result.length = options->modex_data->result.len; in cperf_set_ops_asym()
791 xform.modex.modulus.data = options->modex_data->modulus.data; in cperf_create_session()
792 xform.modex.modulus.length = options->modex_data->modulus.len; in cperf_create_session()
793 xform.modex.exponent.data = options->modex_data->exponent.data; in cperf_create_session()
794 xform.modex.exponent.length = options->modex_data->exponent.len; in cperf_create_session()
H A Dcperf_test_vectors.h77 } modex; member
/dpdk/lib/cryptodev/
H A Drte_crypto_asym.h517 struct rte_crypto_modex_xform modex; member
554 struct rte_crypto_mod_op_param modex; member
/dpdk/drivers/crypto/cnxk/
H A Dcnxk_ae.h46 size_t exp_len = xform->modex.exponent.length; in cnxk_ae_fill_modex_params()
47 size_t mod_len = xform->modex.modulus.length; in cnxk_ae_fill_modex_params()
48 uint8_t *exp = xform->modex.exponent.data; in cnxk_ae_fill_modex_params()
49 uint8_t *mod = xform->modex.modulus.data; in cnxk_ae_fill_modex_params()
227 mod_op = op->asym->modex; in cnxk_ae_modex_prep()
838 op->modex.result.length = sess->mod_ctx.modulus.length; in cnxk_ae_post_process()
839 memcpy(op->modex.result.data, rptr, op->modex.result.length); in cnxk_ae_post_process()
/dpdk/drivers/common/cpt/
H A Dcpt_ucode_asym.h37 size_t exp_len = xform->modex.exponent.length; in cpt_fill_modex_params()
38 size_t mod_len = xform->modex.modulus.length; in cpt_fill_modex_params()
39 uint8_t *exp = xform->modex.exponent.data; in cpt_fill_modex_params()
40 uint8_t *mod = xform->modex.modulus.data; in cpt_fill_modex_params()
242 mod_op = ((struct rte_crypto_op *)*op)->asym->modex; in cpt_modex_prep()
/dpdk/drivers/crypto/octeontx/
H A Dotx_cryptodev_ops.c846 op->modex.result.length = sess->mod_ctx.modulus.length; in otx_cpt_asym_post_process()
847 memcpy(op->modex.result.data, req->rptr, in otx_cpt_asym_post_process()
848 op->modex.result.length); in otx_cpt_asym_post_process()
/dpdk/doc/guides/tools/
H A Dcryptoperf.rst177 modex
335 * ``--modex-len <n>``
337 Set modex length for asymmetric crypto perf test.
/dpdk/drivers/crypto/openssl/
H A Drte_openssl_pmd.c1875 base = BN_bin2bn((const unsigned char *)op->modex.base.data, in process_openssl_modexp_op()
1876 op->modex.base.length, base); in process_openssl_modexp_op()
1880 op->modex.result.length = BN_bn2bin(res, op->modex.result.data); in process_openssl_modexp_op()
H A Drte_openssl_pmd_ops.c919 struct rte_crypto_modex_xform *xfrm = &(xform->modex); in openssl_set_asym_session_parameters()
/dpdk/doc/guides/rel_notes/
H A Drelease_21_11.rst356 Only modex is supported for now.