Lines Matching refs:plaintext_len

2836 	unsigned int plaintext_len = ceil_byte_length(tdata->plaintext.len);  in create_wireless_cipher_hash_operation()  local
2837 unsigned int data_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in create_wireless_cipher_hash_operation()
3116 unsigned plaintext_len; in test_snow3g_authentication() local
3161 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_authentication()
3164 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_authentication()
3167 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_authentication()
3207 unsigned plaintext_len; in test_snow3g_authentication_verify() local
3251 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_authentication_verify()
3254 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_authentication_verify()
3257 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_authentication_verify()
3298 unsigned plaintext_len; in test_kasumi_authentication() local
3337 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_authentication()
3340 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_authentication()
3343 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_authentication()
3387 unsigned plaintext_len; in test_kasumi_authentication_verify() local
3425 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_authentication_verify()
3428 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_authentication_verify()
3431 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_authentication_verify()
3612 unsigned plaintext_len; in test_kasumi_encryption() local
3650 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption()
3653 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_encryption()
3656 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_encryption()
3658 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_kasumi_encryption()
3682 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption()
3704 unsigned int plaintext_len; in test_kasumi_encryption_sgl() local
3747 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_sgl()
3752 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_encryption_sgl()
3757 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_sgl()
3779 plaintext_len, buffer); in test_kasumi_encryption_sgl()
3783 plaintext_len, buffer); in test_kasumi_encryption_sgl()
3786 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption_sgl()
3808 unsigned plaintext_len; in test_kasumi_encryption_oop() local
3841 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_oop()
3844 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_encryption_oop()
3848 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_encryption_oop()
3850 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_kasumi_encryption_oop()
3870 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption_oop()
3891 unsigned int plaintext_len; in test_kasumi_encryption_oop_sgl() local
3931 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_oop_sgl()
3934 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_kasumi_encryption_oop_sgl()
3943 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_oop_sgl()
4162 unsigned plaintext_len; in test_snow3g_encryption() local
4200 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption()
4203 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_encryption()
4206 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_encryption()
4208 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_snow3g_encryption()
4232 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption()
4253 unsigned plaintext_len; in test_snow3g_encryption_oop() local
4300 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption_oop()
4303 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_encryption_oop()
4307 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_encryption_oop()
4309 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_snow3g_encryption_oop()
4333 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_oop()
4352 unsigned int plaintext_len; in test_snow3g_encryption_oop_sgl() local
4398 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption_oop_sgl()
4401 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_encryption_oop_sgl()
4413 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_snow3g_encryption_oop_sgl()
4434 plaintext_len, buffer); in test_snow3g_encryption_oop_sgl()
4437 plaintext_len, buffer); in test_snow3g_encryption_oop_sgl()
4439 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_oop_sgl()
4478 uint32_t plaintext_len; in test_snow3g_encryption_offset_oop() local
4528 plaintext_len = ceil_byte_length(tdata->plaintext.len + extra_offset); in test_snow3g_encryption_offset_oop()
4533 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_encryption_offset_oop()
4569 rte_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_offset_oop()
4572 expected_ciphertext_shifted = rte_malloc(NULL, plaintext_len, 8); in test_snow3g_encryption_offset_oop()
4789 unsigned int plaintext_len; in test_zuc_cipher_auth() local
4841 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_cipher_auth()
4844 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_zuc_cipher_auth()
4847 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_cipher_auth()
4849 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_zuc_cipher_auth()
4869 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_cipher_auth()
4899 unsigned plaintext_len; in test_snow3g_cipher_auth() local
4944 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_cipher_auth()
4947 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_cipher_auth()
4950 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_cipher_auth()
4952 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_snow3g_cipher_auth()
4981 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_cipher_auth()
5012 unsigned int plaintext_len; in test_snow3g_auth_cipher() local
5080 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_auth_cipher()
5082 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_auth_cipher()
5095 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_auth_cipher()
5098 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_snow3g_auth_cipher()
5205 unsigned int plaintext_len; in test_snow3g_auth_cipher_sgl() local
5275 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_auth_cipher_sgl()
5277 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_snow3g_auth_cipher_sgl()
5299 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_snow3g_auth_cipher_sgl()
5302 plaintext_len, buffer); in test_snow3g_auth_cipher_sgl()
5304 plaintext_len); in test_snow3g_auth_cipher_sgl()
5340 plaintext_len, buffer); in test_snow3g_auth_cipher_sgl()
5343 plaintext_len, buffer); in test_snow3g_auth_cipher_sgl()
5418 unsigned int plaintext_len; in test_kasumi_auth_cipher() local
5487 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_auth_cipher()
5489 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_kasumi_auth_cipher()
5502 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_auth_cipher()
5506 plaintext_len); in test_kasumi_auth_cipher()
5610 unsigned int plaintext_len; in test_kasumi_auth_cipher_sgl() local
5680 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_auth_cipher_sgl()
5682 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_kasumi_auth_cipher_sgl()
5704 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_kasumi_auth_cipher_sgl()
5707 plaintext_len, buffer); in test_kasumi_auth_cipher_sgl()
5709 plaintext_len); in test_kasumi_auth_cipher_sgl()
5745 plaintext_len, buffer); in test_kasumi_auth_cipher_sgl()
5748 plaintext_len, buffer); in test_kasumi_auth_cipher_sgl()
5818 unsigned plaintext_len; in test_kasumi_cipher_auth() local
5865 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_cipher_auth()
5868 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_kasumi_cipher_auth()
5871 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_cipher_auth()
5873 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_kasumi_cipher_auth()
5989 unsigned plaintext_len; in test_zuc_encryption() local
6024 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_encryption()
6027 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_zuc_encryption()
6030 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_encryption()
6032 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_zuc_encryption()
6056 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_encryption()
6076 unsigned int plaintext_len; in test_zuc_encryption_sgl() local
6105 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_encryption_sgl()
6109 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); 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()
6148 0, plaintext_len, ciphertext_buffer); in test_zuc_encryption_sgl()
6151 0, plaintext_len, ciphertext_buffer); in test_zuc_encryption_sgl()
6154 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_encryption_sgl()
6174 unsigned plaintext_len; in test_zuc_authentication() local
6218 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_authentication()
6221 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 8); in test_zuc_authentication()
6224 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_authentication()
6267 unsigned int plaintext_len; in test_zuc_auth_cipher() local
6342 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_auth_cipher()
6344 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_zuc_auth_cipher()
6356 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_auth_cipher()
6358 plaintext_len); in test_zuc_auth_cipher()
6465 unsigned int plaintext_len; in test_zuc_auth_cipher_sgl() local
6531 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_auth_cipher_sgl()
6533 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_zuc_auth_cipher_sgl()
6555 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_zuc_auth_cipher_sgl()
6558 plaintext_len, buffer); in test_zuc_auth_cipher_sgl()
6560 plaintext_len); in test_zuc_auth_cipher_sgl()
6596 plaintext_len, buffer); in test_zuc_auth_cipher_sgl()
6599 plaintext_len, buffer); in test_zuc_auth_cipher_sgl()
7350 unsigned int plaintext_len; in test_mixed_auth_cipher() local
7410 plaintext_len = ceil_byte_length(tdata->plaintext.len_bits); in test_mixed_auth_cipher()
7412 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_mixed_auth_cipher()
7424 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_mixed_auth_cipher()
7425 debug_hexdump(stdout, "plaintext:", plaintext, plaintext_len); in test_mixed_auth_cipher()
7545 unsigned int plaintext_len; in test_mixed_auth_cipher_sgl() local
7607 plaintext_len = ceil_byte_length(tdata->plaintext.len_bits); in test_mixed_auth_cipher_sgl()
7609 plaintext_pad_len = RTE_ALIGN_CEIL(plaintext_len, 16); in test_mixed_auth_cipher_sgl()
7631 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, in test_mixed_auth_cipher_sgl()
7634 plaintext_len, buffer); in test_mixed_auth_cipher_sgl()
7636 plaintext_len); in test_mixed_auth_cipher_sgl()
7677 plaintext_len, buffer); in test_mixed_auth_cipher_sgl()
7680 plaintext_len, buffer); in test_mixed_auth_cipher_sgl()
8583 uint16_t plaintext_len = fragsz; in test_pdcp_proto_SGL() local
8614 plaintext_len); in test_pdcp_proto_SGL()
8615 memcpy(plaintext, input_vec, plaintext_len); in test_pdcp_proto_SGL()
8616 trn_data += plaintext_len; in test_pdcp_proto_SGL()
13076 uint16_t plaintext_len = fragsz; in test_AES_GMAC_authentication_SGL() local
13094 plaintext_len); in test_AES_GMAC_authentication_SGL()
13097 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_AES_GMAC_authentication_SGL()
13099 trn_data += plaintext_len; in test_AES_GMAC_authentication_SGL()
14346 uint16_t plaintext_len = fragsz; in test_authenticated_encryption_SGL() local
14392 plaintext_len); in test_authenticated_encryption_SGL()
14394 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_authenticated_encryption_SGL()
14396 trn_data += plaintext_len; in test_authenticated_encryption_SGL()