Lines Matching refs:ciphertext

2252 	uint8_t *ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_src,  in test_AES_CBC_HMAC_SHA1_encrypt_digest()  local
2255 TEST_ASSERT_BUFFERS_ARE_EQUAL(ciphertext, in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2260 uint8_t *digest = ciphertext + QUOTE_512_BYTES; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
3610 uint8_t *plaintext, *ciphertext; in test_kasumi_encryption() local
3678 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_encryption()
3680 ciphertext = plaintext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_encryption()
3682 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption()
3684 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_encryption()
3688 ciphertext, in test_kasumi_encryption()
3707 const uint8_t *ciphertext; in test_kasumi_encryption_sgl() local
3778 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_encryption_sgl()
3781 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_encryption_sgl()
3786 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption_sgl()
3788 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_encryption_sgl()
3792 ciphertext, in test_kasumi_encryption_sgl()
3806 uint8_t *plaintext, *ciphertext; in test_kasumi_encryption_oop() local
3866 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_encryption_oop()
3868 ciphertext = plaintext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_encryption_oop()
3870 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption_oop()
3872 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_encryption_oop()
3876 ciphertext, in test_kasumi_encryption_oop()
3893 const uint8_t *ciphertext; in test_kasumi_encryption_oop_sgl() local
3959 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_encryption_oop_sgl()
3962 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_encryption_oop_sgl()
3966 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_encryption_oop_sgl()
3970 ciphertext, in test_kasumi_encryption_oop_sgl()
3985 uint8_t *ciphertext, *plaintext; in test_kasumi_decryption_oop() local
4019 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_kasumi_decryption_oop()
4023 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_decryption_oop()
4026 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_kasumi_decryption_oop()
4028 debug_hexdump(stdout, "ciphertext:", ciphertext, ciphertext_len); in test_kasumi_decryption_oop()
4046 plaintext = ciphertext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_decryption_oop()
4068 uint8_t *ciphertext, *plaintext; in test_kasumi_decryption() local
4108 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_kasumi_decryption()
4112 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_decryption()
4114 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_kasumi_decryption()
4116 debug_hexdump(stdout, "ciphertext:", ciphertext, ciphertext_len); in test_kasumi_decryption()
4138 plaintext = ciphertext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_decryption()
4160 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption() local
4228 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption()
4230 ciphertext = plaintext; in test_snow3g_encryption()
4232 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption()
4236 ciphertext, in test_snow3g_encryption()
4237 tdata->ciphertext.data, in test_snow3g_encryption()
4249 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption_oop() local
4329 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption_oop()
4331 ciphertext = plaintext; in test_snow3g_encryption_oop()
4333 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_oop()
4337 ciphertext, in test_snow3g_encryption_oop()
4338 tdata->ciphertext.data, in test_snow3g_encryption_oop()
4354 const uint8_t *ciphertext; in test_snow3g_encryption_oop_sgl() local
4433 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_encryption_oop_sgl()
4436 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_encryption_oop_sgl()
4439 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_oop_sgl()
4443 ciphertext, in test_snow3g_encryption_oop_sgl()
4444 tdata->ciphertext.data, in test_snow3g_encryption_oop_sgl()
4476 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption_offset_oop() local
4564 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption_offset_oop()
4566 ciphertext = plaintext; in test_snow3g_encryption_offset_oop()
4569 rte_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_offset_oop()
4577 memcpy(expected_ciphertext_shifted, tdata->ciphertext.data, in test_snow3g_encryption_offset_oop()
4578 ceil_byte_length(tdata->ciphertext.len)); in test_snow3g_encryption_offset_oop()
4579 buffer_shift_right(expected_ciphertext_shifted, tdata->ciphertext.len, in test_snow3g_encryption_offset_oop()
4583 ciphertext, in test_snow3g_encryption_offset_oop()
4598 uint8_t *plaintext, *ciphertext; in test_snow3g_decryption() local
4638 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_snow3g_decryption()
4642 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_decryption()
4644 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_snow3g_decryption()
4646 debug_hexdump(stdout, "ciphertext:", ciphertext, ciphertext_len); in test_snow3g_decryption()
4667 plaintext = ciphertext; in test_snow3g_decryption()
4686 uint8_t *plaintext, *ciphertext; in test_snow3g_decryption_oop() local
4737 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_snow3g_decryption_oop()
4741 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_decryption_oop()
4744 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_snow3g_decryption_oop()
4746 debug_hexdump(stdout, "ciphertext:", ciphertext, ciphertext_len); in test_snow3g_decryption_oop()
4767 plaintext = ciphertext; in test_snow3g_decryption_oop()
4787 uint8_t *plaintext, *ciphertext; in test_zuc_cipher_auth() local
4865 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_zuc_cipher_auth()
4867 ciphertext = plaintext; in test_zuc_cipher_auth()
4869 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_cipher_auth()
4872 ciphertext, in test_zuc_cipher_auth()
4873 tdata->ciphertext.data, in test_zuc_cipher_auth()
4897 uint8_t *plaintext, *ciphertext; in test_snow3g_cipher_auth() local
4977 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_cipher_auth()
4979 ciphertext = plaintext; in test_snow3g_cipher_auth()
4981 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_cipher_auth()
4984 ciphertext, in test_snow3g_cipher_auth()
4985 tdata->ciphertext.data, in test_snow3g_cipher_auth()
5010 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_snow3g_auth_cipher() local
5079 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_snow3g_auth_cipher()
5085 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_auth_cipher()
5087 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_snow3g_auth_cipher()
5090 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_snow3g_auth_cipher()
5135 plaintext = ciphertext + in test_snow3g_auth_cipher()
5145 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_snow3g_auth_cipher()
5148 ciphertext = plaintext; in test_snow3g_auth_cipher()
5150 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_snow3g_auth_cipher()
5153 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_snow3g_auth_cipher()
5176 ciphertext, in test_snow3g_auth_cipher()
5177 tdata->ciphertext.data, in test_snow3g_auth_cipher()
5202 const uint8_t *ciphertext = NULL; in test_snow3g_auth_cipher_sgl() local
5274 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_snow3g_auth_cipher_sgl()
5293 tdata->ciphertext.data); in test_snow3g_auth_cipher_sgl()
5294 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
5296 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_snow3g_auth_cipher_sgl()
5352 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_auth_cipher_sgl()
5355 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
5358 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_snow3g_auth_cipher_sgl()
5361 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_snow3g_auth_cipher_sgl()
5391 ciphertext, in test_snow3g_auth_cipher_sgl()
5392 tdata->ciphertext.data, in test_snow3g_auth_cipher_sgl()
5416 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_kasumi_auth_cipher() local
5486 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_kasumi_auth_cipher()
5492 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_auth_cipher()
5494 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_kasumi_auth_cipher()
5497 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_kasumi_auth_cipher()
5544 plaintext = ciphertext; in test_kasumi_auth_cipher()
5553 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_kasumi_auth_cipher()
5556 ciphertext = plaintext; in test_kasumi_auth_cipher()
5558 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_kasumi_auth_cipher()
5561 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_kasumi_auth_cipher()
5583 ciphertext, in test_kasumi_auth_cipher()
5584 tdata->ciphertext.data, in test_kasumi_auth_cipher()
5585 tdata->ciphertext.len >> 3, in test_kasumi_auth_cipher()
5607 const uint8_t *ciphertext = NULL; in test_kasumi_auth_cipher_sgl() local
5679 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_kasumi_auth_cipher_sgl()
5698 tdata->ciphertext.data); in test_kasumi_auth_cipher_sgl()
5699 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5701 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_kasumi_auth_cipher_sgl()
5757 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_auth_cipher_sgl()
5760 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5763 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_kasumi_auth_cipher_sgl()
5766 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_kasumi_auth_cipher_sgl()
5794 ciphertext, in test_kasumi_auth_cipher_sgl()
5795 tdata->ciphertext.data, in test_kasumi_auth_cipher_sgl()
5816 uint8_t *plaintext, *ciphertext; in test_kasumi_cipher_auth() local
5901 ciphertext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_kasumi_cipher_auth()
5907 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_cipher_auth()
5911 ciphertext, in test_kasumi_cipher_auth()
5987 uint8_t *plaintext, *ciphertext; in test_zuc_encryption() local
6052 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_zuc_encryption()
6054 ciphertext = plaintext; in test_zuc_encryption()
6056 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_encryption()
6060 ciphertext, in test_zuc_encryption()
6061 tdata->ciphertext.data, in test_zuc_encryption()
6077 const uint8_t *ciphertext; in test_zuc_encryption_sgl() local
6147 ciphertext = rte_pktmbuf_read(ut_params->obuf, in test_zuc_encryption_sgl()
6150 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_zuc_encryption_sgl()
6154 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_encryption_sgl()
6158 ciphertext, in test_zuc_encryption_sgl()
6159 tdata->ciphertext.data, in test_zuc_encryption_sgl()
6265 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_zuc_auth_cipher() local
6341 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_zuc_auth_cipher()
6347 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_auth_cipher()
6349 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_zuc_auth_cipher()
6350 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_zuc_auth_cipher()
6399 plaintext = ciphertext; in test_zuc_auth_cipher()
6408 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_zuc_auth_cipher()
6411 ciphertext = plaintext; in test_zuc_auth_cipher()
6413 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_zuc_auth_cipher()
6416 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_zuc_auth_cipher()
6438 ciphertext, in test_zuc_auth_cipher()
6439 tdata->ciphertext.data, in test_zuc_auth_cipher()
6440 tdata->ciphertext.len >> 3, in test_zuc_auth_cipher()
6462 const uint8_t *ciphertext = NULL; in test_zuc_auth_cipher_sgl() local
6530 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_zuc_auth_cipher_sgl()
6549 tdata->ciphertext.data); in test_zuc_auth_cipher_sgl()
6550 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6552 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_zuc_auth_cipher_sgl()
6608 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_zuc_auth_cipher_sgl()
6611 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6614 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_zuc_auth_cipher_sgl()
6617 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_zuc_auth_cipher_sgl()
6645 ciphertext, in test_zuc_auth_cipher_sgl()
6646 tdata->ciphertext.data, in test_zuc_auth_cipher_sgl()
7348 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_mixed_auth_cipher() local
7409 ciphertext_len = ceil_byte_length(tdata->ciphertext.len_bits); in test_mixed_auth_cipher()
7415 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_mixed_auth_cipher()
7417 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_mixed_auth_cipher()
7418 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_mixed_auth_cipher()
7470 plaintext = ciphertext + in test_mixed_auth_cipher()
7480 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_mixed_auth_cipher()
7483 ciphertext = plaintext; in test_mixed_auth_cipher()
7485 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_mixed_auth_cipher()
7488 tdata->ciphertext.data, in test_mixed_auth_cipher()
7489 tdata->ciphertext.len_bits >> 3); in test_mixed_auth_cipher()
7519 ciphertext, in test_mixed_auth_cipher()
7520 tdata->ciphertext.data, in test_mixed_auth_cipher()
7542 const uint8_t *ciphertext = NULL; in test_mixed_auth_cipher_sgl() local
7606 ciphertext_len = ceil_byte_length(tdata->ciphertext.len_bits); in test_mixed_auth_cipher_sgl()
7625 tdata->ciphertext.data); in test_mixed_auth_cipher_sgl()
7626 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7628 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_mixed_auth_cipher_sgl()
7691 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_mixed_auth_cipher_sgl()
7694 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7697 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_mixed_auth_cipher_sgl()
7700 tdata->ciphertext.data, in test_mixed_auth_cipher_sgl()
7701 tdata->ciphertext.len_bits >> 3); in test_mixed_auth_cipher_sgl()
7739 ciphertext, in test_mixed_auth_cipher_sgl()
7740 tdata->ciphertext.data, in test_mixed_auth_cipher_sgl()
8060 uint8_t *plaintext, *ciphertext; in create_aead_operation() local
8134 ciphertext = (uint8_t *)rte_pktmbuf_append( in create_aead_operation()
8137 TEST_ASSERT_NOT_NULL(ciphertext, in create_aead_operation()
8140 memset(ciphertext + aad_pad_len, 0, in create_aead_operation()
8141 tdata->ciphertext.len); in create_aead_operation()
8144 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->ciphertext.len, 16); in create_aead_operation()
8145 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
8147 TEST_ASSERT_NOT_NULL(ciphertext, in create_aead_operation()
8150 memcpy(ciphertext, tdata->ciphertext.data, in create_aead_operation()
8151 tdata->ciphertext.len); in create_aead_operation()
8152 debug_hexdump(stdout, "ciphertext:", ciphertext, in create_aead_operation()
8153 tdata->ciphertext.len); in create_aead_operation()
8210 uint8_t *ciphertext, *auth_tag; in test_authenticated_encryption() local
8286 ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_dst, in test_authenticated_encryption()
8291 ciphertext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_src, in test_authenticated_encryption()
8294 auth_tag = ciphertext + plaintext_pad_len; in test_authenticated_encryption()
8297 debug_hexdump(stdout, "ciphertext:", ciphertext, tdata->ciphertext.len); in test_authenticated_encryption()
8302 ciphertext, in test_authenticated_encryption()
8303 tdata->ciphertext.data, in test_authenticated_encryption()
8304 tdata->ciphertext.len, in test_authenticated_encryption()
8503 uint8_t *ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_src, in test_pdcp_proto() local
8506 ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_dst, in test_pdcp_proto()
8510 if (memcmp(ciphertext, output_vec, output_vec_len)) { in test_pdcp_proto()
8512 rte_hexdump(stdout, "encrypted", ciphertext, output_vec_len); in test_pdcp_proto()
8786 uint8_t *ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_src, in test_pdcp_proto_SGL() local
8789 ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_dst, in test_pdcp_proto_SGL()
8794 if (memcmp(ciphertext, output_vec, fragsz)) { in test_pdcp_proto_SGL()
8796 rte_hexdump(stdout, "encrypted", ciphertext, fragsz); in test_pdcp_proto_SGL()
8810 ciphertext = rte_pktmbuf_mtod(buf, in test_pdcp_proto_SGL()
8812 if (memcmp(ciphertext, output_vec + off, to_trn_tbl[ecx])) { in test_pdcp_proto_SGL()
8814 rte_hexdump(stdout, "encrypted", ciphertext, to_trn_tbl[ecx]); in test_pdcp_proto_SGL()
10246 uint8_t *ciphertext = NULL; in test_docsis_proto_uplink() local
10303 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_docsis_proto_uplink()
10304 d_td->ciphertext.len); in test_docsis_proto_uplink()
10306 memcpy(ciphertext, d_td->ciphertext.data, d_td->ciphertext.len); in test_docsis_proto_uplink()
10351 crc_len = d_td->ciphertext.no_crc == false ? in test_docsis_proto_uplink()
10352 (d_td->ciphertext.len - in test_docsis_proto_uplink()
10353 d_td->ciphertext.crc_offset - in test_docsis_proto_uplink()
10359 ut_params->op->sym->auth.data.offset = d_td->ciphertext.crc_offset; in test_docsis_proto_uplink()
10362 cipher_len = d_td->ciphertext.no_cipher == false ? in test_docsis_proto_uplink()
10363 (d_td->ciphertext.len - in test_docsis_proto_uplink()
10364 d_td->ciphertext.cipher_offset) : in test_docsis_proto_uplink()
10368 ut_params->op->sym->cipher.data.offset = d_td->ciphertext.cipher_offset; in test_docsis_proto_uplink()
10398 plaintext = ciphertext; in test_docsis_proto_uplink()
10432 uint8_t *ciphertext = NULL; in test_docsis_proto_downlink() local
10582 ciphertext = plaintext; in test_docsis_proto_downlink()
10584 if (memcmp(ciphertext, d_td->ciphertext.data, d_td->ciphertext.len)) { in test_docsis_proto_downlink()
10587 rte_hexdump(stdout, "expected", d_td->ciphertext.data, in test_docsis_proto_downlink()
10588 d_td->ciphertext.len); in test_docsis_proto_downlink()
10589 rte_hexdump(stdout, "actual", ciphertext, d_td->ciphertext.len); in test_docsis_proto_downlink()
10799 tdata.ciphertext.data[0] += 1; in test_AES_GCM_auth_encryption_fail_out_data_corrupt()
10945 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption()
11149 tdata.ciphertext.data[0] += 1; in test_AES_GCM_auth_decryption_fail_out_data_corrupt()
11212 uint8_t *ciphertext, *auth_tag; in test_authenticated_encryption_oop() local
11277 ciphertext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_authenticated_encryption_oop()
11279 auth_tag = ciphertext + plaintext_pad_len; in test_authenticated_encryption_oop()
11281 debug_hexdump(stdout, "ciphertext:", ciphertext, tdata->ciphertext.len); in test_authenticated_encryption_oop()
11286 ciphertext, in test_authenticated_encryption_oop()
11287 tdata->ciphertext.data, in test_authenticated_encryption_oop()
11288 tdata->ciphertext.len, in test_authenticated_encryption_oop()
11382 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption_oop()
11411 uint8_t *ciphertext, *auth_tag; in test_authenticated_encryption_sessionless() local
11475 ciphertext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_encryption_sessionless()
11477 auth_tag = ciphertext + plaintext_pad_len; in test_authenticated_encryption_sessionless()
11479 debug_hexdump(stdout, "ciphertext:", ciphertext, tdata->ciphertext.len); in test_authenticated_encryption_sessionless()
11484 ciphertext, in test_authenticated_encryption_sessionless()
11485 tdata->ciphertext.data, in test_authenticated_encryption_sessionless()
11486 tdata->ciphertext.len, in test_authenticated_encryption_sessionless()
11589 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption_sessionless()
13222 } ciphertext; member
13321 .ciphertext = {
13368 .ciphertext = {
13565 ut_params->ibuf, reference->ciphertext.len); in create_auth_GMAC_operation()
13618 ut_params->ibuf, reference->ciphertext.len); in create_cipher_auth_operation()
13850 uint8_t *ciphertext; in test_authenticated_decryption_fail_when_corruption() local
13895 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_decryption_fail_when_corruption()
13896 reference->ciphertext.len); in test_authenticated_decryption_fail_when_corruption()
13897 TEST_ASSERT_NOT_NULL(ciphertext, "no room to append ciphertext"); in test_authenticated_decryption_fail_when_corruption()
13898 memcpy(ciphertext, reference->ciphertext.data, in test_authenticated_decryption_fail_when_corruption()
13899 reference->ciphertext.len); in test_authenticated_decryption_fail_when_corruption()
13910 data_corruption(ciphertext); in test_authenticated_decryption_fail_when_corruption()
13912 tag_corruption(ciphertext, reference->ciphertext.len); in test_authenticated_decryption_fail_when_corruption()
14051 reference->ciphertext.len); in test_authenticated_encrypt_with_esn()
14057 reference->ciphertext.data, in test_authenticated_encrypt_with_esn()
14058 reference->ciphertext.len, in test_authenticated_encrypt_with_esn()
14079 uint8_t *ciphertext; in test_authenticated_decrypt_with_esn() local
14153 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_decrypt_with_esn()
14154 reference->ciphertext.len); in test_authenticated_decrypt_with_esn()
14155 TEST_ASSERT_NOT_NULL(ciphertext, "no room to append ciphertext"); in test_authenticated_decrypt_with_esn()
14156 memcpy(ciphertext, reference->ciphertext.data, in test_authenticated_decrypt_with_esn()
14157 reference->ciphertext.len); in test_authenticated_decrypt_with_esn()
14291 uint8_t *plaintext, *ciphertext, *auth_tag; in test_authenticated_encryption_SGL() local
14535 ciphertext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_src, in test_authenticated_encryption_SGL()
14538 ciphertext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_dst, in test_authenticated_encryption_SGL()
14546 ciphertext, in test_authenticated_encryption_SGL()
14547 tdata->ciphertext.data, in test_authenticated_encryption_SGL()
14559 ciphertext = rte_pktmbuf_mtod(buf, in test_authenticated_encryption_SGL()
14563 ciphertext, in test_authenticated_encryption_SGL()
14564 tdata->ciphertext.data + off, in test_authenticated_encryption_SGL()