Lines Matching refs:obuf
96 struct rte_mbuf *obuf, *ibuf; member
1463 if (ut_params->obuf) { in ut_teardown()
1464 rte_pktmbuf_free(ut_params->obuf); in ut_teardown()
1465 if (ut_params->ibuf == ut_params->obuf) in ut_teardown()
1467 ut_params->obuf = 0; in ut_teardown()
2411 ut_params->obuf = ut_params->op->sym->m_src; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2415 rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2563 sym_op->m_dst = ut_params->obuf; in create_wireless_algo_cipher_operation_oop()
3025 sym_op->m_dst = ut_params->obuf; 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()
3184 ut_params->obuf = ut_params->op->sym->m_src; in test_snow3g_authentication()
3186 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_snow3g_authentication()
3277 ut_params->obuf = ut_params->op->sym->m_src; in test_snow3g_authentication_verify()
3278 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_snow3g_authentication_verify()
3364 ut_params->obuf = ut_params->op->sym->m_src; in test_kasumi_authentication()
3366 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_kasumi_authentication()
3451 ut_params->obuf = ut_params->op->sym->m_src; in test_kasumi_authentication_verify()
3452 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_kasumi_authentication_verify()
3676 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_encryption()
3677 if (ut_params->obuf) in test_kasumi_encryption()
3678 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_encryption()
3775 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_encryption_sgl()
3777 if (ut_params->obuf) in test_kasumi_encryption_sgl()
3778 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_encryption_sgl()
3835 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_encryption_oop()
3847 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_kasumi_encryption_oop()
3864 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_encryption_oop()
3865 if (ut_params->obuf) in test_kasumi_encryption_oop()
3866 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_encryption_oop()
3938 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_encryption_oop_sgl()
3957 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_encryption_oop_sgl()
3958 if (ut_params->obuf) in test_kasumi_encryption_oop_sgl()
3959 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_encryption_oop_sgl()
4013 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_decryption_oop()
4025 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_kasumi_decryption_oop()
4042 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_decryption_oop()
4043 if (ut_params->obuf) in test_kasumi_decryption_oop()
4044 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_decryption_oop()
4134 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_decryption()
4135 if (ut_params->obuf) in test_kasumi_decryption()
4136 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_decryption()
4226 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_encryption()
4227 if (ut_params->obuf) in test_snow3g_encryption()
4228 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption()
4289 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_oop()
4293 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_encryption_oop()
4306 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_snow3g_encryption_oop()
4327 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_encryption_oop()
4328 if (ut_params->obuf) in test_snow3g_encryption_oop()
4329 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption_oop()
4405 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_encryption_oop_sgl()
4410 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_encryption_oop_sgl()
4431 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_encryption_oop_sgl()
4432 if (ut_params->obuf) in test_snow3g_encryption_oop_sgl()
4433 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_encryption_oop_sgl()
4517 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_offset_oop()
4521 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_encryption_offset_oop()
4538 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_snow3g_encryption_offset_oop()
4562 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_encryption_offset_oop()
4563 if (ut_params->obuf) in test_snow3g_encryption_offset_oop()
4564 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption_offset_oop()
4663 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_decryption()
4664 if (ut_params->obuf) in test_snow3g_decryption()
4665 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_decryption()
4723 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_decryption_oop()
4727 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_decryption_oop()
4734 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_snow3g_decryption_oop()
4735 rte_pktmbuf_tailroom(ut_params->obuf)); in test_snow3g_decryption_oop()
4743 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_snow3g_decryption_oop()
4763 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_decryption_oop()
4764 if (ut_params->obuf) in test_snow3g_decryption_oop()
4765 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_decryption_oop()
4863 ut_params->obuf = ut_params->op->sym->m_src; in test_zuc_cipher_auth()
4864 if (ut_params->obuf) in test_zuc_cipher_auth()
4865 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_zuc_cipher_auth()
4877 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_zuc_cipher_auth()
4975 ut_params->obuf = ut_params->op->sym->m_src; in test_snow3g_cipher_auth()
4976 if (ut_params->obuf) in test_snow3g_cipher_auth()
4977 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_cipher_auth()
4989 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_snow3g_cipher_auth()
5070 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_auth_cipher()
5076 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_snow3g_auth_cipher()
5077 rte_pktmbuf_tailroom(ut_params->obuf)); in test_snow3g_auth_cipher()
5089 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_snow3g_auth_cipher()
5097 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_snow3g_auth_cipher()
5127 ut_params->obuf = (op_mode == IN_PLACE ? in test_snow3g_auth_cipher()
5131 if (ut_params->obuf) in test_snow3g_auth_cipher()
5132 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_snow3g_auth_cipher()
5144 if (ut_params->obuf) in test_snow3g_auth_cipher()
5145 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_snow3g_auth_cipher()
5155 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_snow3g_auth_cipher()
5285 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_auth_cipher_sgl()
5287 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_auth_cipher_sgl()
5334 ut_params->obuf = (op_mode == IN_PLACE ? in test_snow3g_auth_cipher_sgl()
5338 if (ut_params->obuf) in test_snow3g_auth_cipher_sgl()
5339 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_auth_cipher_sgl()
5351 if (ut_params->obuf) in test_snow3g_auth_cipher_sgl()
5352 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_auth_cipher_sgl()
5363 if (ut_params->obuf) in test_snow3g_auth_cipher_sgl()
5364 digest = rte_pktmbuf_read(ut_params->obuf, in test_snow3g_auth_cipher_sgl()
5477 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_auth_cipher()
5483 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_kasumi_auth_cipher()
5484 rte_pktmbuf_tailroom(ut_params->obuf)); in test_kasumi_auth_cipher()
5496 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_kasumi_auth_cipher()
5504 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_kasumi_auth_cipher()
5535 ut_params->obuf = (op_mode == IN_PLACE ? in test_kasumi_auth_cipher()
5540 if (ut_params->obuf) in test_kasumi_auth_cipher()
5541 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_kasumi_auth_cipher()
5552 if (ut_params->obuf) in test_kasumi_auth_cipher()
5553 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_kasumi_auth_cipher()
5564 ut_params->obuf, uint8_t *) + in test_kasumi_auth_cipher()
5690 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_auth_cipher_sgl()
5692 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_kasumi_auth_cipher_sgl()
5739 ut_params->obuf = (op_mode == IN_PLACE ? in test_kasumi_auth_cipher_sgl()
5743 if (ut_params->obuf) in test_kasumi_auth_cipher_sgl()
5744 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_auth_cipher_sgl()
5756 if (ut_params->obuf) in test_kasumi_auth_cipher_sgl()
5757 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_auth_cipher_sgl()
5768 if (ut_params->obuf) in test_kasumi_auth_cipher_sgl()
5769 digest = rte_pktmbuf_read(ut_params->obuf, in test_kasumi_auth_cipher_sgl()
5897 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_cipher_auth()
5899 ut_params->obuf = ut_params->op->sym->m_src; in test_kasumi_cipher_auth()
5901 ciphertext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_kasumi_cipher_auth()
5904 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_kasumi_cipher_auth()
6050 ut_params->obuf = ut_params->op->sym->m_dst; in test_zuc_encryption()
6051 if (ut_params->obuf) in test_zuc_encryption()
6052 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_zuc_encryption()
6145 ut_params->obuf = ut_params->op->sym->m_dst; in test_zuc_encryption_sgl()
6146 if (ut_params->obuf) in test_zuc_encryption_sgl()
6147 ciphertext = rte_pktmbuf_read(ut_params->obuf, in test_zuc_encryption_sgl()
6241 ut_params->obuf = ut_params->op->sym->m_src; in test_zuc_authentication()
6243 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_zuc_authentication()
6332 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_auth_cipher()
6338 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_zuc_auth_cipher()
6339 rte_pktmbuf_tailroom(ut_params->obuf)); in test_zuc_auth_cipher()
6362 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_zuc_auth_cipher()
6390 ut_params->obuf = (op_mode == IN_PLACE ? in test_zuc_auth_cipher()
6395 if (ut_params->obuf) in test_zuc_auth_cipher()
6396 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_zuc_auth_cipher()
6407 if (ut_params->obuf) in test_zuc_auth_cipher()
6408 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_zuc_auth_cipher()
6419 ut_params->obuf, uint8_t *) + in test_zuc_auth_cipher()
6541 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_zuc_auth_cipher_sgl()
6543 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_zuc_auth_cipher_sgl()
6590 ut_params->obuf = (op_mode == IN_PLACE ? in test_zuc_auth_cipher_sgl()
6594 if (ut_params->obuf) in test_zuc_auth_cipher_sgl()
6595 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_zuc_auth_cipher_sgl()
6607 if (ut_params->obuf) in test_zuc_auth_cipher_sgl()
6608 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_zuc_auth_cipher_sgl()
6619 if (ut_params->obuf) in test_zuc_auth_cipher_sgl()
6620 digest = rte_pktmbuf_read(ut_params->obuf, in test_zuc_auth_cipher_sgl()
7398 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_mixed_auth_cipher()
7405 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_mixed_auth_cipher()
7406 rte_pktmbuf_tailroom(ut_params->obuf)); in test_mixed_auth_cipher()
7429 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_mixed_auth_cipher()
7462 ut_params->obuf = (op_mode == IN_PLACE ? in test_mixed_auth_cipher()
7466 if (ut_params->obuf) in test_mixed_auth_cipher()
7467 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_mixed_auth_cipher()
7479 if (ut_params->obuf) in test_mixed_auth_cipher()
7480 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_mixed_auth_cipher()
7491 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_mixed_auth_cipher()
7617 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_mixed_auth_cipher_sgl()
7619 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_mixed_auth_cipher_sgl()
7671 ut_params->obuf = (op_mode == IN_PLACE ? in test_mixed_auth_cipher_sgl()
7675 if (ut_params->obuf) in test_mixed_auth_cipher_sgl()
7676 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_mixed_auth_cipher_sgl()
7690 if (ut_params->obuf) in test_mixed_auth_cipher_sgl()
7691 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_mixed_auth_cipher_sgl()
7703 if (ut_params->obuf) in test_mixed_auth_cipher_sgl()
7704 digest = rte_pktmbuf_read(ut_params->obuf, in test_mixed_auth_cipher_sgl()
8133 if (ut_params->obuf) { in create_aead_operation()
8135 ut_params->obuf, in create_aead_operation()
8155 if (ut_params->obuf) { in create_aead_operation()
8157 ut_params->obuf, in create_aead_operation()
8170 ut_params->obuf ? ut_params->obuf : in create_aead_operation()
8177 ut_params->obuf ? ut_params->obuf : in create_aead_operation()
8399 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto()
8400 rte_pktmbuf_append(ut_params->obuf, output_vec_len); in test_pdcp_proto()
8483 ut_params->op->sym->m_dst = ut_params->obuf; in test_pdcp_proto()
8529 rte_pktmbuf_free(ut_params->obuf); in test_pdcp_proto()
8530 ut_params->obuf = NULL; in test_pdcp_proto()
8601 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto_SGL()
8602 rte_pktmbuf_append(ut_params->obuf, frag_size_oop); in test_pdcp_proto_SGL()
8603 buf_oop = ut_params->obuf; in test_pdcp_proto_SGL()
8681 ut_params->obuf->nb_segs = segs; in test_pdcp_proto_SGL()
8751 ut_params->op->sym->m_dst = ut_params->obuf; in test_pdcp_proto_SGL()
8834 rte_pktmbuf_free(ut_params->obuf); in test_pdcp_proto_SGL()
8835 ut_params->obuf = NULL; in test_pdcp_proto_SGL()
11246 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_oop()
11251 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_authenticated_encryption_oop()
11252 rte_pktmbuf_tailroom(ut_params->obuf)); in test_authenticated_encryption_oop()
11262 ut_params->op->sym->m_dst = ut_params->obuf; in test_authenticated_encryption_oop()
11277 ciphertext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_authenticated_encryption_oop()
11351 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_oop()
11355 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_authenticated_decryption_oop()
11356 rte_pktmbuf_tailroom(ut_params->obuf)); in test_authenticated_decryption_oop()
11366 ut_params->op->sym->m_dst = ut_params->obuf; in test_authenticated_decryption_oop()
11379 plaintext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_authenticated_decryption_oop()
12089 if (ut_params->obuf) { in test_multi_session()
12090 rte_pktmbuf_free(ut_params->obuf); in test_multi_session()
12091 if (ut_params->ibuf == ut_params->obuf) in test_multi_session()
12093 ut_params->obuf = 0; in test_multi_session()
12233 if (ut_paramz[j].ut_params.obuf) { in test_multi_session_random_usage()
12234 rte_pktmbuf_free(ut_paramz[j].ut_params.obuf); in test_multi_session_random_usage()
12236 == ut_paramz[j].ut_params.obuf) in test_multi_session_random_usage()
12238 ut_paramz[j].ut_params.obuf = 0; in test_multi_session_random_usage()
14182 ut_params->obuf = ut_params->op->sym->m_src; in test_authenticated_decrypt_with_esn()
14183 TEST_ASSERT_NOT_NULL(ut_params->obuf, "failed to retrieve obuf"); in test_authenticated_decrypt_with_esn()
14369 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_SGL()
14370 rte_pktmbuf_append(ut_params->obuf, in test_authenticated_encryption_SGL()
14372 buf_oop = ut_params->obuf; in test_authenticated_encryption_SGL()
14454 digest_mem = rte_pktmbuf_append(ut_params->obuf, in test_authenticated_encryption_SGL()
14458 ut_params->obuf, in test_authenticated_encryption_SGL()
14488 ut_params->obuf->nb_segs = segs; in test_authenticated_encryption_SGL()
14517 ut_params->op->sym->m_dst = ut_params->obuf; in test_authenticated_encryption_SGL()