| /dpdk/lib/ipsec/ |
| H A D | crypto.h | 20 uint64_t iv; member 32 uint64_t iv; member 52 uint64_t iv; member 62 uint64_t iv; member 82 uint64_t iv; member 101 uint64_t iv; member 130 ctr->iv = iv; in aes_ctr_cnt_blk_fill() 140 chacha20_poly1305->iv = iv; in aead_chacha20_poly1305_iv_fill() 148 gcm->iv = iv; in aead_gcm_iv_fill() 162 ccm->iv = iv; in aead_ccm_iv_fill() [all …]
|
| H A D | esp_outb.c | 148 uint64_t *iv; in outb_tun_pkt_prepare() local 315 gen_iv(iv, sqc); in esp_outb_tun_prepare() 354 uint64_t *iv; in outb_trs_pkt_prepare() local 466 gen_iv(iv, sqc); in esp_outb_trs_prepare() 496 uint64_t *ivp = iv; in outb_cpu_crypto_prepare() 505 gcm = iv; in outb_cpu_crypto_prepare() 509 ccm = iv; in outb_cpu_crypto_prepare() 518 ctr = iv; in outb_cpu_crypto_prepare() 579 iv[k].va = ivbuf[k]; in cpu_outb_pkt_prepare() 754 gen_iv(iv, sqc); in inline_outb_tun_pkt_process() [all …]
|
| /dpdk/app/test/ |
| H A D | test_cryptodev_aead_test_vectors.h | 41 } iv; member 73 } iv; member 96 .iv = { 133 .iv = { 171 .iv = { 223 .iv = { 278 .iv = { 333 .iv = { 388 .iv = { 443 .iv = { [all …]
|
| H A D | test_cryptodev_security_docsis_test_vectors.h | 26 } iv; member 59 .iv = { 112 .iv = { 165 .iv = { 220 .iv = { 277 .iv = { 344 .iv = { 413 .iv = { 482 .iv = { 535 .iv = { [all …]
|
| H A D | test_cryptodev_security_ipsec_test_vectors.h | 81 .iv = { 181 .iv = { 283 .iv = { 390 .iv = { 492 .iv = { 593 .iv = { 698 .iv = { 806 .iv = { 911 .iv = { 1021 .iv = { [all …]
|
| H A D | test_cryptodev_aes_test_vectors.h | 730 .iv = { 755 .iv = { 781 .iv = { 805 .iv = { 830 .iv = { 856 .iv = { 880 .iv = { 1272 .iv = { 1318 .iv = { 1363 .iv = { [all …]
|
| H A D | test_cryptodev_des_test_vectors.h | 114 .iv = { 140 .iv = { 175 .iv = { 286 .iv = { 313 .iv = { 349 .iv = { 528 .iv = { 554 .iv = { 589 .iv = { 700 .iv = { [all …]
|
| /dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_sym.c | 51 fsattr_sz(&iv) = sess->cipher.iv.length; in process_crypto_cipher_op() 59 &dst, &key, &iv); in process_crypto_cipher_op() 101 fsattr_pa(&iv) = 0; in process_crypto_auth_op() 102 fsattr_sz(&iv) = sess->auth.iv.length; in process_crypto_auth_op() 104 fsattr_va(&iv) = NULL; in process_crypto_auth_op() 105 fsattr_sz(&iv) = 0; in process_crypto_auth_op() 113 &key, &iv); in process_crypto_auth_op() 156 fsattr_pa(&iv) = 0; in process_crypto_combined_op() 157 fsattr_sz(&iv) = sess->cipher.iv.length; in process_crypto_combined_op() 231 fsattr_pa(&iv) = 0; in process_crypto_aead_op() [all …]
|
| H A D | bcmfs_sym_session.c | 61 sess->cipher.iv.offset = cipher_xform->iv.offset; in crypto_set_session_cipher_parameters() 62 sess->cipher.iv.length = cipher_xform->iv.length; in crypto_set_session_cipher_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() 107 sess->aead.iv.offset = aead_xform->aead.iv.offset; in crypto_set_session_aead_parameters() 108 sess->aead.iv.length = aead_xform->aead.iv.length; in crypto_set_session_aead_parameters()
|
| H A D | bcmfs_sym_engine.c | 561 struct fsattr *iv) in bcmfs_crypto_build_auth_req() argument 571 uint64_t iv_size = (iv != NULL) ? fsattr_sz(iv) : 0; in bcmfs_crypto_build_auth_req() 739 if (iv != NULL && fsattr_sz(iv) != 0) { in bcmfs_crypto_build_cipher_req() 741 fsattr_va(iv), fsattr_sz(iv)); in bcmfs_crypto_build_cipher_req() 742 src_msg_len += fsattr_sz(iv); in bcmfs_crypto_build_cipher_req() 793 uint64_t iv_size = (iv != NULL) ? fsattr_sz(iv) : 0; in bcmfs_crypto_build_chain_request() 870 fsattr_va(iv), iv_size); in bcmfs_crypto_build_chain_request() 989 uint64_t iv_size = (iv != NULL) ? fsattr_sz(iv) : 0; in bcmfs_crypto_build_aead_request() 1028 if (fsattr_sz(iv) > 12) in bcmfs_crypto_build_aead_request() 1047 memcpy(iv_buf, fsattr_va(iv), in bcmfs_crypto_build_aead_request() [all …]
|
| H A D | bcmfs_sym_engine.h | 85 struct fsattr *key, struct fsattr *iv); 93 struct fsattr *iv); 104 struct fsattr *iv, struct fsattr *aad, 112 struct fsattr *key, struct fsattr *iv,
|
| /dpdk/drivers/crypto/cnxk/ |
| H A D | cn10k_ipsec_la_ops.h | 18 uint64_t *iv = &sess->out_sa.iv.u64[0]; in ipsec_po_sa_iv_set() local 21 memcpy(iv, rte_crypto_op_ctod_offset(cop, uint8_t *, sess->iv_offset), in ipsec_po_sa_iv_set() 23 tmp_iv = (uint64_t *)iv; in ipsec_po_sa_iv_set() 26 tmp_iv = (uint64_t *)(iv + 1); in ipsec_po_sa_iv_set() 34 uint8_t *iv = &sess->out_sa.iv.s.iv_dbg1[0]; in ipsec_po_sa_aes_gcm_iv_set() local 37 memcpy(iv, rte_crypto_op_ctod_offset(cop, uint8_t *, sess->iv_offset), in ipsec_po_sa_aes_gcm_iv_set() 39 tmp_iv = (uint32_t *)iv; in ipsec_po_sa_aes_gcm_iv_set() 42 iv = &sess->out_sa.iv.s.iv_dbg2[0]; in ipsec_po_sa_aes_gcm_iv_set() 43 memcpy(iv, in ipsec_po_sa_aes_gcm_iv_set() 46 tmp_iv = (uint32_t *)iv; in ipsec_po_sa_aes_gcm_iv_set()
|
| /dpdk/drivers/common/dpaax/caamflib/desc/ |
| H A D | algo.h | 181 iv[8] = iv[0]; in conv_to_zuc_eia_iv() 182 iv[9] = iv[1]; in conv_to_zuc_eia_iv() 183 iv[10] = iv[2]; in conv_to_zuc_eia_iv() 184 iv[11] = iv[3]; in conv_to_zuc_eia_iv() 201 iv[12] = iv[4]; in conv_to_snow_f9_iv() 202 iv[13] = iv[5]; in conv_to_snow_f9_iv() 203 iv[14] = iv[6]; in conv_to_snow_f9_iv() 211 iv[4] = iv[0]; in conv_to_snow_f9_iv() 212 iv[5] = iv[1]; in conv_to_snow_f9_iv() 213 iv[6] = iv[2]; in conv_to_snow_f9_iv() [all …]
|
| /dpdk/examples/fips_validation/ |
| H A D | fips_validation_gcm.c | 88 if (!vec.iv.val) { in parse_gcm_pt_ct_str() 89 vec.iv.val = rte_malloc(0, vec.iv.len, 0); in parse_gcm_pt_ct_str() 90 if (!vec.iv.val) in parse_gcm_pt_ct_str() 94 for (i = 0; i < vec.iv.len; i++) { in parse_gcm_pt_ct_str() 96 vec.iv.val[i] = (uint8_t)random; in parse_gcm_pt_ct_str() 109 {IV_STR, parse_uint8_known_len_hex_str, &vec.iv}, 119 {IVLEN_STR, parser_read_uint32_bit_val, &vec.iv}, 150 tmp_val.val = vec.iv.val; in parse_test_gcm_writeback() 151 tmp_val.len = vec.iv.len; in parse_test_gcm_writeback() 154 rte_free(vec.iv.val); in parse_test_gcm_writeback() [all …]
|
| H A D | main.c | 610 memcpy(iv, vec.iv.val, vec.iv.len); in prepare_cipher_op() 645 memset(iv, 0, vec.iv.len); in prepare_auth_op() 647 memcpy(iv, vec.iv.val, vec.iv.len); in prepare_auth_op() 692 memcpy(iv, vec.iv.val, vec.iv.len); in prepare_aead_op() 695 memset(iv, 0, vec.iv.len); in prepare_aead_op() 755 cipher_xform->iv.length = vec.iv.len; in prepare_aes_xform() 803 cipher_xform->iv.length = vec.iv.len; in prepare_tdes_xform() 881 aead_xform->iv.length = vec.iv.len; in prepare_gcm_xform() 928 auth_xform->iv.length = vec.iv.len; in prepare_gmac_xform() 1010 aead_xform->iv.length = vec.iv.len; in prepare_ccm_xform() [all …]
|
| H A D | fips_dev_self_test.c | 32 } iv; member 369 .iv = { 428 .iv = { 470 .iv = { 514 .iv = { 558 .iv = { 1028 cipher_xform->iv.length = vec->iv.len; in prepare_cipher_xform() 1142 aead_xform->iv.length = vec->iv.len; in prepare_aead_xform() 1195 memcpy(iv, vec->iv.data, vec->iv.len); in prepare_cipher_op() 1273 memcpy(iv + 1, vec->iv.data, vec->iv.len); in prepare_aead_op() [all …]
|
| H A D | fips_validation_ccm.c | 111 {IV_STR, parse_uint8_known_len_hex_str, &vec.iv}, 121 {IVLEN_PREFIX, parser_read_uint32_val, &vec.iv}, 135 {IVLEN_PREFIX, parser_read_uint32_val, &vec.iv}, 138 {IV_STR, parse_uint8_known_len_hex_str, &vec.iv}, 150 {IVLEN_PREFIX, parser_read_uint32_val, &vec.iv}, 154 {IV_STR, parse_uint8_known_len_hex_str, &vec.iv}, 166 {IVLEN_PREFIX, parser_read_uint32_val, &vec.iv}, 170 {IV_STR, parse_uint8_known_len_hex_str, &vec.iv}, 175 {IV_STR, parse_uint8_known_len_hex_str, &vec.iv}, 184 {IVLEN_PREFIX, parser_dvpt_interim, &vec.iv},
|
| /dpdk/drivers/crypto/openssl/ |
| H A D | rte_openssl_pmd.c | 421 sess->iv.offset = xform->cipher.iv.offset; in openssl_set_session_cipher_parameters() 422 sess->iv.length = xform->cipher.iv.length; in openssl_set_session_cipher_parameters() 555 sess->iv.offset = xform->auth.iv.offset; in openssl_set_session_auth_parameters() 556 sess->iv.length = xform->auth.iv.length; in openssl_set_session_auth_parameters() 624 sess->iv.offset = xform->aead.iv.offset + 1; in openssl_set_session_aead_parameters() 626 sess->iv.offset = xform->aead.iv.offset; in openssl_set_session_aead_parameters() 628 sess->iv.length = xform->aead.iv.length; in openssl_set_session_aead_parameters() 1484 iv, srclen, in process_openssl_docsis_bpi_op() 1504 dst, iv, in process_openssl_docsis_bpi_op() 1512 iv, in process_openssl_docsis_bpi_op() [all …]
|
| /dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_sym_reqmgr.c | 145 struct iv { struct 159 struct iv iv; member 243 uint16_t offset = sr->ctx->iv.offset + salt_size; in softreq_copy_iv() 247 sr->iv.len = sr->ctx->iv.length - salt_size; in softreq_copy_iv() 334 fill_sglist(&sr->in, sr->iv.len, sr->iv.iova, sr->iv.virt); in create_cipher_inbuf() 363 fill_sglist(&sr->out, sr->iv.len, sr->iv.iova, sr->iv.virt); in create_cipher_outbuf() 456 fill_sglist(sgtbl, sr->iv.len, sr->iv.iova, sr->iv.virt); in create_cipher_auth_sglist() 487 fill_sglist(sgtbl, sr->iv.len, sr->iv.iova, sr->iv.virt); in create_combined_sglist() 671 if (unlikely(ctx->iv.length < AES_GCM_SALT_SIZE)) { in softreq_copy_salt() 681 memcpy(ctx->fctx.crypto.iv, addr, AES_GCM_SALT_SIZE); in softreq_copy_salt() [all …]
|
| /dpdk/app/test-crypto-perf/ |
| H A D | cperf_ops.c | 702 xform.cipher.iv.length; in create_ipsec_session() 714 auth_xform.auth.iv.length = 0; in create_ipsec_session() 833 cipher_xform.cipher.iv.length; in cperf_create_session() 845 auth_xform.auth.iv.length = 0; in cperf_create_session() 895 cipher_xform.cipher.iv.length = in cperf_create_session() 943 cipher_xform.cipher.iv.length = in cperf_create_session() 970 auth_xform.auth.iv.length = in cperf_create_session() 976 auth_xform.auth.iv.length = 0; in cperf_create_session() 1001 cipher_xform.cipher.iv.length = in cperf_create_session() 1017 cipher_xform.cipher.iv.length; in cperf_create_session() [all …]
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | esp.c | 71 uint8_t *iv = RTE_PTR_ADD(ip4, ip_hdr_len + in esp_inbound() local 76 memcpy(&icb->iv, iv, 8); in esp_inbound() 96 uint8_t *iv = RTE_PTR_ADD(ip4, ip_hdr_len + in esp_inbound() local 106 rte_memcpy(iv_ptr, iv, sa->iv_len); in esp_inbound() 111 memcpy(&icb->iv, iv, 8); in esp_inbound() 333 uint64_t *iv = (uint64_t *)(esp + 1); in esp_outbound() local 335 *iv = rte_cpu_to_be_64(sa->seq); in esp_outbound() 341 memset(iv, 0, sa->iv_len); in esp_outbound() 344 *iv = rte_cpu_to_be_64(sa->seq); in esp_outbound() 386 icb->iv = rte_cpu_to_be_64(sa->seq); in esp_outbound() [all …]
|
| /dpdk/drivers/crypto/dpaa2_sec/ |
| H A D | dpaa2_sec_raw_dp.c | 51 uint8_t *iv_ptr = iv->va; in build_raw_dp_chain_fd() 143 (auth_len + sess->iv.length + in build_raw_dp_chain_fd() 148 sge->length = sess->iv.length; in build_raw_dp_chain_fd() 200 uint8_t *IV_ptr = iv->va; in build_raw_dp_aead_fd() 343 RTE_SET_USED(iv); in build_raw_dp_auth_fd() 395 if (sess->iv.length) { in build_raw_dp_auth_fd() 399 sess->iv.offset); in build_raw_dp_auth_fd() 458 RTE_SET_USED(iv); in build_raw_dp_proto_fd() 631 sess->iv.length); in build_raw_dp_cipher_fd() 768 &vec->iv[loop], in dpaa2_sec_raw_enqueue_burst() [all …]
|
| /dpdk/drivers/crypto/ipsec_mb/ |
| H A D | pmd_zuc.c | 28 if (cipher_xform->cipher.iv.length != ZUC_IV_KEY_LENGTH) { in zuc_session_configure() 32 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; 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() 76 const void *iv[ZUC_MAX_BURST]; in process_zuc_cipher_op() local 117 iv[i] = rte_crypto_op_ctod_offset(ops[i], uint8_t *, in process_zuc_cipher_op() 127 (const void **)iv, (const void **)src, (void **)dst, in process_zuc_cipher_op() 144 uint8_t *iv[ZUC_MAX_BURST] = { 0 }; in process_zuc_hash_op() local 164 iv[i] = rte_crypto_op_ctod_offset(ops[i], uint8_t *, in process_zuc_hash_op() 177 (const void * const *)iv, (const void * const *)src, in process_zuc_hash_op()
|
| H A D | pmd_snow3g.c | 37 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; 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() 105 const void *iv[SNOW3G_MAX_BURST] = {NULL}; in process_snow3g_cipher_op() local 147 iv[i] = rte_crypto_op_ctod_offset(ops[i], uint8_t *, in process_snow3g_cipher_op() 181 uint8_t *iv; in process_snow3g_cipher_op_bit() local 216 iv = rte_crypto_op_ctod_offset(op, uint8_t *, in process_snow3g_cipher_op_bit() 235 uint8_t *iv; in process_snow3g_hash_op() local 253 iv = rte_crypto_op_ctod_offset(ops[i], uint8_t *, in process_snow3g_hash_op() 270 iv, src, length_in_bits, dst); in process_snow3g_hash_op() [all …]
|
| /dpdk/drivers/crypto/dpaa_sec/ |
| H A D | dpaa_sec_raw_dp.c | 101 RTE_SET_USED(iv); in build_dpaa_raw_dp_auth_fd() 158 if (ses->iv.length) { in build_dpaa_raw_dp_auth_fd() 162 ses->iv.offset); in build_dpaa_raw_dp_auth_fd() 238 uint8_t *IV_ptr = iv->va; in build_raw_cipher_auth_gcm_sg() 336 sg->length = ses->iv.length; in build_raw_cipher_auth_gcm_sg() 396 uint8_t *IV_ptr = iv->va; in build_dpaa_raw_dp_chain_fd() 496 sg->length = ses->iv.length; in build_dpaa_raw_dp_chain_fd() 551 uint8_t *IV_ptr = iv->va; in build_dpaa_raw_dp_cipher_fd() 660 RTE_SET_USED(iv); in build_dpaa_raw_proto_sg() 826 &vec->iv[loop], in dpaa_sec_raw_enqueue_burst() [all …]
|