Lines Matching refs:plaintext_len

2399 	unsigned int plaintext_len = ceil_byte_length(tdata->plaintext.len);  in create_wireless_cipher_hash_operation()  local
2400 unsigned int data_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in create_wireless_cipher_hash_operation()
2664 unsigned plaintext_len; in test_snow3g_authentication() local
2709 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_authentication()
2712 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_authentication()
2715 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_authentication()
2755 unsigned plaintext_len; in test_snow3g_authentication_verify() local
2799 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_authentication_verify()
2802 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_authentication_verify()
2805 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_authentication_verify()
2846 unsigned plaintext_len; in test_kasumi_authentication() local
2885 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_authentication()
2888 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_authentication()
2891 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_authentication()
2935 unsigned plaintext_len; in test_kasumi_authentication_verify() local
2973 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_authentication_verify()
2976 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_authentication_verify()
2979 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_authentication_verify()
3160 unsigned plaintext_len; in test_kasumi_encryption() local
3198 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption()
3201 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_encryption()
3204 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_encryption()
3206 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_kasumi_encryption()
3230 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption()
3252 unsigned int plaintext_len; in test_kasumi_encryption_sgl() local
3295 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_sgl()
3300 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_encryption_sgl()
3305 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_sgl()
3327 plaintext_len, buffer); in test_kasumi_encryption_sgl()
3331 plaintext_len, buffer); in test_kasumi_encryption_sgl()
3334 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption_sgl()
3356 unsigned plaintext_len; in test_kasumi_encryption_oop() local
3389 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_oop()
3392 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_encryption_oop()
3396 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_encryption_oop()
3398 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_kasumi_encryption_oop()
3418 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption_oop()
3439 unsigned int plaintext_len; in test_kasumi_encryption_oop_sgl() local
3479 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_oop_sgl()
3482 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_encryption_oop_sgl()
3491 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_oop_sgl()
3710 unsigned plaintext_len; in test_snow3g_encryption() local
3748 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption()
3751 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_encryption()
3754 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_encryption()
3756 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_snow3g_encryption()
3780 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption()
3801 unsigned plaintext_len; in test_snow3g_encryption_oop() local
3838 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption_oop()
3841 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_encryption_oop()
3845 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_encryption_oop()
3847 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_snow3g_encryption_oop()
3867 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_oop()
3886 unsigned int plaintext_len; in test_snow3g_encryption_oop_sgl() local
3926 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption_oop_sgl()
3929 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_encryption_oop_sgl()
3941 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_snow3g_encryption_oop_sgl()
3958 plaintext_len, buffer); in test_snow3g_encryption_oop_sgl()
3961 plaintext_len, buffer); in test_snow3g_encryption_oop_sgl()
3963 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_oop_sgl()
4002 uint32_t plaintext_len; in test_snow3g_encryption_offset_oop() local
4052 plaintext_len = ceil_byte_length(tdata->plaintext.len + extra_offset); in test_snow3g_encryption_offset_oop()
4057 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_encryption_offset_oop()
4089 rte_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_offset_oop()
4092 expected_ciphertext_shifted = rte_malloc(NULL, plaintext_len, 8); in test_snow3g_encryption_offset_oop()
4296 unsigned int plaintext_len; in test_zuc_cipher_auth() local
4348 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_cipher_auth()
4351 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_zuc_cipher_auth()
4354 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_cipher_auth()
4356 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_zuc_cipher_auth()
4376 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_cipher_auth()
4406 unsigned plaintext_len; in test_snow3g_cipher_auth() local
4451 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_cipher_auth()
4454 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_cipher_auth()
4457 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_cipher_auth()
4459 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_snow3g_cipher_auth()
4488 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_cipher_auth()
4519 unsigned int plaintext_len; in test_snow3g_auth_cipher() local
4588 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_auth_cipher()
4590 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_auth_cipher()
4603 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_auth_cipher()
4606 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_snow3g_auth_cipher()
4709 unsigned int plaintext_len; in test_snow3g_auth_cipher_sgl() local
4779 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_auth_cipher_sgl()
4781 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_auth_cipher_sgl()
4803 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_snow3g_auth_cipher_sgl()
4806 plaintext_len, buffer); in test_snow3g_auth_cipher_sgl()
4808 plaintext_len); in test_snow3g_auth_cipher_sgl()
4844 plaintext_len, buffer); in test_snow3g_auth_cipher_sgl()
4847 plaintext_len, buffer); in test_snow3g_auth_cipher_sgl()
4918 unsigned int plaintext_len; in test_kasumi_auth_cipher() local
4987 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_auth_cipher()
4989 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_kasumi_auth_cipher()
5002 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_auth_cipher()
5006 plaintext_len); in test_kasumi_auth_cipher()
5110 unsigned int plaintext_len; in test_kasumi_auth_cipher_sgl() local
5180 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_auth_cipher_sgl()
5182 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_kasumi_auth_cipher_sgl()
5204 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_kasumi_auth_cipher_sgl()
5207 plaintext_len, buffer); in test_kasumi_auth_cipher_sgl()
5209 plaintext_len); in test_kasumi_auth_cipher_sgl()
5245 plaintext_len, buffer); in test_kasumi_auth_cipher_sgl()
5248 plaintext_len, buffer); in test_kasumi_auth_cipher_sgl()
5318 unsigned plaintext_len; in test_kasumi_cipher_auth() local
5365 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_cipher_auth()
5368 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_kasumi_cipher_auth()
5371 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_cipher_auth()
5373 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_kasumi_cipher_auth()
5434 unsigned plaintext_len; in test_zuc_encryption() local
5474 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_encryption()
5477 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_zuc_encryption()
5480 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_encryption()
5482 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_zuc_encryption()
5506 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_encryption()
5526 unsigned int plaintext_len; in test_zuc_encryption_sgl() local
5560 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_encryption_sgl()
5564 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); 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()
5603 0, plaintext_len, ciphertext_buffer); in test_zuc_encryption_sgl()
5606 0, plaintext_len, ciphertext_buffer); in test_zuc_encryption_sgl()
5609 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_encryption_sgl()
5629 unsigned plaintext_len; in test_zuc_authentication() local
5676 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_authentication()
5679 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_zuc_authentication()
5682 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_authentication()
5725 unsigned int plaintext_len; in test_zuc_auth_cipher() local
5798 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_auth_cipher()
5800 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_zuc_auth_cipher()
5813 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_auth_cipher()
5817 plaintext_len); in test_zuc_auth_cipher()
5921 unsigned int plaintext_len; in test_zuc_auth_cipher_sgl() local
5985 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_auth_cipher_sgl()
5987 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_zuc_auth_cipher_sgl()
6009 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_zuc_auth_cipher_sgl()
6012 plaintext_len, buffer); in test_zuc_auth_cipher_sgl()
6014 plaintext_len); in test_zuc_auth_cipher_sgl()
6050 plaintext_len, buffer); in test_zuc_auth_cipher_sgl()
6053 plaintext_len, buffer); in test_zuc_auth_cipher_sgl()
6752 unsigned int plaintext_len; in test_mixed_auth_cipher() local
6812 plaintext_len = ceil_byte_length(tdata->plaintext.len_bits); in test_mixed_auth_cipher()
6814 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_mixed_auth_cipher()
6827 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_mixed_auth_cipher()
6830 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_mixed_auth_cipher()
6944 unsigned int plaintext_len; in test_mixed_auth_cipher_sgl() local
7006 plaintext_len = ceil_byte_length(tdata->plaintext.len_bits); in test_mixed_auth_cipher_sgl()
7008 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_mixed_auth_cipher_sgl()
7030 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_mixed_auth_cipher_sgl()
7033 plaintext_len, buffer); in test_mixed_auth_cipher_sgl()
7035 plaintext_len); in test_mixed_auth_cipher_sgl()
7076 plaintext_len, buffer); in test_mixed_auth_cipher_sgl()
7079 plaintext_len, buffer); in test_mixed_auth_cipher_sgl()
7967 uint16_t plaintext_len = fragsz; in test_pdcp_proto_SGL() local
7998 plaintext_len); in test_pdcp_proto_SGL()
7999 memcpy(plaintext, input_vec, plaintext_len); in test_pdcp_proto_SGL()
8000 trn_data += plaintext_len; in test_pdcp_proto_SGL()
11157 uint16_t plaintext_len = fragsz; in test_AES_GMAC_authentication_SGL() local
11173 plaintext_len); in test_AES_GMAC_authentication_SGL()
11176 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_AES_GMAC_authentication_SGL()
11178 trn_data += plaintext_len; in test_AES_GMAC_authentication_SGL()
12407 uint16_t plaintext_len = fragsz; in test_authenticated_encryption_SGL() local
12453 plaintext_len); in test_authenticated_encryption_SGL()
12455 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_authenticated_encryption_SGL()
12457 trn_data += plaintext_len; in test_authenticated_encryption_SGL()