Lines Matching refs:plaintext

2836 	unsigned int plaintext_len = ceil_byte_length(tdata->plaintext.len);  in create_wireless_cipher_hash_operation()
3117 uint8_t *plaintext; in test_snow3g_authentication() local
3161 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_authentication()
3165 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_authentication()
3167 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_authentication()
3208 uint8_t *plaintext; in test_snow3g_authentication_verify() local
3251 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_authentication_verify()
3255 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_authentication_verify()
3257 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_snow3g_authentication_verify()
3299 uint8_t *plaintext; in test_kasumi_authentication() local
3337 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_authentication()
3341 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_authentication()
3343 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_authentication()
3349 tdata->plaintext.len, in test_kasumi_authentication()
3388 uint8_t *plaintext; in test_kasumi_authentication_verify() local
3425 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_authentication_verify()
3429 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_authentication_verify()
3431 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_authentication_verify()
3439 tdata->plaintext.len, in test_kasumi_authentication_verify()
3610 uint8_t *plaintext, *ciphertext; in test_kasumi_encryption() local
3650 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption()
3654 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
3680 ciphertext = plaintext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_encryption()
3747 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_sgl()
3757 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_sgl()
3806 uint8_t *plaintext, *ciphertext; in test_kasumi_encryption_oop() local
3841 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_oop()
3845 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
3868 ciphertext = plaintext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_encryption_oop()
3931 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_encryption_oop_sgl()
3943 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_kasumi_encryption_oop_sgl()
3985 uint8_t *ciphertext, *plaintext; in test_kasumi_decryption_oop() local
4044 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_decryption_oop()
4046 plaintext = ciphertext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_decryption_oop()
4048 debug_hexdump(stdout, "plaintext:", plaintext, ciphertext_len); in test_kasumi_decryption_oop()
4050 const uint8_t *reference_plaintext = tdata->plaintext.data + in test_kasumi_decryption_oop()
4054 plaintext, in test_kasumi_decryption_oop()
4068 uint8_t *ciphertext, *plaintext; in test_kasumi_decryption() local
4136 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_decryption()
4138 plaintext = ciphertext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_decryption()
4140 debug_hexdump(stdout, "plaintext:", plaintext, ciphertext_len); in test_kasumi_decryption()
4142 const uint8_t *reference_plaintext = tdata->plaintext.data + in test_kasumi_decryption()
4146 plaintext, in test_kasumi_decryption()
4160 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption() local
4200 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption()
4204 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
4230 ciphertext = plaintext; in test_snow3g_encryption()
4249 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption_oop() local
4300 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption_oop()
4304 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
4331 ciphertext = plaintext; in test_snow3g_encryption_oop()
4398 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_encryption_oop_sgl()
4413 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_snow3g_encryption_oop_sgl()
4476 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption_offset_oop() local
4528 plaintext_len = ceil_byte_length(tdata->plaintext.len + extra_offset); in test_snow3g_encryption_offset_oop()
4535 plaintext = (uint8_t *) rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_encryption_offset_oop()
4540 memcpy(plaintext, tdata->plaintext.data, (tdata->plaintext.len >> 3)); in test_snow3g_encryption_offset_oop()
4541 buffer_shift_right(plaintext, tdata->plaintext.len, extra_offset); in test_snow3g_encryption_offset_oop()
4544 rte_hexdump(stdout, "plaintext:", plaintext, tdata->plaintext.len); in test_snow3g_encryption_offset_oop()
4566 ciphertext = plaintext; in test_snow3g_encryption_offset_oop()
4598 uint8_t *plaintext, *ciphertext; in test_snow3g_decryption() local
4665 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_decryption()
4667 plaintext = ciphertext; in test_snow3g_decryption()
4669 debug_hexdump(stdout, "plaintext:", plaintext, ciphertext_len); in test_snow3g_decryption()
4672 TEST_ASSERT_BUFFERS_ARE_EQUAL_BIT(plaintext, in test_snow3g_decryption()
4673 tdata->plaintext.data, in test_snow3g_decryption()
4686 uint8_t *plaintext, *ciphertext; in test_snow3g_decryption_oop() local
4765 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_decryption_oop()
4767 plaintext = ciphertext; in test_snow3g_decryption_oop()
4769 debug_hexdump(stdout, "plaintext:", plaintext, ciphertext_len); in test_snow3g_decryption_oop()
4772 TEST_ASSERT_BUFFERS_ARE_EQUAL_BIT(plaintext, in test_snow3g_decryption_oop()
4773 tdata->plaintext.data, in test_snow3g_decryption_oop()
4787 uint8_t *plaintext, *ciphertext; in test_zuc_cipher_auth() local
4841 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_cipher_auth()
4845 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
4867 ciphertext = plaintext; in test_zuc_cipher_auth()
4897 uint8_t *plaintext, *ciphertext; in test_snow3g_cipher_auth() local
4944 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_cipher_auth()
4948 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
4979 ciphertext = plaintext; in test_snow3g_cipher_auth()
5010 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_snow3g_auth_cipher() local
5080 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_auth_cipher()
5093 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
5132 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_snow3g_auth_cipher()
5135 plaintext = ciphertext + in test_snow3g_auth_cipher()
5138 debug_hexdump(stdout, "plaintext:", plaintext, in test_snow3g_auth_cipher()
5139 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_snow3g_auth_cipher()
5141 tdata->plaintext.data, in test_snow3g_auth_cipher()
5142 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_snow3g_auth_cipher()
5148 ciphertext = plaintext; in test_snow3g_auth_cipher()
5168 plaintext, in test_snow3g_auth_cipher()
5169 tdata->plaintext.data, in test_snow3g_auth_cipher()
5170 (tdata->plaintext.len - tdata->cipher.offset_bits - in test_snow3g_auth_cipher()
5201 const uint8_t *plaintext = NULL; in test_snow3g_auth_cipher_sgl() local
5275 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_snow3g_auth_cipher_sgl()
5300 tdata->plaintext.data); in test_snow3g_auth_cipher_sgl()
5301 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
5303 debug_hexdump(stdout, "plaintext:", plaintext, in test_snow3g_auth_cipher_sgl()
5339 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_auth_cipher_sgl()
5342 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
5345 debug_hexdump(stdout, "plaintext:", plaintext, in test_snow3g_auth_cipher_sgl()
5346 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_snow3g_auth_cipher_sgl()
5348 tdata->plaintext.data, in test_snow3g_auth_cipher_sgl()
5349 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_snow3g_auth_cipher_sgl()
5383 plaintext, in test_snow3g_auth_cipher_sgl()
5384 tdata->plaintext.data, in test_snow3g_auth_cipher_sgl()
5385 (tdata->plaintext.len - tdata->cipher.offset_bits - in test_snow3g_auth_cipher_sgl()
5416 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_kasumi_auth_cipher() local
5487 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_auth_cipher()
5500 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_auth_cipher()
5502 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_kasumi_auth_cipher()
5505 debug_hexdump(stdout, "plaintext:", plaintext, in test_kasumi_auth_cipher()
5541 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_kasumi_auth_cipher()
5544 plaintext = ciphertext; in test_kasumi_auth_cipher()
5546 debug_hexdump(stdout, "plaintext:", plaintext, in test_kasumi_auth_cipher()
5547 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_kasumi_auth_cipher()
5549 tdata->plaintext.data, in test_kasumi_auth_cipher()
5550 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_kasumi_auth_cipher()
5556 ciphertext = plaintext; in test_kasumi_auth_cipher()
5577 plaintext, in test_kasumi_auth_cipher()
5578 tdata->plaintext.data, in test_kasumi_auth_cipher()
5579 tdata->plaintext.len >> 3, in test_kasumi_auth_cipher()
5606 const uint8_t *plaintext = NULL; in test_kasumi_auth_cipher_sgl() local
5680 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_auth_cipher_sgl()
5705 tdata->plaintext.data); in test_kasumi_auth_cipher_sgl()
5706 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5708 debug_hexdump(stdout, "plaintext:", plaintext, in test_kasumi_auth_cipher_sgl()
5744 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_auth_cipher_sgl()
5747 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5750 debug_hexdump(stdout, "plaintext:", plaintext, in test_kasumi_auth_cipher_sgl()
5751 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_kasumi_auth_cipher_sgl()
5753 tdata->plaintext.data, in test_kasumi_auth_cipher_sgl()
5754 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_kasumi_auth_cipher_sgl()
5788 plaintext, in test_kasumi_auth_cipher_sgl()
5789 tdata->plaintext.data, in test_kasumi_auth_cipher_sgl()
5790 tdata->plaintext.len >> 3, in test_kasumi_auth_cipher_sgl()
5816 uint8_t *plaintext, *ciphertext; in test_kasumi_cipher_auth() local
5865 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_kasumi_cipher_auth()
5869 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
5987 uint8_t *plaintext, *ciphertext; in test_zuc_encryption() local
6024 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_encryption()
6028 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
6037 tdata->plaintext.len, in test_zuc_encryption()
6054 ciphertext = plaintext; in test_zuc_encryption()
6105 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_encryption_sgl()
6115 tdata->plaintext.data); in test_zuc_encryption_sgl()
6128 pktmbuf_write(ut_params->ibuf, 0, plaintext_len, tdata->plaintext.data); in test_zuc_encryption_sgl()
6132 tdata->cipher_iv.len, tdata->plaintext.len, in test_zuc_encryption_sgl()
6175 uint8_t *plaintext; in test_zuc_authentication() local
6218 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_authentication()
6222 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_authentication()
6224 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_authentication()
6265 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_zuc_auth_cipher() local
6342 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_auth_cipher()
6354 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_auth_cipher()
6356 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_zuc_auth_cipher()
6357 debug_hexdump(stdout, "plaintext:", plaintext, in test_zuc_auth_cipher()
6396 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_zuc_auth_cipher()
6399 plaintext = ciphertext; in test_zuc_auth_cipher()
6401 debug_hexdump(stdout, "plaintext:", plaintext, in test_zuc_auth_cipher()
6402 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_zuc_auth_cipher()
6404 tdata->plaintext.data, in test_zuc_auth_cipher()
6405 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_zuc_auth_cipher()
6411 ciphertext = plaintext; in test_zuc_auth_cipher()
6432 plaintext, in test_zuc_auth_cipher()
6433 tdata->plaintext.data, in test_zuc_auth_cipher()
6434 tdata->plaintext.len >> 3, in test_zuc_auth_cipher()
6461 const uint8_t *plaintext = NULL; in test_zuc_auth_cipher_sgl() local
6531 plaintext_len = ceil_byte_length(tdata->plaintext.len); in test_zuc_auth_cipher_sgl()
6556 tdata->plaintext.data); in test_zuc_auth_cipher_sgl()
6557 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6559 debug_hexdump(stdout, "plaintext:", plaintext, in test_zuc_auth_cipher_sgl()
6595 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_zuc_auth_cipher_sgl()
6598 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6601 debug_hexdump(stdout, "plaintext:", plaintext, in test_zuc_auth_cipher_sgl()
6602 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_zuc_auth_cipher_sgl()
6604 tdata->plaintext.data, in test_zuc_auth_cipher_sgl()
6605 (tdata->plaintext.len >> 3) - tdata->digest.len); in test_zuc_auth_cipher_sgl()
6639 plaintext, in test_zuc_auth_cipher_sgl()
6640 tdata->plaintext.data, in test_zuc_auth_cipher_sgl()
6641 tdata->plaintext.len >> 3, in test_zuc_auth_cipher_sgl()
6850 output->plaintext.len = pattern->plaintext.len; in snow3g_hash_test_vector_setup()
6852 memcpy(output->plaintext.data, in snow3g_hash_test_vector_setup()
6853 pattern->plaintext.data, pattern->plaintext.len >> 3); in snow3g_hash_test_vector_setup()
6858 &pattern->plaintext.data[pattern->digest.offset_bytes], in snow3g_hash_test_vector_setup()
7348 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_mixed_auth_cipher() local
7410 plaintext_len = ceil_byte_length(tdata->plaintext.len_bits); in test_mixed_auth_cipher()
7422 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, 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()
7467 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_mixed_auth_cipher()
7470 plaintext = ciphertext + in test_mixed_auth_cipher()
7473 debug_hexdump(stdout, "plaintext:", plaintext, in test_mixed_auth_cipher()
7474 tdata->plaintext.len_bits >> 3); in test_mixed_auth_cipher()
7476 tdata->plaintext.data, in test_mixed_auth_cipher()
7477 tdata->plaintext.len_bits >> 3); in test_mixed_auth_cipher()
7483 ciphertext = plaintext; in test_mixed_auth_cipher()
7513 plaintext, in test_mixed_auth_cipher()
7514 tdata->plaintext.data, in test_mixed_auth_cipher()
7515 tdata->plaintext.len_bits >> 3, in test_mixed_auth_cipher()
7541 const uint8_t *plaintext = NULL; in test_mixed_auth_cipher_sgl() local
7607 plaintext_len = ceil_byte_length(tdata->plaintext.len_bits); in test_mixed_auth_cipher_sgl()
7632 tdata->plaintext.data); in test_mixed_auth_cipher_sgl()
7633 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7635 debug_hexdump(stdout, "plaintext:", plaintext, in test_mixed_auth_cipher_sgl()
7676 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_mixed_auth_cipher_sgl()
7679 plaintext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7682 debug_hexdump(stdout, "plaintext:", plaintext, in test_mixed_auth_cipher_sgl()
7683 (tdata->plaintext.len_bits >> 3) - in test_mixed_auth_cipher_sgl()
7686 tdata->plaintext.data, in test_mixed_auth_cipher_sgl()
7687 (tdata->plaintext.len_bits >> 3) - in test_mixed_auth_cipher_sgl()
7733 plaintext, in test_mixed_auth_cipher_sgl()
7734 tdata->plaintext.data, in test_mixed_auth_cipher_sgl()
7735 tdata->plaintext.len_bits >> 3, in test_mixed_auth_cipher_sgl()
8060 uint8_t *plaintext, *ciphertext; in create_aead_operation() local
8124 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in create_aead_operation()
8125 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
8127 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in create_aead_operation()
8129 memcpy(plaintext, tdata->plaintext.data, tdata->plaintext.len); in create_aead_operation()
8130 debug_hexdump(stdout, "plaintext:", plaintext, in create_aead_operation()
8131 tdata->plaintext.len); in create_aead_operation()
8156 plaintext = (uint8_t *)rte_pktmbuf_append( in create_aead_operation()
8159 TEST_ASSERT_NOT_NULL(plaintext, in create_aead_operation()
8162 memset(plaintext + aad_pad_len, 0, in create_aead_operation()
8163 tdata->plaintext.len); in create_aead_operation()
8197 sym_op->aead.data.length = tdata->plaintext.len; in create_aead_operation()
8283 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_authenticated_encryption()
8368 uint8_t *plaintext; in test_pdcp_proto() local
8390 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_pdcp_proto()
8392 memcpy(plaintext, input_vec, input_vec_len); in test_pdcp_proto()
8549 uint8_t *plaintext; in test_pdcp_proto_SGL() local
8613 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_pdcp_proto_SGL()
8615 memcpy(plaintext, input_vec, plaintext_len); in test_pdcp_proto_SGL()
8647 plaintext = (uint8_t *)rte_pktmbuf_append(buf, in test_pdcp_proto_SGL()
8650 memcpy(plaintext, input_vec + trn_data, to_trn); in test_pdcp_proto_SGL()
10245 uint8_t *plaintext = NULL; in test_docsis_proto_uplink() local
10398 plaintext = ciphertext; in test_docsis_proto_uplink()
10400 if (memcmp(plaintext, d_td->plaintext.data, in test_docsis_proto_uplink()
10401 d_td->plaintext.len - crc_data_len)) { in test_docsis_proto_uplink()
10404 rte_hexdump(stdout, "expected", d_td->plaintext.data, in test_docsis_proto_uplink()
10405 d_td->plaintext.len); in test_docsis_proto_uplink()
10406 rte_hexdump(stdout, "actual", plaintext, d_td->plaintext.len); in test_docsis_proto_uplink()
10431 uint8_t *plaintext = NULL; in test_docsis_proto_downlink() local
10488 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_docsis_proto_downlink()
10489 d_td->plaintext.len); in test_docsis_proto_downlink()
10491 memcpy(plaintext, d_td->plaintext.data, d_td->plaintext.len); in test_docsis_proto_downlink()
10536 crc_len = d_td->plaintext.no_crc == false ? in test_docsis_proto_downlink()
10537 (d_td->plaintext.len - in test_docsis_proto_downlink()
10538 d_td->plaintext.crc_offset - in test_docsis_proto_downlink()
10543 ut_params->op->sym->auth.data.offset = d_td->plaintext.crc_offset; in test_docsis_proto_downlink()
10546 cipher_len = d_td->plaintext.no_cipher == false ? in test_docsis_proto_downlink()
10547 (d_td->plaintext.len - in test_docsis_proto_downlink()
10548 d_td->plaintext.cipher_offset) : in test_docsis_proto_downlink()
10552 ut_params->op->sym->cipher.data.offset = d_td->plaintext.cipher_offset; in test_docsis_proto_downlink()
10582 ciphertext = plaintext; in test_docsis_proto_downlink()
10783 tdata.plaintext.data[0] += 1; in test_AES_GCM_auth_encryption_fail_in_data_corrupt()
10865 uint8_t *plaintext; in test_authenticated_decryption() local
10938 plaintext = rte_pktmbuf_mtod(ut_params->op->sym->m_dst, in test_authenticated_decryption()
10941 plaintext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_src, in test_authenticated_decryption()
10945 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption()
10949 plaintext, in test_authenticated_decryption()
10950 tdata->plaintext.data, in test_authenticated_decryption()
10951 tdata->plaintext.len, in test_authenticated_decryption()
11134 tdata.plaintext.data[0] += 1; in test_AES_GCM_auth_decryption_fail_in_data_corrupt()
11275 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_authenticated_encryption_oop()
11314 uint8_t *plaintext; in test_authenticated_decryption_oop() local
11379 plaintext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_authenticated_decryption_oop()
11382 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption_oop()
11386 plaintext, in test_authenticated_decryption_oop()
11387 tdata->plaintext.data, in test_authenticated_decryption_oop()
11388 tdata->plaintext.len, in test_authenticated_decryption_oop()
11473 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_authenticated_encryption_sessionless()
11514 uint8_t *plaintext; in test_authenticated_decryption_sessionless() local
11586 plaintext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_decryption_sessionless()
11589 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption_sessionless()
11593 plaintext, in test_authenticated_decryption_sessionless()
11594 tdata->plaintext.data, in test_authenticated_decryption_sessionless()
11595 tdata->plaintext.len, in test_authenticated_decryption_sessionless()
11829 uint8_t **plaintext) in MD5_HMAC_create_op() argument
11835 plaintext_pad_len = RTE_ALIGN_CEIL(test_case->plaintext.len, in MD5_HMAC_create_op()
11838 *plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in MD5_HMAC_create_op()
11840 memcpy(*plaintext, test_case->plaintext.data, in MD5_HMAC_create_op()
11841 test_case->plaintext.len); in MD5_HMAC_create_op()
11856 sym_op->auth.data.length = test_case->plaintext.len; in MD5_HMAC_create_op()
11868 uint8_t *plaintext, *auth_tag; in test_MD5_HMAC_generate() local
11901 plaintext_pad_len = RTE_ALIGN_CEIL(test_case->plaintext.len, in test_MD5_HMAC_generate()
11904 if (MD5_HMAC_create_op(ut_params, test_case, &plaintext)) in test_MD5_HMAC_generate()
11926 auth_tag = plaintext + plaintext_pad_len; in test_MD5_HMAC_generate()
11941 uint8_t *plaintext; in test_MD5_HMAC_verify() local
11975 if (MD5_HMAC_create_op(ut_params, test_case, &plaintext)) in test_MD5_HMAC_verify()
12662 uint32_t plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in create_gmac_operation()
12699 sym_op->auth.data.length = tdata->plaintext.len; in create_gmac_operation()
12746 sym_op->auth.data.length = tdata->plaintext.len; in create_gmac_operation_sgl()
12804 uint8_t *auth_tag, *plaintext; in test_AES_GMAC_authentication() local
12826 if (tdata->plaintext.len > MBUF_SIZE) in test_AES_GMAC_authentication()
12836 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_AES_GMAC_authentication()
12842 if (tdata->plaintext.len == GMAC_LARGE_PLAINTEXT_LENGTH) in test_AES_GMAC_authentication()
12843 generate_gmac_large_plaintext(tdata->plaintext.data); in test_AES_GMAC_authentication()
12845 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication()
12847 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_AES_GMAC_authentication()
12849 memcpy(plaintext, tdata->plaintext.data, tdata->plaintext.len); in test_AES_GMAC_authentication()
12850 debug_hexdump(stdout, "plaintext:", plaintext, in test_AES_GMAC_authentication()
12851 tdata->plaintext.len); in test_AES_GMAC_authentication()
12881 auth_tag = plaintext + plaintext_pad_len; in test_AES_GMAC_authentication()
12926 uint8_t *plaintext; in test_AES_GMAC_authentication_verify() local
12957 if (tdata->plaintext.len > MBUF_SIZE) in test_AES_GMAC_authentication_verify()
12967 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->plaintext.len, 16); in test_AES_GMAC_authentication_verify()
12974 if (tdata->plaintext.len == GMAC_LARGE_PLAINTEXT_LENGTH) in test_AES_GMAC_authentication_verify()
12975 generate_gmac_large_plaintext(tdata->plaintext.data); in test_AES_GMAC_authentication_verify()
12977 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_verify()
12979 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_AES_GMAC_authentication_verify()
12981 memcpy(plaintext, tdata->plaintext.data, tdata->plaintext.len); in test_AES_GMAC_authentication_verify()
12982 debug_hexdump(stdout, "plaintext:", plaintext, in test_AES_GMAC_authentication_verify()
12983 tdata->plaintext.len); in test_AES_GMAC_authentication_verify()
13050 uint8_t *auth_tag, *plaintext; in test_AES_GMAC_authentication_SGL() local
13073 if (fragsz > tdata->plaintext.len) in test_AES_GMAC_authentication_SGL()
13074 fragsz = tdata->plaintext.len; in test_AES_GMAC_authentication_SGL()
13093 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_AES_GMAC_authentication_SGL()
13095 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_AES_GMAC_authentication_SGL()
13097 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_AES_GMAC_authentication_SGL()
13107 while (trn_data < tdata->plaintext.len) { in test_AES_GMAC_authentication_SGL()
13109 to_trn = (tdata->plaintext.len - trn_data < fragsz) ? in test_AES_GMAC_authentication_SGL()
13110 (tdata->plaintext.len - trn_data) : fragsz; in test_AES_GMAC_authentication_SGL()
13118 plaintext = (uint8_t *)rte_pktmbuf_append(buf, in test_AES_GMAC_authentication_SGL()
13121 memcpy(plaintext, tdata->plaintext.data + trn_data, in test_AES_GMAC_authentication_SGL()
13124 if (trn_data == tdata->plaintext.len) in test_AES_GMAC_authentication_SGL()
13139 tdata->plaintext.len); in test_AES_GMAC_authentication_SGL()
13217 } plaintext; member
13246 .plaintext = {
13271 .plaintext = {
13317 .plaintext = {
13364 .plaintext = {
13518 ut_params->ibuf, reference->plaintext.len); in create_auth_operation()
13531 sym_op->auth.data.length = reference->plaintext.len; in create_auth_operation()
13584 sym_op->auth.data.length = reference->plaintext.len; in create_auth_GMAC_operation()
13637 sym_op->auth.data.length = reference->plaintext.len; in create_cipher_auth_operation()
13677 uint8_t *plaintext; in test_authentication_verify_fail_when_data_corruption() local
13717 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authentication_verify_fail_when_data_corruption()
13718 reference->plaintext.len); in test_authentication_verify_fail_when_data_corruption()
13719 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_authentication_verify_fail_when_data_corruption()
13720 memcpy(plaintext, reference->plaintext.data, reference->plaintext.len); in test_authentication_verify_fail_when_data_corruption()
13722 debug_hexdump(stdout, "plaintext:", plaintext, in test_authentication_verify_fail_when_data_corruption()
13723 reference->plaintext.len); in test_authentication_verify_fail_when_data_corruption()
13732 data_corruption(plaintext); in test_authentication_verify_fail_when_data_corruption()
13734 tag_corruption(plaintext, reference->plaintext.len); in test_authentication_verify_fail_when_data_corruption()
13765 uint8_t *plaintext; in test_authentication_verify_GMAC_fail_when_corruption() local
13802 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authentication_verify_GMAC_fail_when_corruption()
13803 reference->plaintext.len); in test_authentication_verify_GMAC_fail_when_corruption()
13804 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_authentication_verify_GMAC_fail_when_corruption()
13805 memcpy(plaintext, reference->plaintext.data, reference->plaintext.len); in test_authentication_verify_GMAC_fail_when_corruption()
13807 debug_hexdump(stdout, "plaintext:", plaintext, in test_authentication_verify_GMAC_fail_when_corruption()
13808 reference->plaintext.len); in test_authentication_verify_GMAC_fail_when_corruption()
13819 data_corruption(plaintext); in test_authentication_verify_GMAC_fail_when_corruption()
13821 tag_corruption(plaintext, reference->aad.len); in test_authentication_verify_GMAC_fail_when_corruption()
13940 uint8_t *authciphertext, *plaintext, *auth_tag; in test_authenticated_encrypt_with_esn() local
14017 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encrypt_with_esn()
14018 reference->plaintext.len); in test_authenticated_encrypt_with_esn()
14019 TEST_ASSERT_NOT_NULL(plaintext, "no room to append plaintext"); in test_authenticated_encrypt_with_esn()
14020 memcpy(plaintext, reference->plaintext.data, reference->plaintext.len); in test_authenticated_encrypt_with_esn()
14045 plaintext_pad_len = RTE_ALIGN_CEIL(reference->plaintext.len, 16); in test_authenticated_encrypt_with_esn()
14271 sym_op->aead.data.length = tdata->plaintext.len; in create_aead_operation_SGL()
14291 uint8_t *plaintext, *ciphertext, *auth_tag; in test_authenticated_encryption_SGL() local
14309 unsigned int sgl_in = fragsz < tdata->plaintext.len; in test_authenticated_encryption_SGL()
14322 unsigned int sgl_in = fragsz < tdata->plaintext.len; in test_authenticated_encryption_SGL()
14324 tdata->plaintext.len; in test_authenticated_encryption_SGL()
14343 if (fragsz > tdata->plaintext.len) in test_authenticated_encryption_SGL()
14344 fragsz = tdata->plaintext.len; in test_authenticated_encryption_SGL()
14349 if (fragsz_oop > tdata->plaintext.len) in test_authenticated_encryption_SGL()
14350 frag_size_oop = tdata->plaintext.len; in test_authenticated_encryption_SGL()
14357 if (tdata->plaintext.len % fragsz != 0) { in test_authenticated_encryption_SGL()
14358 if (tdata->plaintext.len / fragsz + 1 > SGL_MAX_NO) in test_authenticated_encryption_SGL()
14361 if (tdata->plaintext.len / fragsz > SGL_MAX_NO) in test_authenticated_encryption_SGL()
14391 plaintext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_encryption_SGL()
14394 memcpy(plaintext, tdata->plaintext.data, plaintext_len); in test_authenticated_encryption_SGL()
14404 while (trn_data < tdata->plaintext.len) { in test_authenticated_encryption_SGL()
14406 to_trn = (tdata->plaintext.len - trn_data < fragsz) ? in test_authenticated_encryption_SGL()
14407 (tdata->plaintext.len - trn_data) : fragsz; in test_authenticated_encryption_SGL()
14427 plaintext = (uint8_t *)rte_pktmbuf_append(buf, in test_authenticated_encryption_SGL()
14430 memcpy(plaintext, tdata->plaintext.data + trn_data, in test_authenticated_encryption_SGL()
14433 if (trn_data == tdata->plaintext.len) { in test_authenticated_encryption_SGL()
14453 if (frag_size_oop == tdata->plaintext.len) { in test_authenticated_encryption_SGL()
14459 tdata->plaintext.len + prepend_len); in test_authenticated_encryption_SGL()
14463 while (trn_data < tdata->plaintext.len) { in test_authenticated_encryption_SGL()
14466 (tdata->plaintext.len - trn_data < in test_authenticated_encryption_SGL()
14468 (tdata->plaintext.len - trn_data) : in test_authenticated_encryption_SGL()
14482 if (trn_data == tdata->plaintext.len) { in test_authenticated_encryption_SGL()
14503 tdata->plaintext.len); in test_authenticated_encryption_SGL()
14601 gcm_test_case_8.plaintext.len); in test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_1seg()
14761 chacha20_poly1305_case_2.plaintext.len); in test_chacha20_poly1305_encrypt_SGL_out_of_place()