Lines Matching refs:ibuf

107 	struct rte_mbuf *obuf, *ibuf;  member
964 if (ut_params->ibuf == ut_params->obuf) in ut_teardown()
965 ut_params->ibuf = 0; in ut_teardown()
968 if (ut_params->ibuf) { in ut_teardown()
969 rte_pktmbuf_free(ut_params->ibuf); in ut_teardown()
970 ut_params->ibuf = 0; in ut_teardown()
1666 ut_params->ibuf = setup_test_string(ts_params->mbuf_pool, in test_AES_CBC_HMAC_SHA1_encrypt_digest()
1669 ut_params->digest = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_CBC_HMAC_SHA1_encrypt_digest()
1715 sym_op->m_src = ut_params->ibuf; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
1720 ut_params->ibuf, QUOTE_512_BYTES); in test_AES_CBC_HMAC_SHA1_encrypt_digest()
1850 ut_params->ibuf = setup_test_string(ts_params->mbuf_pool, in test_AES_CBC_HMAC_SHA512_decrypt_perform()
1855 ut_params->digest = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_CBC_HMAC_SHA512_decrypt_perform()
1874 sym_op->m_src = ut_params->ibuf; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
1878 ut_params->ibuf, QUOTE_512_BYTES); in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2095 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_cipher_operation()
2125 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_cipher_operation_oop()
2361 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_hash_operation()
2368 ut_params->ibuf, auth_tag_len); in create_wireless_algo_hash_operation()
2374 ut_params->ibuf, data_pad_len); in create_wireless_algo_hash_operation()
2420 sym_op->m_src = ut_params->ibuf; in create_wireless_cipher_hash_operation()
2424 ut_params->ibuf, auth_tag_len); in create_wireless_cipher_hash_operation()
2430 ut_params->ibuf, data_pad_len); in create_wireless_cipher_hash_operation()
2492 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_cipher_hash_operation()
2496 ut_params->ibuf, auth_tag_len); in create_wireless_algo_cipher_hash_operation()
2502 if (rte_pktmbuf_is_contiguous(ut_params->ibuf)) { in create_wireless_algo_cipher_hash_operation()
2504 ut_params->ibuf, data_pad_len); in create_wireless_algo_cipher_hash_operation()
2506 struct rte_mbuf *m = ut_params->ibuf; in create_wireless_algo_cipher_hash_operation()
2586 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_auth_cipher_operation()
2594 ut_params->ibuf : ut_params->obuf), in create_wireless_algo_auth_cipher_operation()
2598 ut_params->ibuf : ut_params->obuf), in create_wireless_algo_auth_cipher_operation()
2704 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_authentication()
2706 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_authentication()
2707 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_authentication()
2713 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_authentication()
2794 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_authentication_verify()
2796 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_authentication_verify()
2797 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_authentication_verify()
2803 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_authentication_verify()
2880 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_authentication()
2882 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_authentication()
2883 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_authentication()
2889 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_authentication()
2968 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_authentication_verify()
2970 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_authentication_verify()
2971 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_authentication_verify()
2977 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_authentication_verify()
3192 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_encryption()
3195 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_encryption()
3196 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_encryption()
3202 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_encryption()
3302 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_encryption_sgl()
3305 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_sgl()
3329 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_encryption_sgl()
3382 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_encryption_oop()
3386 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_encryption_oop()
3387 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_encryption_oop()
3393 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_encryption_oop()
3484 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_encryption_oop_sgl()
3491 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_oop_sgl()
3510 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_encryption_oop_sgl()
3560 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_decryption_oop()
3564 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_decryption_oop()
3565 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_decryption_oop()
3571 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_decryption_oop()
3650 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_decryption()
3653 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_decryption()
3654 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_decryption()
3660 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_decryption()
3742 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption()
3745 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_encryption()
3746 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_encryption()
3752 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_encryption()
3826 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_oop()
3829 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_encryption_oop()
3835 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_encryption_oop()
3836 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_encryption_oop()
3842 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_encryption_oop()
3931 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_encryption_oop_sgl()
3936 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_encryption_oop_sgl()
3941 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_snow3g_encryption_oop_sgl()
3960 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_encryption_oop_sgl()
4040 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_offset_oop()
4043 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_encryption_offset_oop()
4049 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_encryption_offset_oop()
4050 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_encryption_offset_oop()
4059 plaintext = (uint8_t *) rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_encryption_offset_oop()
4152 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_decryption()
4155 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_decryption()
4156 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_decryption()
4162 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_decryption()
4233 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_decryption_oop()
4236 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_decryption_oop()
4242 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_decryption_oop()
4243 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_decryption_oop()
4252 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_decryption_oop()
4342 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_cipher_auth()
4345 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_zuc_cipher_auth()
4346 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_zuc_cipher_auth()
4352 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_cipher_auth()
4445 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_cipher_auth()
4448 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_cipher_auth()
4449 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_cipher_auth()
4455 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_cipher_auth()
4576 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_auth_cipher()
4581 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_snow3g_auth_cipher()
4582 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_snow3g_auth_cipher()
4593 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_auth_cipher()
4601 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_auth_cipher()
4783 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_auth_cipher_sgl()
4785 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_snow3g_auth_cipher_sgl()
4796 pktmbuf_write(ut_params->ibuf, 0, ciphertext_len, in test_snow3g_auth_cipher_sgl()
4798 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
4803 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_snow3g_auth_cipher_sgl()
4805 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
4846 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
4859 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
4873 digest = rte_pktmbuf_read(ut_params->ibuf, in test_snow3g_auth_cipher_sgl()
4975 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_auth_cipher()
4980 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_auth_cipher()
4981 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_auth_cipher()
4992 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_auth_cipher()
5000 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_auth_cipher()
5184 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_auth_cipher_sgl()
5186 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_kasumi_auth_cipher_sgl()
5197 pktmbuf_write(ut_params->ibuf, 0, ciphertext_len, in test_kasumi_auth_cipher_sgl()
5199 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5204 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_kasumi_auth_cipher_sgl()
5206 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5247 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5260 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5274 digest = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_auth_cipher_sgl()
5359 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_cipher_auth()
5362 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_kasumi_cipher_auth()
5363 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_kasumi_cipher_auth()
5369 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_cipher_auth()
5468 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_encryption()
5471 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_zuc_encryption()
5472 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_zuc_encryption()
5478 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_encryption()
5566 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_zuc_encryption_sgl()
5569 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_zuc_encryption_sgl()
5583 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_zuc_encryption_sgl()
5605 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_zuc_encryption_sgl()
5671 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_authentication()
5673 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_zuc_authentication()
5674 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_zuc_authentication()
5680 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_authentication()
5786 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_auth_cipher()
5791 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_zuc_auth_cipher()
5792 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_zuc_auth_cipher()
5803 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_auth_cipher()
5811 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_auth_cipher()
5989 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_zuc_auth_cipher_sgl()
5991 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_zuc_auth_cipher_sgl()
6002 pktmbuf_write(ut_params->ibuf, 0, ciphertext_len, in test_zuc_auth_cipher_sgl()
6004 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6009 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_zuc_auth_cipher_sgl()
6011 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6052 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6065 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6079 digest = rte_pktmbuf_read(ut_params->ibuf, in test_zuc_auth_cipher_sgl()
6798 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_mixed_auth_cipher()
6803 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_mixed_auth_cipher()
6804 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_mixed_auth_cipher()
6817 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_mixed_auth_cipher()
6825 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_mixed_auth_cipher()
7010 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_mixed_auth_cipher_sgl()
7012 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_mixed_auth_cipher_sgl()
7023 pktmbuf_write(ut_params->ibuf, 0, ciphertext_len, in test_mixed_auth_cipher_sgl()
7025 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7030 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_mixed_auth_cipher_sgl()
7032 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7078 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7093 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7109 digest = rte_pktmbuf_read(ut_params->ibuf, in test_mixed_auth_cipher_sgl()
7469 sym_op->aead.aad.data = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
7475 rte_pktmbuf_iova(ut_params->ibuf); in create_aead_operation()
7491 sym_op->aead.aad.data = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
7497 rte_pktmbuf_iova(ut_params->ibuf); in create_aead_operation()
7520 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
7540 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
7566 ut_params->ibuf, in create_aead_operation()
7573 ut_params->ibuf, in create_aead_operation()
7578 ut_params->ibuf, tdata->auth_tag.len); in create_aead_operation()
7582 ut_params->ibuf, in create_aead_operation()
7644 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_authenticated_encryption()
7649 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption()
7652 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encryption()
7653 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encryption()
7662 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_encryption()
7779 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto()
7782 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_pdcp_proto()
7783 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_pdcp_proto()
7785 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_pdcp_proto()
7876 ut_params->op->sym->m_src = ut_params->ibuf; in test_pdcp_proto()
7921 rte_pktmbuf_free(ut_params->ibuf); in test_pdcp_proto()
7922 ut_params->ibuf = NULL; in test_pdcp_proto()
7991 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto_SGL()
7994 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_pdcp_proto_SGL()
7995 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_pdcp_proto_SGL()
7997 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_pdcp_proto_SGL()
8002 buf = ut_params->ibuf; in test_pdcp_proto_SGL()
8038 ut_params->ibuf->nb_segs = segs; in test_pdcp_proto_SGL()
8133 ut_params->op->sym->m_src = ut_params->ibuf; in test_pdcp_proto_SGL()
8200 rte_pktmbuf_free(ut_params->ibuf); in test_pdcp_proto_SGL()
8201 ut_params->ibuf = NULL; in test_pdcp_proto_SGL()
8545 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_docsis_proto_uplink()
8546 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_docsis_proto_uplink()
8547 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_docsis_proto_uplink()
8549 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_docsis_proto_uplink()
8625 ut_params->op->sym->m_src = ut_params->ibuf; in test_docsis_proto_uplink()
8667 rte_pktmbuf_free(ut_params->ibuf); in test_docsis_proto_uplink()
8668 ut_params->ibuf = NULL; in test_docsis_proto_uplink()
8721 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_docsis_proto_downlink()
8722 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_docsis_proto_downlink()
8723 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_docsis_proto_downlink()
8725 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_docsis_proto_downlink()
8800 ut_params->op->sym->m_src = ut_params->ibuf; in test_docsis_proto_downlink()
8841 rte_pktmbuf_free(ut_params->ibuf); in test_docsis_proto_downlink()
8842 ut_params->ibuf = NULL; in test_docsis_proto_downlink()
9270 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_authenticated_decryption()
9275 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption()
9277 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decryption()
9278 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decryption()
9287 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_decryption()
9606 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_oop()
9610 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encryption_oop()
9611 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encryption_oop()
9622 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_encryption_oop()
9697 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_oop()
9700 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decryption_oop()
9701 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decryption_oop()
9712 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_decryption_oop()
9779 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_sessionless()
9782 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encryption_sessionless()
9783 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encryption_sessionless()
9801 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_encryption_sessionless()
9818 ciphertext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_encryption_sessionless()
9888 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_sessionless()
9890 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decryption_sessionless()
9891 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decryption_sessionless()
9909 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_decryption_sessionless()
9929 plaintext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_decryption_sessionless()
10159 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in MD5_HMAC_create_session()
10161 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in MD5_HMAC_create_session()
10162 rte_pktmbuf_tailroom(ut_params->ibuf)); in MD5_HMAC_create_session()
10178 *plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in MD5_HMAC_create_op()
10184 ut_params->ibuf, MD5_DIGEST_LEN); in MD5_HMAC_create_op()
10188 ut_params->ibuf, plaintext_pad_len); in MD5_HMAC_create_op()
10199 ut_params->op->sym->m_src = ut_params->ibuf; in MD5_HMAC_create_op()
10427 if (ut_params->ibuf == ut_params->obuf) in test_multi_session()
10428 ut_params->ibuf = 0; in test_multi_session()
10431 if (ut_params->ibuf) { in test_multi_session()
10432 rte_pktmbuf_free(ut_params->ibuf); in test_multi_session()
10433 ut_params->ibuf = 0; in test_multi_session()
10566 if (ut_paramz[j].ut_params.ibuf in test_multi_session_random_usage()
10568 ut_paramz[j].ut_params.ibuf = 0; in test_multi_session_random_usage()
10571 if (ut_paramz[j].ut_params.ibuf) { in test_multi_session_random_usage()
10572 rte_pktmbuf_free(ut_paramz[j].ut_params.ibuf); in test_multi_session_random_usage()
10573 ut_paramz[j].ut_params.ibuf = 0; in test_multi_session_random_usage()
10758 ut_params->ibuf, tdata->gmac_tag.len); in create_gmac_operation()
10763 ut_params->ibuf, plaintext_pad_len); in create_gmac_operation()
10910 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_AES_GMAC_authentication()
10912 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication()
10913 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_AES_GMAC_authentication()
10916 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_AES_GMAC_authentication()
10917 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_AES_GMAC_authentication()
10928 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication()
10944 ut_params->op->sym->m_src = ut_params->ibuf; in test_AES_GMAC_authentication()
11039 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_AES_GMAC_authentication_verify()
11041 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication_verify()
11042 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_AES_GMAC_authentication_verify()
11045 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_AES_GMAC_authentication_verify()
11046 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_AES_GMAC_authentication_verify()
11058 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_verify()
11074 ut_params->op->sym->m_src = ut_params->ibuf; in test_AES_GMAC_authentication_verify()
11165 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication_SGL()
11166 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
11169 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_AES_GMAC_authentication_SGL()
11170 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_AES_GMAC_authentication_SGL()
11172 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
11180 buf = ut_params->ibuf; in test_AES_GMAC_authentication_SGL()
11207 ut_params->ibuf->nb_segs = segs; in test_AES_GMAC_authentication_SGL()
11215 digest_mem = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
11217 digest_phys = rte_pktmbuf_iova_offset(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
11229 ut_params->op->sym->m_src = ut_params->ibuf; in test_AES_GMAC_authentication_SGL()
11587 sym_op->m_src = ut_params->ibuf; in create_auth_operation()
11591 ut_params->ibuf, reference->digest.len); in create_auth_operation()
11597 ut_params->ibuf, reference->plaintext.len); in create_auth_operation()
11634 sym_op->m_src = ut_params->ibuf; in create_auth_GMAC_operation()
11638 ut_params->ibuf, reference->digest.len); in create_auth_GMAC_operation()
11644 ut_params->ibuf, reference->ciphertext.len); in create_auth_GMAC_operation()
11687 sym_op->m_src = ut_params->ibuf; in create_cipher_auth_operation()
11691 ut_params->ibuf, reference->digest.len); in create_cipher_auth_operation()
11697 ut_params->ibuf, reference->ciphertext.len); in create_cipher_auth_operation()
11785 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authentication_verify_fail_when_data_corruption()
11786 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authentication_verify_fail_when_data_corruption()
11790 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authentication_verify_fail_when_data_corruption()
11791 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authentication_verify_fail_when_data_corruption()
11793 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authentication_verify_fail_when_data_corruption()
11867 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authentication_verify_GMAC_fail_when_corruption()
11868 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authentication_verify_GMAC_fail_when_corruption()
11872 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authentication_verify_GMAC_fail_when_corruption()
11873 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authentication_verify_GMAC_fail_when_corruption()
11875 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authentication_verify_GMAC_fail_when_corruption()
11957 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_fail_when_corruption()
11958 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authenticated_decryption_fail_when_corruption()
11962 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decryption_fail_when_corruption()
11963 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decryption_fail_when_corruption()
11965 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_decryption_fail_when_corruption()
12074 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryt_with_esn()
12075 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authenticated_encryt_with_esn()
12079 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encryt_with_esn()
12080 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encryt_with_esn()
12082 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encryt_with_esn()
12112 authciphertext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_encryt_with_esn()
12206 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decrypt_with_esn()
12207 TEST_ASSERT_NOT_NULL(ut_params->ibuf, in test_authenticated_decrypt_with_esn()
12211 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_decrypt_with_esn()
12212 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_decrypt_with_esn()
12214 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_decrypt_with_esn()
12296 ut_params->ibuf, aad_len); in create_aead_operation_SGL()
12300 ut_params->ibuf); in create_aead_operation_SGL()
12318 ut_params->ibuf, aad_len_pad); in create_aead_operation_SGL()
12322 ut_params->ibuf); in create_aead_operation_SGL()
12446 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_SGL()
12449 memset(rte_pktmbuf_mtod(ut_params->ibuf, uint8_t *), 0, in test_authenticated_encryption_SGL()
12450 rte_pktmbuf_tailroom(ut_params->ibuf)); in test_authenticated_encryption_SGL()
12452 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encryption_SGL()
12459 buf = ut_params->ibuf; in test_authenticated_encryption_SGL()
12507 ut_params->ibuf->nb_segs = segs; in test_authenticated_encryption_SGL()
12561 digest_mem = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encryption_SGL()
12563 digest_phys = rte_pktmbuf_iova_offset(ut_params->ibuf, in test_authenticated_encryption_SGL()
12576 ut_params->op->sym->m_src = ut_params->ibuf; in test_authenticated_encryption_SGL()