Lines Matching refs:ibuf

96 	struct rte_mbuf *obuf, *ibuf;  member
1465 if (ut_params->ibuf == ut_params->obuf) in ut_teardown()
1466 ut_params->ibuf = 0; in ut_teardown()
1469 if (ut_params->ibuf) { in ut_teardown()
1470 rte_pktmbuf_free(ut_params->ibuf); in ut_teardown()
1471 ut_params->ibuf = 0; in ut_teardown()
2166 ut_params->ibuf = setup_test_string(ts_params->mbuf_pool, in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2169 ut_params->digest = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2220 sym_op->m_src = ut_params->ibuf; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2225 ut_params->ibuf, QUOTE_512_BYTES); in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2355 ut_params->ibuf = setup_test_string(ts_params->mbuf_pool, in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2360 ut_params->digest = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2379 sym_op->m_src = ut_params->ibuf; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2383 ut_params->ibuf, QUOTE_512_BYTES); in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2532 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_cipher_operation()
2562 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_cipher_operation_oop()
2798 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_hash_operation()
2805 ut_params->ibuf, auth_tag_len); in create_wireless_algo_hash_operation()
2811 ut_params->ibuf, data_pad_len); in create_wireless_algo_hash_operation()
2857 sym_op->m_src = ut_params->ibuf; in create_wireless_cipher_hash_operation()
2861 ut_params->ibuf, auth_tag_len); in create_wireless_cipher_hash_operation()
2867 ut_params->ibuf, data_pad_len); in create_wireless_cipher_hash_operation()
2929 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_cipher_hash_operation()
2933 ut_params->ibuf, auth_tag_len); in create_wireless_algo_cipher_hash_operation()
2939 if (rte_pktmbuf_is_contiguous(ut_params->ibuf)) { in create_wireless_algo_cipher_hash_operation()
2941 ut_params->ibuf, data_pad_len); in create_wireless_algo_cipher_hash_operation()
2943 struct rte_mbuf *m = ut_params->ibuf; in create_wireless_algo_cipher_hash_operation()
3023 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_auth_cipher_operation()
3031 ut_params->ibuf : ut_params->obuf), in create_wireless_algo_auth_cipher_operation()
3035 ut_params->ibuf : ut_params->obuf), in create_wireless_algo_auth_cipher_operation()
3156 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_authentication()
3158 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_authentication()
3159 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_authentication()
3165 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_authentication()
3246 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_authentication_verify()
3248 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_authentication_verify()
3249 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_authentication_verify()
3255 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_authentication_verify()
3332 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_authentication()
3334 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_authentication()
3335 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_authentication()
3341 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_authentication()
3420 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_authentication_verify()
3422 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_authentication_verify()
3423 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_authentication_verify()
3429 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_authentication_verify()
3644 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_encryption()
3647 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_encryption()
3648 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_encryption()
3654 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_encryption()
3754 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_encryption_sgl()
3757 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_sgl()
3781 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_encryption_sgl()
3834 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_encryption_oop()
3838 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_encryption_oop()
3839 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_encryption_oop()
3845 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_encryption_oop()
3936 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_encryption_oop_sgl()
3943 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_oop_sgl()
3962 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_encryption_oop_sgl()
4012 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_decryption_oop()
4016 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_decryption_oop()
4017 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_decryption_oop()
4023 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_decryption_oop()
4102 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_decryption()
4105 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_decryption()
4106 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_decryption()
4112 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_decryption()
4194 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption()
4197 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_encryption()
4198 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_encryption()
4204 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_encryption()
4288 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_oop()
4291 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_encryption_oop()
4297 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_encryption_oop()
4298 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_encryption_oop()
4304 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_encryption_oop()
4403 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_encryption_oop_sgl()
4408 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_encryption_oop_sgl()
4413 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_snow3g_encryption_oop_sgl()
4436 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_encryption_oop_sgl()
4516 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_offset_oop()
4519 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_encryption_offset_oop()
4525 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_encryption_offset_oop()
4526 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_encryption_offset_oop()
4535 plaintext = (uint8_t *) rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_encryption_offset_oop()
4632 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_decryption()
4635 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_decryption()
4636 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_decryption()
4642 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_decryption()
4722 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_decryption_oop()
4725 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_decryption_oop()
4731 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_decryption_oop()
4732 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_decryption_oop()
4741 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_decryption_oop()
4835 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_cipher_auth()
4838 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_zuc_cipher_auth()
4839 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_zuc_cipher_auth()
4845 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_cipher_auth()
4938 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_cipher_auth()
4941 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_cipher_auth()
4942 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_cipher_auth()
4948 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_cipher_auth()
5068 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_auth_cipher()
5073 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_auth_cipher()
5074 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_auth_cipher()
5085 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_auth_cipher()
5093 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_auth_cipher()
5279 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_auth_cipher_sgl()
5281 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_auth_cipher_sgl()
5292 pktmbuf_write(ut_params->ibuf, 0, ciphertext_len, in test_snow3g_auth_cipher_sgl()
5294 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
5299 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_snow3g_auth_cipher_sgl()
5301 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
5342 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
5355 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
5369 digest = rte_pktmbuf_read(ut_params->ibuf, in test_snow3g_auth_cipher_sgl()
5475 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_auth_cipher()
5480 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_auth_cipher()
5481 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_auth_cipher()
5492 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_auth_cipher()
5500 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_auth_cipher()
5684 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_auth_cipher_sgl()
5686 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_kasumi_auth_cipher_sgl()
5697 pktmbuf_write(ut_params->ibuf, 0, ciphertext_len, in test_kasumi_auth_cipher_sgl()
5699 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5704 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_kasumi_auth_cipher_sgl()
5706 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5747 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5760 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5774 digest = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_auth_cipher_sgl()
5859 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_cipher_auth()
5862 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_cipher_auth()
5863 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_cipher_auth()
5869 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_cipher_auth()
6018 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_encryption()
6021 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_zuc_encryption()
6022 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_zuc_encryption()
6028 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_encryption()
6111 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_zuc_encryption_sgl()
6114 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_zuc_encryption_sgl()
6128 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_zuc_encryption_sgl()
6150 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_zuc_encryption_sgl()
6213 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_authentication()
6215 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_zuc_authentication()
6216 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_zuc_authentication()
6222 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_authentication()
6330 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_auth_cipher()
6335 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_zuc_auth_cipher()
6336 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_zuc_auth_cipher()
6347 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_auth_cipher()
6354 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_auth_cipher()
6535 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_zuc_auth_cipher_sgl()
6537 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_zuc_auth_cipher_sgl()
6548 pktmbuf_write(ut_params->ibuf, 0, ciphertext_len, in test_zuc_auth_cipher_sgl()
6550 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6555 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_zuc_auth_cipher_sgl()
6557 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6598 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6611 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6625 digest = rte_pktmbuf_read(ut_params->ibuf, in test_zuc_auth_cipher_sgl()
7396 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_mixed_auth_cipher()
7401 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_mixed_auth_cipher()
7402 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_mixed_auth_cipher()
7415 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_mixed_auth_cipher()
7422 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_mixed_auth_cipher()
7611 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_mixed_auth_cipher_sgl()
7613 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_mixed_auth_cipher_sgl()
7624 pktmbuf_write(ut_params->ibuf, 0, ciphertext_len, in test_mixed_auth_cipher_sgl()
7626 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7631 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_mixed_auth_cipher_sgl()
7633 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7679 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7694 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7710 digest = rte_pktmbuf_read(ut_params->ibuf, in test_mixed_auth_cipher_sgl()
8074 sym_op->aead.aad.data = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
8080 rte_pktmbuf_iova(ut_params->ibuf); in create_aead_operation()
8096 sym_op->aead.aad.data = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
8102 rte_pktmbuf_iova(ut_params->ibuf); in create_aead_operation()
8125 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
8145 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
8171 ut_params->ibuf, in create_aead_operation()
8178 ut_params->ibuf, in create_aead_operation()
8183 ut_params->ibuf, tdata->auth_tag.len); in create_aead_operation()
8187 ut_params->ibuf, in create_aead_operation()
8249 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_authenticated_encryption()
8254 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption()
8257 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encryption()
8258 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encryption()
8267 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_encryption()
8384 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto()
8387 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_pdcp_proto()
8388 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_pdcp_proto()
8390 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_pdcp_proto()
8481 ut_params->op->sym->m_src = ut_params->ibuf; in test_pdcp_proto()
8526 rte_pktmbuf_free(ut_params->ibuf); in test_pdcp_proto()
8527 ut_params->ibuf = NULL; in test_pdcp_proto()
8607 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto_SGL()
8610 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_pdcp_proto_SGL()
8611 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_pdcp_proto_SGL()
8613 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_pdcp_proto_SGL()
8618 buf = ut_params->ibuf; in test_pdcp_proto_SGL()
8654 ut_params->ibuf->nb_segs = segs; in test_pdcp_proto_SGL()
8749 ut_params->op->sym->m_src = ut_params->ibuf; in test_pdcp_proto_SGL()
8831 rte_pktmbuf_free(ut_params->ibuf); in test_pdcp_proto_SGL()
8832 ut_params->ibuf = NULL; in test_pdcp_proto_SGL()
9341 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_ipsec_proto_process()
9342 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_ipsec_proto_process()
9343 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_ipsec_proto_process()
9345 input_text = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_ipsec_proto_process()
9370 ut_params->op->sym->m_src = ut_params->ibuf; in test_ipsec_proto_process()
9402 ret = test_ipsec_post_process(ut_params->ibuf, &td[i], in test_ipsec_proto_process()
9415 rte_pktmbuf_free(ut_params->ibuf); in test_ipsec_proto_process()
9416 ut_params->ibuf = NULL; in test_ipsec_proto_process()
9423 rte_pktmbuf_free(ut_params->ibuf); in test_ipsec_proto_process()
9424 ut_params->ibuf = NULL; in test_ipsec_proto_process()
10299 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_docsis_proto_uplink()
10300 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_docsis_proto_uplink()
10301 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_docsis_proto_uplink()
10303 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_docsis_proto_uplink()
10378 ut_params->op->sym->m_src = ut_params->ibuf; in test_docsis_proto_uplink()
10419 rte_pktmbuf_free(ut_params->ibuf); in test_docsis_proto_uplink()
10420 ut_params->ibuf = NULL; in test_docsis_proto_uplink()
10484 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_docsis_proto_downlink()
10485 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_docsis_proto_downlink()
10486 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_docsis_proto_downlink()
10488 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_docsis_proto_downlink()
10562 ut_params->op->sym->m_src = ut_params->ibuf; in test_docsis_proto_downlink()
10602 rte_pktmbuf_free(ut_params->ibuf); in test_docsis_proto_downlink()
10603 ut_params->ibuf = NULL; in test_docsis_proto_downlink()
10904 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_authenticated_decryption()
10909 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption()
10911 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decryption()
10912 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decryption()
10921 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_decryption()
11245 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_oop()
11249 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encryption_oop()
11250 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encryption_oop()
11261 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_encryption_oop()
11350 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_oop()
11353 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decryption_oop()
11354 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decryption_oop()
11365 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_decryption_oop()
11436 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_sessionless()
11439 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encryption_sessionless()
11440 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encryption_sessionless()
11458 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_encryption_sessionless()
11475 ciphertext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_encryption_sessionless()
11545 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_sessionless()
11547 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decryption_sessionless()
11548 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decryption_sessionless()
11566 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_decryption_sessionless()
11586 plaintext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_decryption_sessionless()
11819 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in MD5_HMAC_create_session()
11821 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in MD5_HMAC_create_session()
11822 rte_pktmbuf_tailroom(ut_params->ibuf)); in MD5_HMAC_create_session()
11838 *plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in MD5_HMAC_create_op()
11844 ut_params->ibuf, MD5_DIGEST_LEN); in MD5_HMAC_create_op()
11848 ut_params->ibuf, plaintext_pad_len); in MD5_HMAC_create_op()
11859 ut_params->op->sym->m_src = ut_params->ibuf; in MD5_HMAC_create_op()
12091 if (ut_params->ibuf == ut_params->obuf) in test_multi_session()
12092 ut_params->ibuf = 0; in test_multi_session()
12095 if (ut_params->ibuf) { in test_multi_session()
12096 rte_pktmbuf_free(ut_params->ibuf); in test_multi_session()
12097 ut_params->ibuf = 0; in test_multi_session()
12235 if (ut_paramz[j].ut_params.ibuf in test_multi_session_random_usage()
12237 ut_paramz[j].ut_params.ibuf = 0; in test_multi_session_random_usage()
12240 if (ut_paramz[j].ut_params.ibuf) { in test_multi_session_random_usage()
12241 rte_pktmbuf_free(ut_paramz[j].ut_params.ibuf); in test_multi_session_random_usage()
12242 ut_paramz[j].ut_params.ibuf = 0; in test_multi_session_random_usage()
12673 ut_params->ibuf, tdata->gmac_tag.len); in create_gmac_operation()
12678 ut_params->ibuf, plaintext_pad_len); in create_gmac_operation()
12827 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_AES_GMAC_authentication()
12829 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication()
12830 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_AES_GMAC_authentication()
12833 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_AES_GMAC_authentication()
12834 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_AES_GMAC_authentication()
12845 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication()
12861 ut_params->op->sym->m_src = ut_params->ibuf; in test_AES_GMAC_authentication()
12958 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_AES_GMAC_authentication_verify()
12960 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication_verify()
12961 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_AES_GMAC_authentication_verify()
12964 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_AES_GMAC_authentication_verify()
12965 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_AES_GMAC_authentication_verify()
12977 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_verify()
12993 ut_params->op->sym->m_src = ut_params->ibuf; in test_AES_GMAC_authentication_verify()
13086 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication_SGL()
13087 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
13090 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_AES_GMAC_authentication_SGL()
13091 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_AES_GMAC_authentication_SGL()
13093 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
13101 buf = ut_params->ibuf; in test_AES_GMAC_authentication_SGL()
13128 ut_params->ibuf->nb_segs = segs; in test_AES_GMAC_authentication_SGL()
13136 digest_mem = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
13138 digest_phys = rte_pktmbuf_iova_offset(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
13150 ut_params->op->sym->m_src = ut_params->ibuf; in test_AES_GMAC_authentication_SGL()
13508 sym_op->m_src = ut_params->ibuf; in create_auth_operation()
13512 ut_params->ibuf, reference->digest.len); in create_auth_operation()
13518 ut_params->ibuf, reference->plaintext.len); in create_auth_operation()
13555 sym_op->m_src = ut_params->ibuf; in create_auth_GMAC_operation()
13559 ut_params->ibuf, reference->digest.len); in create_auth_GMAC_operation()
13565 ut_params->ibuf, reference->ciphertext.len); in create_auth_GMAC_operation()
13608 sym_op->m_src = ut_params->ibuf; in create_cipher_auth_operation()
13612 ut_params->ibuf, reference->digest.len); in create_cipher_auth_operation()
13618 ut_params->ibuf, reference->ciphertext.len); in create_cipher_auth_operation()
13709 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authentication_verify_fail_when_data_corruption()
13710 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authentication_verify_fail_when_data_corruption()
13714 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authentication_verify_fail_when_data_corruption()
13715 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authentication_verify_fail_when_data_corruption()
13717 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authentication_verify_fail_when_data_corruption()
13794 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authentication_verify_GMAC_fail_when_corruption()
13795 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authentication_verify_GMAC_fail_when_corruption()
13799 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authentication_verify_GMAC_fail_when_corruption()
13800 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authentication_verify_GMAC_fail_when_corruption()
13802 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authentication_verify_GMAC_fail_when_corruption()
13887 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_fail_when_corruption()
13888 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authenticated_decryption_fail_when_corruption()
13892 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decryption_fail_when_corruption()
13893 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decryption_fail_when_corruption()
13895 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_decryption_fail_when_corruption()
14009 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encrypt_with_esn()
14010 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authenticated_encrypt_with_esn()
14014 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encrypt_with_esn()
14015 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encrypt_with_esn()
14017 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encrypt_with_esn()
14047 authciphertext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_encrypt_with_esn()
14145 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decrypt_with_esn()
14146 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authenticated_decrypt_with_esn()
14150 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decrypt_with_esn()
14151 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decrypt_with_esn()
14153 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_decrypt_with_esn()
14235 ut_params->ibuf, aad_len); in create_aead_operation_SGL()
14239 ut_params->ibuf); in create_aead_operation_SGL()
14257 ut_params->ibuf, aad_len_pad); in create_aead_operation_SGL()
14261 ut_params->ibuf); in create_aead_operation_SGL()
14385 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_SGL()
14388 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encryption_SGL()
14389 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encryption_SGL()
14391 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encryption_SGL()
14398 buf = ut_params->ibuf; in test_authenticated_encryption_SGL()
14446 ut_params->ibuf->nb_segs = segs; in test_authenticated_encryption_SGL()
14500 digest_mem = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encryption_SGL()
14502 digest_phys = rte_pktmbuf_iova_offset(ut_params->ibuf, in test_authenticated_encryption_SGL()
14515 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_encryption_SGL()