| /dpdk/app/test/ |
| H A D | test_cryptodev_ecdsa_test_vectors.h | 102 .length = sizeof(scalar_secp192r1), 106 .length = sizeof(digest_secp192r1), 110 .length = sizeof(sign_secp192r1_r), 114 .length = sizeof(sign_secp192r1_s), 118 .length = sizeof(pkey_secp192r1), 187 .length = sizeof(scalar_secp224r1), 191 .length = sizeof(digest_secp224r1), 203 .length = sizeof(pkey_secp224r1), 288 .length = sizeof(pkey_secp256r1), 385 .length = sizeof(pkey_secp384r1), [all …]
|
| H A D | test_cryptodev_ecpm_test_vectors.h | 53 .length = sizeof(gen_x_secp192r1), 57 .length = sizeof(gen_y_secp192r1), 61 .length = sizeof(privkey_secp192r1), 65 .length = sizeof(pubkey_x_secp192r1), 69 .length = sizeof(pubkey_y_secp192r1), 114 .length = sizeof(gen_x_secp224r1), 118 .length = sizeof(gen_y_secp224r1), 175 .length = sizeof(gen_x_secp256r1), 179 .length = sizeof(gen_y_secp256r1), 246 .length = sizeof(gen_x_secp384r1), [all …]
|
| H A D | test_cryptodev_security_ipsec_test_vectors.h | 117 .key.length = 16, 118 .iv.length = 12, 216 .key.length = 24, 217 .iv.length = 12, 318 .key.length = 32, 319 .iv.length = 12, 425 .iv.length = 16, 526 .iv.length = 12, 628 .iv.length = 16, 733 .iv.length = 16, [all …]
|
| H A D | test_cryptodev_asym.c | 1070 asym_op->dh.priv_key.length = dh_test_params.priv_key.length; in test_dh_gen_shared_sec() 1730 asym_op->dsa.y.length = dsa_test_params.y.length; in test_dsa_sign() 1855 op->asym->ecdsa.k.length = input_params.scalar.length; in test_ecdsa_sign_verify() 1857 op->asym->ecdsa.pkey.length = input_params.pkey.length; in test_ecdsa_sign_verify() 1915 op->asym->ecdsa.q.x.length = input_params.pubkey_qx.length; in test_ecdsa_sign_verify() 1917 op->asym->ecdsa.q.y.length = input_params.pubkey_qx.length; in test_ecdsa_sign_verify() 1919 op->asym->ecdsa.r.length = asym_op->ecdsa.r.length; in test_ecdsa_sign_verify() 1921 op->asym->ecdsa.s.length = asym_op->ecdsa.s.length; in test_ecdsa_sign_verify() 2052 op->asym->ecpm.p.x.length = input_params.gen_x.length; in test_ecpm() 2054 op->asym->ecpm.p.y.length = input_params.gen_y.length; in test_ecpm() [all …]
|
| /dpdk/drivers/common/sfc_efx/base/ |
| H A D | ef10_tlv_layout.h | 106 uint32_t length; member 124 uint32_t length; member 146 uint32_t length; member 163 uint32_t length; member 182 uint32_t length; member 200 uint32_t length; member 220 uint32_t length; member 228 uint32_t length; member 245 uint32_t length; member 253 uint32_t length; member [all …]
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_ae.c | 20 .length = 24}, 25 .length = 24}, 30 .length = 24}, 35 .length = 24}, 42 .length = 28}, 47 .length = 28}, 52 .length = 28}, 57 .length = 28}, 65 .length = 32}, 71 .length = 32}, [all …]
|
| /dpdk/drivers/common/qat/qat_adf/ |
| H A D | qat_pke.h | 65 if (xform->modex.modulus.length <= 16) { in get_modinv_function() 100 if (xform->modex.modulus.length <= 16) { in get_modinv_function() 144 if (xform->rsa.n.length <= 64) { in get_rsa_enc_function() 147 } else if (xform->rsa.n.length <= 128) { in get_rsa_enc_function() 150 } else if (xform->rsa.n.length <= 192) { in get_rsa_enc_function() 153 } else if (xform->rsa.n.length <= 256) { in get_rsa_enc_function() 156 } else if (xform->rsa.n.length <= 384) { in get_rsa_enc_function() 159 } else if (xform->rsa.n.length <= 512) { in get_rsa_enc_function() 171 if (xform->rsa.n.length <= 64) { in get_rsa_dec_function() 174 } else if (xform->rsa.n.length <= 128) { in get_rsa_dec_function() [all …]
|
| /dpdk/drivers/common/dpaax/caamflib/ |
| H A D | rta.h | 353 #define FIFOLOAD(program, data, src, length, flags) \ argument 354 rta_fifo_load(program, data, src, length, flags) 373 #define SEQFIFOLOAD(program, data, length, flags) \ argument 448 #define SEQINPTR(program, src, length, flags) \ argument 449 rta_seq_in_ptr(program, src, length, flags) 464 #define SEQOUTPTR(program, dst, length, flags) \ argument 465 rta_seq_out_ptr(program, dst, length, flags) 616 rta_load(program, addr, dst, offset, length, flags) 656 rta_store(program, src, offset, dst, length, flags) 704 length, opt) [all …]
|
| /dpdk/drivers/common/dpaax/caamflib/rta/ |
| H A D | load_cmd.h | 156 if ((length > 3) || (offset)) in load_check_len_offset() 160 if ((length != 4) || (offset != 0)) in load_check_len_offset() 175 if ((length < 1) || (length > 8) || (offset != 0)) in load_check_len_offset() 179 if ((length > 32) || (offset > 32) || ((offset + length) > 32)) in load_check_len_offset() 183 if ((length > 24) || (offset > 24) || ((offset + length) > 24)) in load_check_len_offset() 187 if ((length > 16) || (offset > 16) || ((offset + length) > 16)) in load_check_len_offset() 191 if ((length > 8) || (offset > 8) || ((offset + length) > 8)) in load_check_len_offset() 196 ((offset + length) > 128)) in load_check_len_offset() 200 if ((length < 1) || (length > 256) || ((length + offset) > 256)) in load_check_len_offset() 273 opcode |= (length >> 2); in rta_load() [all …]
|
| H A D | fifo_load_store_cmd.h | 49 uint64_t loc, uint32_t length, uint32_t flags) in rta_fifo_load() argument 134 if ((flags & EXT) || (length >> 16)) { in rta_fifo_load() 137 ext_length = (length / 8); in rta_fifo_load() 138 length = (length % 8); in rta_fifo_load() 140 ext_length = length; in rta_fifo_load() 141 length = 0; in rta_fifo_load() 144 opcode |= (uint16_t) length; in rta_fifo_load() 205 uint32_t length, uint32_t flags) in rta_fifo_store() argument 275 if ((length >> 16) || (flags & EXT)) in rta_fifo_store() 278 opcode |= (uint16_t) length; in rta_fifo_store() [all …]
|
| /dpdk/drivers/crypto/cnxk/ |
| H A D | cnxk_ae.h | 93 len = (((mod_len / 2) < qt.p.length) ? 0 : qt.p.length); in cnxk_ae_fill_rsa_params() 122 rsa->qt.q.length = qt.q.length; in cnxk_ae_fill_rsa_params() 123 rsa->qt.dQ.length = qt.dQ.length; in cnxk_ae_fill_rsa_params() 124 rsa->qt.p.length = qt.p.length; in cnxk_ae_fill_rsa_params() 125 rsa->qt.dP.length = qt.dP.length; in cnxk_ae_fill_rsa_params() 126 rsa->qt.qInv.length = qt.qInv.length; in cnxk_ae_fill_rsa_params() 672 rsa->cipher.length = rsa_ctx->n.length; in cnxk_ae_dequeue_rsa_op() 677 rsa->message.length = rsa_ctx->n.length; in cnxk_ae_dequeue_rsa_op() 692 rsa->sign.length = rsa_ctx->n.length; in cnxk_ae_dequeue_rsa_op() 697 rsa->sign.length = rsa_ctx->n.length; in cnxk_ae_dequeue_rsa_op() [all …]
|
| /dpdk/drivers/common/cpt/ |
| H A D | cpt_ucode_asym.h | 86 len = (((mod_len / 2) < qt.p.length) ? len : qt.p.length); in cpt_fill_rsa_params() 116 rsa->qt.q.length = qt.q.length; in cpt_fill_rsa_params() 117 rsa->qt.dQ.length = qt.dQ.length; in cpt_fill_rsa_params() 118 rsa->qt.p.length = qt.p.length; in cpt_fill_rsa_params() 119 rsa->qt.dP.length = qt.dP.length; in cpt_fill_rsa_params() 120 rsa->qt.qInv.length = qt.qInv.length; in cpt_fill_rsa_params() 491 .length = 24, 497 .length = 24}, 514 .length = 28}, 519 .length = 28}, [all …]
|
| /dpdk/app/test-crypto-perf/ |
| H A D | cperf_ops.c | 257 sym_op->auth.data.length = in cperf_set_ops_null_auth() 674 xform.aead.key.length = test_vector->aead_key.length; in create_ipsec_session() 675 xform.aead.iv.length = test_vector->aead_iv.length; in create_ipsec_session() 685 xform.cipher.iv.length = test_vector->cipher_iv.length; in create_ipsec_session() 702 xform.cipher.iv.length; in create_ipsec_session() 709 auth_xform.auth.iv.length = test_vector->auth_iv.length; in create_ipsec_session() 820 cipher_xform.cipher.key.length = test_vector->cipher_key.length; in cperf_create_session() 838 auth_xform.auth.key.length = test_vector->auth_key.length; in cperf_create_session() 840 auth_xform.auth.iv.length = test_vector->auth_iv.length; in cperf_create_session() 1022 auth_xform.auth.iv.length = test_vector->auth_iv.length; in cperf_create_session() [all …]
|
| H A D | cperf_test_vector_parsing.c | 52 if (i == test_vector->plaintext.length - 1) in show_test_vector() 309 vector->plaintext.length = data_length; in parse_entry() 323 vector->cipher_key.length = data_length; in parse_entry() 337 vector->auth_key.length = data_length; in parse_entry() 351 vector->aead_key.length = data_length; in parse_entry() 365 vector->cipher_iv.length = data_length; in parse_entry() 379 vector->auth_iv.length = data_length; in parse_entry() 393 vector->aead_iv.length = data_length; in parse_entry() 422 vector->aad.length = data_length; in parse_entry() 429 vector->aad.length = opts->aead_aad_sz; in parse_entry() [all …]
|
| H A D | cperf_test_vectors.h | 13 uint32_t length; member 18 uint16_t length; member 23 uint16_t length; member 28 uint16_t length; member 33 uint16_t length; member 38 uint16_t length; member 43 uint16_t length; member 48 uint32_t length; member 54 uint16_t length; member 60 uint16_t length; member
|
| H A D | cperf_test_vectors.c | 666 t_vec->cipher_key.length = 0; in cperf_test_vector_get_dummy() 696 t_vec->auth_key.length = 0; in cperf_test_vector_get_dummy() 699 t_vec->digest.length = 0; in cperf_test_vector_get_dummy() 714 t_vec->digest.length = options->digest_sz; in cperf_test_vector_get_dummy() 727 t_vec->cipher_key.length = 0; in cperf_test_vector_get_dummy() 760 t_vec->auth_key.length = 0; in cperf_test_vector_get_dummy() 763 t_vec->digest.length = 0; in cperf_test_vector_get_dummy() 778 t_vec->digest.length = options->digest_sz; in cperf_test_vector_get_dummy() 816 t_vec->aad.length = options->aead_aad_sz; in cperf_test_vector_get_dummy() 819 t_vec->aad.length = 0; in cperf_test_vector_get_dummy() [all …]
|
| /dpdk/drivers/crypto/dpaa2_sec/ |
| H A D | dpaa2_sec_raw_dp.c | 130 sge->length = icv_len; in build_raw_dp_chain_fd() 148 sge->length = sess->iv.length; in build_raw_dp_chain_fd() 293 sge->length = sess->iv.length; in build_raw_dp_aead_fd() 403 sge->length = 12; in build_raw_dp_auth_fd() 406 sge->length = 8; in build_raw_dp_auth_fd() 408 sge->length = sess->iv.length; in build_raw_dp_auth_fd() 411 ip_fle->length += sge->length; in build_raw_dp_auth_fd() 631 sess->iv.length); in build_raw_dp_cipher_fd() 671 fle->length); in build_raw_dp_cipher_fd() 676 ip_fle->length = sess->iv.length + data_len; in build_raw_dp_cipher_fd() [all …]
|
| H A D | dpaa2_sec_dpseci.c | 416 sge->length = sess->iv.length; in build_authenc_gcm_sg_fd() 543 sge->length = sym_op->aead.data.length; in build_authenc_gcm_fd() 567 sge->length = sess->iv.length; in build_authenc_gcm_fd() 709 sge->length = sess->iv.length; in build_authenc_sg_fd() 865 sge->length = sess->iv.length; in build_authenc_fd() 964 sge->length = sess->iv.length; in build_auth_sg_fd() 967 ip_fle->length += sge->length; in build_auth_sg_fd() 1094 sge->length = sess->iv.length; in build_auth_fd() 1098 fle->length = fle->length + sge->length; in build_auth_fd() 1219 sge->length = sess->iv.length; in build_cipher_sg_fd() [all …]
|
| /dpdk/drivers/net/igc/base/ |
| H A D | igc_manage.c | 26 for (i = 0; i < length; i++) in igc_calculate_checksum() 172 length >>= 2; in igc_mng_write_cmd_header_generic() 207 if (length == 0 || offset + length > IGC_HI_MAX_MNG_DATA_LENGTH) in igc_mng_host_if_write_generic() 225 remaining = length & 0x3; in igc_mng_host_if_write_generic() 226 length -= remaining; in igc_mng_host_if_write_generic() 229 length >>= 2; in igc_mng_host_if_write_generic() 268 u16 length) in igc_mng_write_dhcp_info_generic() argument 382 if (length == 0 || length & 0x3 || in igc_host_interface_command() 396 length >>= 2; in igc_host_interface_command() 462 if (length == 0 || length & 0x3 || length > IGC_HI_FW_MAX_LENGTH) { in igc_load_firmware() [all …]
|
| /dpdk/drivers/net/e1000/base/ |
| H A D | e1000_manage.c | 26 for (i = 0; i < length; i++) in e1000_calculate_checksum() 172 length >>= 2; in e1000_mng_write_cmd_header_generic() 207 if (length == 0 || offset + length > E1000_HI_MAX_MNG_DATA_LENGTH) in e1000_mng_host_if_write_generic() 225 remaining = length & 0x3; in e1000_mng_host_if_write_generic() 226 length -= remaining; in e1000_mng_host_if_write_generic() 229 length >>= 2; in e1000_mng_host_if_write_generic() 268 u16 length) in e1000_mng_write_dhcp_info_generic() argument 382 if (length == 0 || length & 0x3 || in e1000_host_interface_command() 396 length >>= 2; in e1000_host_interface_command() 462 if (length == 0 || length & 0x3 || length > E1000_HI_FW_MAX_LENGTH) { in e1000_load_firmware() [all …]
|
| /dpdk/drivers/crypto/dpaa_sec/ |
| H A D | dpaa_sec_raw_dp.c | 169 sg->length = 8; in build_dpaa_raw_dp_auth_fd() 171 sg->length = ses->iv.length; in build_dpaa_raw_dp_auth_fd() 174 in_sg->length += sg->length; in build_dpaa_raw_dp_auth_fd() 323 in_sg->length = ses->iv.length + aead_len in build_raw_cipher_auth_gcm_sg() 326 in_sg->length = ses->iv.length + aead_len in build_raw_cipher_auth_gcm_sg() 336 sg->length = ses->iv.length; in build_raw_cipher_auth_gcm_sg() 484 in_sg->length = ses->iv.length + auth_len; in build_dpaa_raw_dp_chain_fd() 486 in_sg->length = ses->iv.length + auth_len in build_dpaa_raw_dp_chain_fd() 496 sg->length = ses->iv.length; in build_dpaa_raw_dp_chain_fd() 618 in_sg->length = data_len + ses->iv.length; in build_dpaa_raw_dp_cipher_fd() [all …]
|
| H A D | dpaa_sec.c | 1453 length += sg->length; in build_cipher_auth_gcm() 1467 length += sg->length; in build_cipher_auth_gcm() 1473 length += sg->length; in build_cipher_auth_gcm() 1487 length += sg->length; in build_cipher_auth_gcm() 1496 length += sg->length; in build_cipher_auth_gcm() 1512 length = sg->length; in build_cipher_auth_gcm() 1519 length += sg->length; in build_cipher_auth_gcm() 1690 length += sg->length; in build_cipher_auth() 1696 length += sg->length; in build_cipher_auth() 1702 length += sg->length; in build_cipher_auth() [all …]
|
| /dpdk/drivers/crypto/qat/ |
| H A D | qat_asym.c | 66 (int)param.length \ 74 what.length, \ 76 what.length) 81 what.length, \ 83 what.length) 218 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() 264 - n.length, n.length); in modexp_collect() 321 - n.length), in modinv_collect() [all …]
|
| /dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_sym_session.c | 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() 62 sess->cipher.iv.length = cipher_xform->iv.length; in crypto_set_session_cipher_parameters() 67 sess->cipher.key.length, in crypto_set_session_cipher_parameters() 78 if (auth_xform->key.length > BCMFS_MAX_KEY_SIZE) { in crypto_set_session_auth_parameters() 84 sess->auth.key.length = auth_xform->key.length; in crypto_set_session_auth_parameters() 86 sess->auth.iv.length = auth_xform->iv.length; in crypto_set_session_auth_parameters() 91 auth_xform->key.length, in crypto_set_session_auth_parameters() 108 sess->aead.iv.length = aead_xform->aead.iv.length; in crypto_set_session_aead_parameters() 110 sess->aead.key.length = aead_xform->aead.key.length; in crypto_set_session_aead_parameters() [all …]
|
| /dpdk/drivers/crypto/caam_jr/ |
| H A D | caam_jr.c | 755 length = sym->auth.data.length; in build_auth_only_sg() 915 length = sym->cipher.data.length; in build_cipher_only_sg() 943 length = sym->cipher.data.length + ses->iv.length; in build_cipher_only_sg() 1108 length = sym->auth.data.length; in build_cipher_auth_sg() 1145 length = ses->iv.length + sym->auth.data.length; in build_cipher_auth_sg() 1147 length = ses->iv.length + sym->auth.data.length in build_cipher_auth_sg() 1238 length += ses->iv.length; in build_cipher_auth() 1243 length += sym->auth.data.length; in build_cipher_auth() 1249 length += ses->iv.length; in build_cipher_auth() 1254 length += sym->auth.data.length; in build_cipher_auth() [all …]
|