Lines Matching refs:plaintext
2399 unsigned int plaintext_len = ceil_byte_length(tdata->plaintext.len); in create_wireless_cipher_hash_operation()
2665 uint8_t *plaintext; in test_snow3g_authentication() local
2709 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_authentication()
2713 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_authentication()
2715 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_authentication()
2756 uint8_t *plaintext; in test_snow3g_authentication_verify() local
2799 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_authentication_verify()
2803 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_authentication_verify()
2805 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_authentication_verify()
2847 uint8_t *plaintext; in test_kasumi_authentication() local
2885 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_authentication()
2889 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_authentication()
2891 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_authentication()
2897 tdata->plaintext.len, in test_kasumi_authentication()
2936 uint8_t *plaintext; in test_kasumi_authentication_verify() local
2973 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_authentication_verify()
2977 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_authentication_verify()
2979 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_authentication_verify()
2987 tdata->plaintext.len, in test_kasumi_authentication_verify()
3158 uint8_t *plaintext, *ciphertext; in test_kasumi_encryption() local
3198 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption()
3202 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
3228 ciphertext = plaintext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_encryption()
3295 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_sgl()
3305 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_sgl()
3354 uint8_t *plaintext, *ciphertext; in test_kasumi_encryption_oop() local
3389 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_oop()
3393 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
3416 ciphertext = plaintext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_encryption_oop()
3479 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_oop_sgl()
3491 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_oop_sgl()
3533 uint8_t *ciphertext, *plaintext; in test_kasumi_decryption_oop() local
3592 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_decryption_oop()
3594 plaintext = ciphertext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_decryption_oop()
3596 debug_hexdump(stdout, "plaintext:", plaintext, ciphertext_len); in test_kasumi_decryption_oop()
3598 const uint8_t *reference_plaintext = tdata->plaintext.data + in test_kasumi_decryption_oop()
3602 plaintext, in test_kasumi_decryption_oop()
3616 uint8_t *ciphertext, *plaintext; in test_kasumi_decryption() local
3684 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_decryption()
3686 plaintext = ciphertext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_decryption()
3688 debug_hexdump(stdout, "plaintext:", plaintext, ciphertext_len); in test_kasumi_decryption()
3690 const uint8_t *reference_plaintext = tdata->plaintext.data + in test_kasumi_decryption()
3694 plaintext, in test_kasumi_decryption()
3708 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption() local
3748 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption()
3752 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
3778 ciphertext = plaintext; in test_snow3g_encryption()
3797 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption_oop() local
3838 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption_oop()
3842 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
3865 ciphertext = plaintext; in test_snow3g_encryption_oop()
3926 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption_oop_sgl()
3941 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_snow3g_encryption_oop_sgl()
4000 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption_offset_oop() local
4052 plaintext_len = ceil_byte_length(tdata->plaintext.len + extra_offset); in test_snow3g_encryption_offset_oop()
4059 plaintext = (uint8_t *) rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_encryption_offset_oop()
4064 memcpy(plaintext, tdata->plaintext.data, (tdata->plaintext.len >> 3)); in test_snow3g_encryption_offset_oop()
4065 buffer_shift_right(plaintext, tdata->plaintext.len, extra_offset); in test_snow3g_encryption_offset_oop()
4068 rte_hexdump(stdout, "plaintext:", plaintext, tdata->plaintext.len); in test_snow3g_encryption_offset_oop()
4086 ciphertext = plaintext; in test_snow3g_encryption_offset_oop()
4118 uint8_t *plaintext, *ciphertext; in test_snow3g_decryption() local
4185 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_decryption()
4187 plaintext = ciphertext; in test_snow3g_decryption()
4189 debug_hexdump(stdout, "plaintext:", plaintext, ciphertext_len); in test_snow3g_decryption()
4192 TEST_ASSERT_BUFFERS_ARE_EQUAL_BIT(plaintext, in test_snow3g_decryption()
4193 tdata->plaintext.data, in test_snow3g_decryption()
4206 uint8_t *plaintext, *ciphertext; in test_snow3g_decryption_oop() local
4272 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_decryption_oop()
4274 plaintext = ciphertext; in test_snow3g_decryption_oop()
4276 debug_hexdump(stdout, "plaintext:", plaintext, ciphertext_len); in test_snow3g_decryption_oop()
4279 TEST_ASSERT_BUFFERS_ARE_EQUAL_BIT(plaintext, in test_snow3g_decryption_oop()
4280 tdata->plaintext.data, in test_snow3g_decryption_oop()
4294 uint8_t *plaintext, *ciphertext; in test_zuc_cipher_auth() local
4348 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_cipher_auth()
4352 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
4374 ciphertext = plaintext; in test_zuc_cipher_auth()
4404 uint8_t *plaintext, *ciphertext; in test_snow3g_cipher_auth() local
4451 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_cipher_auth()
4455 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
4486 ciphertext = plaintext; in test_snow3g_cipher_auth()
4517 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_snow3g_auth_cipher() local
4588 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_auth_cipher()
4601 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
4640 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_snow3g_auth_cipher()
4643 plaintext = ciphertext + in test_snow3g_auth_cipher()
4646 debug_hexdump(stdout, "plaintext:", plaintext, in test_snow3g_auth_cipher()
4647 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_snow3g_auth_cipher()
4649 tdata->plaintext.data, in test_snow3g_auth_cipher()
4650 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_snow3g_auth_cipher()
4656 ciphertext = plaintext; in test_snow3g_auth_cipher()
4676 plaintext, in test_snow3g_auth_cipher()
4677 tdata->plaintext.data, in test_snow3g_auth_cipher()
4678 tdata->plaintext.len >> 3, in test_snow3g_auth_cipher()
4705 const uint8_t *plaintext = NULL; in test_snow3g_auth_cipher_sgl() local
4779 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_auth_cipher_sgl()
4804 tdata->plaintext.data); in test_snow3g_auth_cipher_sgl()
4805 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
4807 debug_hexdump(stdout, "plaintext:", plaintext, in test_snow3g_auth_cipher_sgl()
4843 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_auth_cipher_sgl()
4846 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
4849 debug_hexdump(stdout, "plaintext:", plaintext, in test_snow3g_auth_cipher_sgl()
4850 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_snow3g_auth_cipher_sgl()
4852 tdata->plaintext.data, in test_snow3g_auth_cipher_sgl()
4853 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_snow3g_auth_cipher_sgl()
4887 plaintext, in test_snow3g_auth_cipher_sgl()
4888 tdata->plaintext.data, in test_snow3g_auth_cipher_sgl()
4889 tdata->plaintext.len >> 3, in test_snow3g_auth_cipher_sgl()
4916 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_kasumi_auth_cipher() local
4987 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_auth_cipher()
5000 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_auth_cipher()
5002 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_auth_cipher()
5005 debug_hexdump(stdout, "plaintext:", plaintext, in test_kasumi_auth_cipher()
5041 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_kasumi_auth_cipher()
5044 plaintext = ciphertext; in test_kasumi_auth_cipher()
5046 debug_hexdump(stdout, "plaintext:", plaintext, in test_kasumi_auth_cipher()
5047 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_kasumi_auth_cipher()
5049 tdata->plaintext.data, in test_kasumi_auth_cipher()
5050 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_kasumi_auth_cipher()
5056 ciphertext = plaintext; in test_kasumi_auth_cipher()
5077 plaintext, in test_kasumi_auth_cipher()
5078 tdata->plaintext.data, in test_kasumi_auth_cipher()
5079 tdata->plaintext.len >> 3, in test_kasumi_auth_cipher()
5106 const uint8_t *plaintext = NULL; in test_kasumi_auth_cipher_sgl() local
5180 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_auth_cipher_sgl()
5205 tdata->plaintext.data); in test_kasumi_auth_cipher_sgl()
5206 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5208 debug_hexdump(stdout, "plaintext:", plaintext, in test_kasumi_auth_cipher_sgl()
5244 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_auth_cipher_sgl()
5247 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5250 debug_hexdump(stdout, "plaintext:", plaintext, in test_kasumi_auth_cipher_sgl()
5251 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_kasumi_auth_cipher_sgl()
5253 tdata->plaintext.data, in test_kasumi_auth_cipher_sgl()
5254 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_kasumi_auth_cipher_sgl()
5288 plaintext, in test_kasumi_auth_cipher_sgl()
5289 tdata->plaintext.data, in test_kasumi_auth_cipher_sgl()
5290 tdata->plaintext.len >> 3, in test_kasumi_auth_cipher_sgl()
5316 uint8_t *plaintext, *ciphertext; in test_kasumi_cipher_auth() local
5365 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_cipher_auth()
5369 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
5432 uint8_t *plaintext, *ciphertext; in test_zuc_encryption() local
5474 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_encryption()
5478 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
5487 tdata->plaintext.len, in test_zuc_encryption()
5504 ciphertext = plaintext; in test_zuc_encryption()
5560 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_encryption_sgl()
5570 tdata->plaintext.data); in test_zuc_encryption_sgl()
5583 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_zuc_encryption_sgl()
5587 tdata->cipher_iv.len, tdata->plaintext.len, in test_zuc_encryption_sgl()
5630 uint8_t *plaintext; in test_zuc_authentication() local
5676 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_authentication()
5680 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_authentication()
5682 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_authentication()
5723 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_zuc_auth_cipher() local
5798 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_auth_cipher()
5811 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_auth_cipher()
5813 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_auth_cipher()
5816 debug_hexdump(stdout, "plaintext:", plaintext, in test_zuc_auth_cipher()
5852 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_zuc_auth_cipher()
5855 plaintext = ciphertext; in test_zuc_auth_cipher()
5857 debug_hexdump(stdout, "plaintext:", plaintext, in test_zuc_auth_cipher()
5858 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_zuc_auth_cipher()
5860 tdata->plaintext.data, in test_zuc_auth_cipher()
5861 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_zuc_auth_cipher()
5867 ciphertext = plaintext; in test_zuc_auth_cipher()
5888 plaintext, in test_zuc_auth_cipher()
5889 tdata->plaintext.data, in test_zuc_auth_cipher()
5890 tdata->plaintext.len >> 3, in test_zuc_auth_cipher()
5917 const uint8_t *plaintext = NULL; in test_zuc_auth_cipher_sgl() local
5985 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_auth_cipher_sgl()
6010 tdata->plaintext.data); in test_zuc_auth_cipher_sgl()
6011 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6013 debug_hexdump(stdout, "plaintext:", plaintext, in test_zuc_auth_cipher_sgl()
6049 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_zuc_auth_cipher_sgl()
6052 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6055 debug_hexdump(stdout, "plaintext:", plaintext, in test_zuc_auth_cipher_sgl()
6056 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_zuc_auth_cipher_sgl()
6058 tdata->plaintext.data, in test_zuc_auth_cipher_sgl()
6059 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_zuc_auth_cipher_sgl()
6093 plaintext, in test_zuc_auth_cipher_sgl()
6094 tdata->plaintext.data, in test_zuc_auth_cipher_sgl()
6095 tdata->plaintext.len >> 3, in test_zuc_auth_cipher_sgl()
6304 output->plaintext.len = pattern->plaintext.len; in snow3g_hash_test_vector_setup()
6306 memcpy(output->plaintext.data, in snow3g_hash_test_vector_setup()
6307 pattern->plaintext.data, pattern->plaintext.len >> 3); in snow3g_hash_test_vector_setup()
6312 &pattern->plaintext.data[pattern->digest.offset_bytes], in snow3g_hash_test_vector_setup()
6750 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_mixed_auth_cipher() local
6812 plaintext_len = ceil_byte_length(tdata->plaintext.len_bits); in test_mixed_auth_cipher()
6825 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
6869 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_mixed_auth_cipher()
6872 plaintext = ciphertext + in test_mixed_auth_cipher()
6875 debug_hexdump(stdout, "plaintext:", plaintext, in test_mixed_auth_cipher()
6876 tdata->plaintext.len_bits >> 3); in test_mixed_auth_cipher()
6878 tdata->plaintext.data, in test_mixed_auth_cipher()
6879 tdata->plaintext.len_bits >> 3); in test_mixed_auth_cipher()
6885 ciphertext = plaintext; in test_mixed_auth_cipher()
6907 plaintext, in test_mixed_auth_cipher()
6908 tdata->plaintext.data, in test_mixed_auth_cipher()
6909 tdata->plaintext.len_bits >> 3, in test_mixed_auth_cipher()
6940 const uint8_t *plaintext = NULL; in test_mixed_auth_cipher_sgl() local
7006 plaintext_len = ceil_byte_length(tdata->plaintext.len_bits); in test_mixed_auth_cipher_sgl()
7031 tdata->plaintext.data); in test_mixed_auth_cipher_sgl()
7032 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7034 debug_hexdump(stdout, "plaintext:", plaintext, in test_mixed_auth_cipher_sgl()
7075 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_mixed_auth_cipher_sgl()
7078 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7081 debug_hexdump(stdout, "plaintext:", plaintext, in test_mixed_auth_cipher_sgl()
7082 (tdata->plaintext.len_bits >> 3) - in test_mixed_auth_cipher_sgl()
7085 tdata->plaintext.data, in test_mixed_auth_cipher_sgl()
7086 (tdata->plaintext.len_bits >> 3) - in test_mixed_auth_cipher_sgl()
7124 plaintext, in test_mixed_auth_cipher_sgl()
7125 tdata->plaintext.data, in test_mixed_auth_cipher_sgl()
7126 tdata->plaintext.len_bits >> 3, in test_mixed_auth_cipher_sgl()
7455 uint8_t *plaintext, *ciphertext; in create_aead_operation() local
7519 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in create_aead_operation()
7520 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
7522 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in create_aead_operation()
7524 memcpy(plaintext, tdata->plaintext.data, tdata->plaintext.len); in create_aead_operation()
7525 debug_hexdump(stdout, "plaintext:", plaintext, in create_aead_operation()
7526 tdata->plaintext.len); in create_aead_operation()
7551 plaintext = (uint8_t *)rte_pktmbuf_append( in create_aead_operation()
7554 TEST_ASSERT_NOT_NULL(plaintext, in create_aead_operation()
7557 memset(plaintext + aad_pad_len, 0, in create_aead_operation()
7558 tdata->plaintext.len); in create_aead_operation()
7592 sym_op->aead.data.length = tdata->plaintext.len; in create_aead_operation()
7678 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_authenticated_encryption()
7763 uint8_t *plaintext; in test_pdcp_proto() local
7785 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_pdcp_proto()
7787 memcpy(plaintext, input_vec, input_vec_len); in test_pdcp_proto()
7944 uint8_t *plaintext; in test_pdcp_proto_SGL() local
7997 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_pdcp_proto_SGL()
7999 memcpy(plaintext, input_vec, plaintext_len); in test_pdcp_proto_SGL()
8031 plaintext = (uint8_t *)rte_pktmbuf_append(buf, in test_pdcp_proto_SGL()
8034 memcpy(plaintext, input_vec + trn_data, to_trn); in test_pdcp_proto_SGL()
8501 uint8_t *plaintext, *ciphertext; in test_docsis_proto_uplink() local
8646 plaintext = ciphertext; in test_docsis_proto_uplink()
8648 if (memcmp(plaintext, d_td->plaintext.data, in test_docsis_proto_uplink()
8649 d_td->plaintext.len - crc_data_len)) { in test_docsis_proto_uplink()
8652 rte_hexdump(stdout, "expected", d_td->plaintext.data, in test_docsis_proto_uplink()
8653 d_td->plaintext.len); in test_docsis_proto_uplink()
8654 rte_hexdump(stdout, "actual", plaintext, d_td->plaintext.len); in test_docsis_proto_uplink()
8678 uint8_t *plaintext, *ciphertext; in test_docsis_proto_downlink() local
8725 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_docsis_proto_downlink()
8726 d_td->plaintext.len); in test_docsis_proto_downlink()
8728 memcpy(plaintext, d_td->plaintext.data, d_td->plaintext.len); in test_docsis_proto_downlink()
8774 crc_len = d_td->plaintext.no_crc == false ? in test_docsis_proto_downlink()
8775 (d_td->plaintext.len - in test_docsis_proto_downlink()
8776 d_td->plaintext.crc_offset - in test_docsis_proto_downlink()
8781 ut_params->op->sym->auth.data.offset = d_td->plaintext.crc_offset; in test_docsis_proto_downlink()
8784 cipher_len = d_td->plaintext.no_cipher == false ? in test_docsis_proto_downlink()
8785 (d_td->plaintext.len - in test_docsis_proto_downlink()
8786 d_td->plaintext.cipher_offset) : in test_docsis_proto_downlink()
8790 ut_params->op->sym->cipher.data.offset = d_td->plaintext.cipher_offset; in test_docsis_proto_downlink()
8821 ciphertext = plaintext; in test_docsis_proto_downlink()
9149 tdata.plaintext.data[0] += 1; in test_AES_GCM_auth_encryption_fail_in_data_corrupt()
9231 uint8_t *plaintext; in test_authenticated_decryption() local
9304 plaintext = rte_pktmbuf_mtod(ut_params->op->sym->m_dst, in test_authenticated_decryption()
9307 plaintext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_src, in test_authenticated_decryption()
9311 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption()
9315 plaintext, in test_authenticated_decryption()
9316 tdata->plaintext.data, in test_authenticated_decryption()
9317 tdata->plaintext.len, in test_authenticated_decryption()
9500 tdata.plaintext.data[0] += 1; in test_AES_GCM_auth_decryption_fail_in_data_corrupt()
9632 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_authenticated_encryption_oop()
9671 uint8_t *plaintext; in test_authenticated_decryption_oop() local
9722 plaintext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_authenticated_decryption_oop()
9725 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption_oop()
9729 plaintext, in test_authenticated_decryption_oop()
9730 tdata->plaintext.data, in test_authenticated_decryption_oop()
9731 tdata->plaintext.len, in test_authenticated_decryption_oop()
9816 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_authenticated_encryption_sessionless()
9857 uint8_t *plaintext; in test_authenticated_decryption_sessionless() local
9929 plaintext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_decryption_sessionless()
9932 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption_sessionless()
9936 plaintext, in test_authenticated_decryption_sessionless()
9937 tdata->plaintext.data, in test_authenticated_decryption_sessionless()
9938 tdata->plaintext.len, in test_authenticated_decryption_sessionless()
10169 uint8_t **plaintext) in MD5_HMAC_create_op() argument
10175 plaintext_pad_len = RTE_ALIGN_CEIL(test_case->plaintext.len, in MD5_HMAC_create_op()
10178 *plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in MD5_HMAC_create_op()
10180 memcpy(*plaintext, test_case->plaintext.data, in MD5_HMAC_create_op()
10181 test_case->plaintext.len); in MD5_HMAC_create_op()
10196 sym_op->auth.data.length = test_case->plaintext.len; in MD5_HMAC_create_op()
10208 uint8_t *plaintext, *auth_tag; in test_MD5_HMAC_generate() local
10241 plaintext_pad_len = RTE_ALIGN_CEIL(test_case->plaintext.len, in test_MD5_HMAC_generate()
10244 if (MD5_HMAC_create_op(ut_params, test_case, &plaintext)) in test_MD5_HMAC_generate()
10266 auth_tag = plaintext + plaintext_pad_len; in test_MD5_HMAC_generate()
10281 uint8_t *plaintext; in test_MD5_HMAC_verify() local
10315 if (MD5_HMAC_create_op(ut_params, test_case, &plaintext)) in test_MD5_HMAC_verify()
10747 uint32_t plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in create_gmac_operation()
10784 sym_op->auth.data.length = tdata->plaintext.len; in create_gmac_operation()
10831 sym_op->auth.data.length = tdata->plaintext.len; in create_gmac_operation_sgl()
10889 uint8_t *auth_tag, *plaintext; in test_AES_GMAC_authentication() local
10909 if (tdata->plaintext.len > MBUF_SIZE) in test_AES_GMAC_authentication()
10919 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_AES_GMAC_authentication()
10925 if (tdata->plaintext.len == GMAC_LARGE_PLAINTEXT_LENGTH) in test_AES_GMAC_authentication()
10926 generate_gmac_large_plaintext(tdata->plaintext.data); in test_AES_GMAC_authentication()
10928 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication()
10930 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_AES_GMAC_authentication()
10932 memcpy(plaintext, tdata->plaintext.data, tdata->plaintext.len); in test_AES_GMAC_authentication()
10933 debug_hexdump(stdout, "plaintext:", plaintext, in test_AES_GMAC_authentication()
10934 tdata->plaintext.len); in test_AES_GMAC_authentication()
10964 auth_tag = plaintext + plaintext_pad_len; in test_AES_GMAC_authentication()
11009 uint8_t *plaintext; in test_AES_GMAC_authentication_verify() local
11038 if (tdata->plaintext.len > MBUF_SIZE) in test_AES_GMAC_authentication_verify()
11048 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_AES_GMAC_authentication_verify()
11055 if (tdata->plaintext.len == GMAC_LARGE_PLAINTEXT_LENGTH) in test_AES_GMAC_authentication_verify()
11056 generate_gmac_large_plaintext(tdata->plaintext.data); in test_AES_GMAC_authentication_verify()
11058 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_verify()
11060 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_AES_GMAC_authentication_verify()
11062 memcpy(plaintext, tdata->plaintext.data, tdata->plaintext.len); in test_AES_GMAC_authentication_verify()
11063 debug_hexdump(stdout, "plaintext:", plaintext, in test_AES_GMAC_authentication_verify()
11064 tdata->plaintext.len); in test_AES_GMAC_authentication_verify()
11131 uint8_t *auth_tag, *plaintext; in test_AES_GMAC_authentication_SGL() local
11154 if (fragsz > tdata->plaintext.len) in test_AES_GMAC_authentication_SGL()
11155 fragsz = tdata->plaintext.len; in test_AES_GMAC_authentication_SGL()
11172 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
11174 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_AES_GMAC_authentication_SGL()
11176 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_AES_GMAC_authentication_SGL()
11186 while (trn_data < tdata->plaintext.len) { in test_AES_GMAC_authentication_SGL()
11188 to_trn = (tdata->plaintext.len - trn_data < fragsz) ? in test_AES_GMAC_authentication_SGL()
11189 (tdata->plaintext.len - trn_data) : fragsz; in test_AES_GMAC_authentication_SGL()
11197 plaintext = (uint8_t *)rte_pktmbuf_append(buf, in test_AES_GMAC_authentication_SGL()
11200 memcpy(plaintext, tdata->plaintext.data + trn_data, in test_AES_GMAC_authentication_SGL()
11203 if (trn_data == tdata->plaintext.len) in test_AES_GMAC_authentication_SGL()
11218 tdata->plaintext.len); in test_AES_GMAC_authentication_SGL()
11296 } plaintext; member
11325 .plaintext = {
11350 .plaintext = {
11396 .plaintext = {
11443 .plaintext = {
11597 ut_params->ibuf, reference->plaintext.len); in create_auth_operation()
11610 sym_op->auth.data.length = reference->plaintext.len; in create_auth_operation()
11663 sym_op->auth.data.length = reference->plaintext.len; in create_auth_GMAC_operation()
11716 sym_op->auth.data.length = reference->plaintext.len; in create_cipher_auth_operation()
11756 uint8_t *plaintext; in test_authentication_verify_fail_when_data_corruption() local
11793 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authentication_verify_fail_when_data_corruption()
11794 reference->plaintext.len); in test_authentication_verify_fail_when_data_corruption()
11795 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_authentication_verify_fail_when_data_corruption()
11796 memcpy(plaintext, reference->plaintext.data, reference->plaintext.len); in test_authentication_verify_fail_when_data_corruption()
11798 debug_hexdump(stdout, "plaintext:", plaintext, in test_authentication_verify_fail_when_data_corruption()
11799 reference->plaintext.len); in test_authentication_verify_fail_when_data_corruption()
11808 data_corruption(plaintext); in test_authentication_verify_fail_when_data_corruption()
11810 tag_corruption(plaintext, reference->plaintext.len); in test_authentication_verify_fail_when_data_corruption()
11838 uint8_t *plaintext; in test_authentication_verify_GMAC_fail_when_corruption() local
11875 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authentication_verify_GMAC_fail_when_corruption()
11876 reference->plaintext.len); in test_authentication_verify_GMAC_fail_when_corruption()
11877 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_authentication_verify_GMAC_fail_when_corruption()
11878 memcpy(plaintext, reference->plaintext.data, reference->plaintext.len); in test_authentication_verify_GMAC_fail_when_corruption()
11880 debug_hexdump(stdout, "plaintext:", plaintext, in test_authentication_verify_GMAC_fail_when_corruption()
11881 reference->plaintext.len); in test_authentication_verify_GMAC_fail_when_corruption()
11892 data_corruption(plaintext); in test_authentication_verify_GMAC_fail_when_corruption()
11894 tag_corruption(plaintext, reference->aad.len); in test_authentication_verify_GMAC_fail_when_corruption()
12010 uint8_t *authciphertext, *plaintext, *auth_tag; in test_authenticated_encryt_with_esn() local
12082 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encryt_with_esn()
12083 reference->plaintext.len); in test_authenticated_encryt_with_esn()
12084 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_authenticated_encryt_with_esn()
12085 memcpy(plaintext, reference->plaintext.data, reference->plaintext.len); in test_authenticated_encryt_with_esn()
12110 plaintext_pad_len = RTE_ALIGN_CEIL(reference->plaintext.len, 16); in test_authenticated_encryt_with_esn()
12332 sym_op->aead.data.length = tdata->plaintext.len; in create_aead_operation_SGL()
12352 uint8_t *plaintext, *ciphertext, *auth_tag; in test_authenticated_encryption_SGL() local
12370 unsigned int sgl_in = fragsz < tdata->plaintext.len; in test_authenticated_encryption_SGL()
12383 unsigned int sgl_in = fragsz < tdata->plaintext.len; in test_authenticated_encryption_SGL()
12385 tdata->plaintext.len; in test_authenticated_encryption_SGL()
12404 if (fragsz > tdata->plaintext.len) in test_authenticated_encryption_SGL()
12405 fragsz = tdata->plaintext.len; in test_authenticated_encryption_SGL()
12410 if (fragsz_oop > tdata->plaintext.len) in test_authenticated_encryption_SGL()
12411 frag_size_oop = tdata->plaintext.len; in test_authenticated_encryption_SGL()
12418 if (tdata->plaintext.len % fragsz != 0) { in test_authenticated_encryption_SGL()
12419 if (tdata->plaintext.len / fragsz + 1 > SGL_MAX_NO) in test_authenticated_encryption_SGL()
12422 if (tdata->plaintext.len / fragsz > SGL_MAX_NO) in test_authenticated_encryption_SGL()
12452 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encryption_SGL()
12455 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_authenticated_encryption_SGL()
12465 while (trn_data < tdata->plaintext.len) { in test_authenticated_encryption_SGL()
12467 to_trn = (tdata->plaintext.len - trn_data < fragsz) ? in test_authenticated_encryption_SGL()
12468 (tdata->plaintext.len - trn_data) : fragsz; in test_authenticated_encryption_SGL()
12488 plaintext = (uint8_t *)rte_pktmbuf_append(buf, in test_authenticated_encryption_SGL()
12491 memcpy(plaintext, tdata->plaintext.data + trn_data, in test_authenticated_encryption_SGL()
12494 if (trn_data == tdata->plaintext.len) { in test_authenticated_encryption_SGL()
12514 if (frag_size_oop == tdata->plaintext.len) { in test_authenticated_encryption_SGL()
12520 tdata->plaintext.len + prepend_len); in test_authenticated_encryption_SGL()
12524 while (trn_data < tdata->plaintext.len) { in test_authenticated_encryption_SGL()
12527 (tdata->plaintext.len - trn_data < in test_authenticated_encryption_SGL()
12529 (tdata->plaintext.len - trn_data) : in test_authenticated_encryption_SGL()
12543 if (trn_data == tdata->plaintext.len) { in test_authenticated_encryption_SGL()
12564 tdata->plaintext.len); in test_authenticated_encryption_SGL()
12662 gcm_test_case_8.plaintext.len); in test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_1seg()