Lines Matching refs:ciphertext

1747 	uint8_t *ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_src,  in test_AES_CBC_HMAC_SHA1_encrypt_digest()  local
1750 TEST_ASSERT_BUFFERS_ARE_EQUAL(ciphertext, in test_AES_CBC_HMAC_SHA1_encrypt_digest()
1755 uint8_t *digest = ciphertext + QUOTE_512_BYTES; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
3158 uint8_t *plaintext, *ciphertext; in test_kasumi_encryption() local
3226 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_encryption()
3228 ciphertext = plaintext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_encryption()
3230 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption()
3232 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_encryption()
3236 ciphertext, in test_kasumi_encryption()
3255 const uint8_t *ciphertext; in test_kasumi_encryption_sgl() local
3326 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_encryption_sgl()
3329 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_encryption_sgl()
3334 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption_sgl()
3336 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_encryption_sgl()
3340 ciphertext, in test_kasumi_encryption_sgl()
3354 uint8_t *plaintext, *ciphertext; in test_kasumi_encryption_oop() local
3414 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_encryption_oop()
3416 ciphertext = plaintext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_encryption_oop()
3418 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_kasumi_encryption_oop()
3420 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_encryption_oop()
3424 ciphertext, in test_kasumi_encryption_oop()
3441 const uint8_t *ciphertext; in test_kasumi_encryption_oop_sgl() local
3507 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_encryption_oop_sgl()
3510 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_kasumi_encryption_oop_sgl()
3514 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_encryption_oop_sgl()
3518 ciphertext, in test_kasumi_encryption_oop_sgl()
3533 uint8_t *ciphertext, *plaintext; in test_kasumi_decryption_oop() local
3567 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_kasumi_decryption_oop()
3571 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_decryption_oop()
3574 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_kasumi_decryption_oop()
3576 debug_hexdump(stdout, "ciphertext:", ciphertext, ciphertext_len); in test_kasumi_decryption_oop()
3594 plaintext = ciphertext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_decryption_oop()
3616 uint8_t *ciphertext, *plaintext; in test_kasumi_decryption() local
3656 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_kasumi_decryption()
3660 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_decryption()
3662 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_kasumi_decryption()
3664 debug_hexdump(stdout, "ciphertext:", ciphertext, ciphertext_len); in test_kasumi_decryption()
3669 tdata->ciphertext.len, in test_kasumi_decryption()
3686 plaintext = ciphertext + (tdata->validCipherOffsetInBits.len >> 3); in test_kasumi_decryption()
3708 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption() local
3776 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption()
3778 ciphertext = plaintext; in test_snow3g_encryption()
3780 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption()
3784 ciphertext, in test_snow3g_encryption()
3785 tdata->ciphertext.data, in test_snow3g_encryption()
3797 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption_oop() local
3863 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption_oop()
3865 ciphertext = plaintext; in test_snow3g_encryption_oop()
3867 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_oop()
3871 ciphertext, in test_snow3g_encryption_oop()
3872 tdata->ciphertext.data, in test_snow3g_encryption_oop()
3888 const uint8_t *ciphertext; in test_snow3g_encryption_oop_sgl() local
3957 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_encryption_oop_sgl()
3960 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_encryption_oop_sgl()
3963 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_oop_sgl()
3967 ciphertext, in test_snow3g_encryption_oop_sgl()
3968 tdata->ciphertext.data, in test_snow3g_encryption_oop_sgl()
4000 uint8_t *plaintext, *ciphertext; in test_snow3g_encryption_offset_oop() local
4084 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption_offset_oop()
4086 ciphertext = plaintext; in test_snow3g_encryption_offset_oop()
4089 rte_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_encryption_offset_oop()
4097 memcpy(expected_ciphertext_shifted, tdata->ciphertext.data, in test_snow3g_encryption_offset_oop()
4098 ceil_byte_length(tdata->ciphertext.len)); in test_snow3g_encryption_offset_oop()
4099 buffer_shift_right(expected_ciphertext_shifted, tdata->ciphertext.len, in test_snow3g_encryption_offset_oop()
4103 ciphertext, in test_snow3g_encryption_offset_oop()
4118 uint8_t *plaintext, *ciphertext; in test_snow3g_decryption() local
4158 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_snow3g_decryption()
4162 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_decryption()
4164 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_snow3g_decryption()
4166 debug_hexdump(stdout, "ciphertext:", ciphertext, ciphertext_len); in test_snow3g_decryption()
4187 plaintext = ciphertext; in test_snow3g_decryption()
4206 uint8_t *plaintext, *ciphertext; in test_snow3g_decryption_oop() local
4248 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_snow3g_decryption_oop()
4252 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_decryption_oop()
4255 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_snow3g_decryption_oop()
4257 debug_hexdump(stdout, "ciphertext:", ciphertext, ciphertext_len); in test_snow3g_decryption_oop()
4274 plaintext = ciphertext; in test_snow3g_decryption_oop()
4294 uint8_t *plaintext, *ciphertext; in test_zuc_cipher_auth() local
4372 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_zuc_cipher_auth()
4374 ciphertext = plaintext; in test_zuc_cipher_auth()
4376 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_cipher_auth()
4379 ciphertext, in test_zuc_cipher_auth()
4380 tdata->ciphertext.data, in test_zuc_cipher_auth()
4404 uint8_t *plaintext, *ciphertext; in test_snow3g_cipher_auth() local
4484 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_cipher_auth()
4486 ciphertext = plaintext; in test_snow3g_cipher_auth()
4488 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_snow3g_cipher_auth()
4491 ciphertext, in test_snow3g_cipher_auth()
4492 tdata->ciphertext.data, in test_snow3g_cipher_auth()
4517 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_snow3g_auth_cipher() local
4587 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_snow3g_auth_cipher()
4593 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_snow3g_auth_cipher()
4595 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_snow3g_auth_cipher()
4598 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_snow3g_auth_cipher()
4643 plaintext = ciphertext + in test_snow3g_auth_cipher()
4653 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_snow3g_auth_cipher()
4656 ciphertext = plaintext; in test_snow3g_auth_cipher()
4658 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_snow3g_auth_cipher()
4661 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_snow3g_auth_cipher()
4682 ciphertext, in test_snow3g_auth_cipher()
4683 tdata->ciphertext.data, in test_snow3g_auth_cipher()
4706 const uint8_t *ciphertext = NULL; in test_snow3g_auth_cipher_sgl() local
4778 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_snow3g_auth_cipher_sgl()
4797 tdata->ciphertext.data); in test_snow3g_auth_cipher_sgl()
4798 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
4800 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_snow3g_auth_cipher_sgl()
4856 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_auth_cipher_sgl()
4859 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_snow3g_auth_cipher_sgl()
4862 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_snow3g_auth_cipher_sgl()
4865 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_snow3g_auth_cipher_sgl()
4893 ciphertext, in test_snow3g_auth_cipher_sgl()
4894 tdata->ciphertext.data, in test_snow3g_auth_cipher_sgl()
4916 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_kasumi_auth_cipher() local
4986 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_kasumi_auth_cipher()
4992 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_kasumi_auth_cipher()
4994 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_kasumi_auth_cipher()
4997 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_kasumi_auth_cipher()
5044 plaintext = ciphertext; in test_kasumi_auth_cipher()
5053 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_kasumi_auth_cipher()
5056 ciphertext = plaintext; in test_kasumi_auth_cipher()
5058 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_kasumi_auth_cipher()
5061 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_kasumi_auth_cipher()
5083 ciphertext, in test_kasumi_auth_cipher()
5084 tdata->ciphertext.data, in test_kasumi_auth_cipher()
5085 tdata->ciphertext.len >> 3, in test_kasumi_auth_cipher()
5107 const uint8_t *ciphertext = NULL; in test_kasumi_auth_cipher_sgl() local
5179 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_kasumi_auth_cipher_sgl()
5198 tdata->ciphertext.data); in test_kasumi_auth_cipher_sgl()
5199 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5201 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_kasumi_auth_cipher_sgl()
5257 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_auth_cipher_sgl()
5260 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_kasumi_auth_cipher_sgl()
5263 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_kasumi_auth_cipher_sgl()
5266 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_kasumi_auth_cipher_sgl()
5294 ciphertext, in test_kasumi_auth_cipher_sgl()
5295 tdata->ciphertext.data, in test_kasumi_auth_cipher_sgl()
5316 uint8_t *plaintext, *ciphertext; in test_kasumi_cipher_auth() local
5401 ciphertext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_kasumi_cipher_auth()
5407 const uint8_t *reference_ciphertext = tdata->ciphertext.data + in test_kasumi_cipher_auth()
5411 ciphertext, in test_kasumi_cipher_auth()
5432 uint8_t *plaintext, *ciphertext; in test_zuc_encryption() local
5502 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_zuc_encryption()
5504 ciphertext = plaintext; in test_zuc_encryption()
5506 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_encryption()
5510 ciphertext, in test_zuc_encryption()
5511 tdata->ciphertext.data, in test_zuc_encryption()
5527 const uint8_t *ciphertext; in test_zuc_encryption_sgl() local
5602 ciphertext = rte_pktmbuf_read(ut_params->obuf, in test_zuc_encryption_sgl()
5605 ciphertext = rte_pktmbuf_read(ut_params->ibuf, in test_zuc_encryption_sgl()
5609 debug_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); in test_zuc_encryption_sgl()
5613 ciphertext, in test_zuc_encryption_sgl()
5614 tdata->ciphertext.data, in test_zuc_encryption_sgl()
5723 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_zuc_auth_cipher() local
5797 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_zuc_auth_cipher()
5803 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_zuc_auth_cipher()
5805 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_zuc_auth_cipher()
5808 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_zuc_auth_cipher()
5855 plaintext = ciphertext; in test_zuc_auth_cipher()
5864 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_zuc_auth_cipher()
5867 ciphertext = plaintext; in test_zuc_auth_cipher()
5869 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_zuc_auth_cipher()
5872 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_zuc_auth_cipher()
5894 ciphertext, in test_zuc_auth_cipher()
5895 tdata->ciphertext.data, in test_zuc_auth_cipher()
5896 tdata->ciphertext.len >> 3, in test_zuc_auth_cipher()
5918 const uint8_t *ciphertext = NULL; in test_zuc_auth_cipher_sgl() local
5984 ciphertext_len = ceil_byte_length(tdata->ciphertext.len); in test_zuc_auth_cipher_sgl()
6003 tdata->ciphertext.data); in test_zuc_auth_cipher_sgl()
6004 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6006 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_zuc_auth_cipher_sgl()
6062 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_zuc_auth_cipher_sgl()
6065 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_zuc_auth_cipher_sgl()
6068 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_zuc_auth_cipher_sgl()
6071 tdata->ciphertext.data, tdata->ciphertext.len >> 3); in test_zuc_auth_cipher_sgl()
6099 ciphertext, in test_zuc_auth_cipher_sgl()
6100 tdata->ciphertext.data, in test_zuc_auth_cipher_sgl()
6750 uint8_t *plaintext = NULL, *ciphertext = NULL; in test_mixed_auth_cipher() local
6811 ciphertext_len = ceil_byte_length(tdata->ciphertext.len_bits); in test_mixed_auth_cipher()
6817 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_mixed_auth_cipher()
6819 memcpy(ciphertext, tdata->ciphertext.data, ciphertext_len); in test_mixed_auth_cipher()
6822 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_mixed_auth_cipher()
6872 plaintext = ciphertext + in test_mixed_auth_cipher()
6882 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_mixed_auth_cipher()
6885 ciphertext = plaintext; in test_mixed_auth_cipher()
6887 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_mixed_auth_cipher()
6890 tdata->ciphertext.data, in test_mixed_auth_cipher()
6891 tdata->ciphertext.len_bits >> 3); in test_mixed_auth_cipher()
6913 ciphertext, in test_mixed_auth_cipher()
6914 tdata->ciphertext.data, in test_mixed_auth_cipher()
6941 const uint8_t *ciphertext = NULL; in test_mixed_auth_cipher_sgl() local
7005 ciphertext_len = ceil_byte_length(tdata->ciphertext.len_bits); in test_mixed_auth_cipher_sgl()
7024 tdata->ciphertext.data); in test_mixed_auth_cipher_sgl()
7025 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7027 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_mixed_auth_cipher_sgl()
7090 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_mixed_auth_cipher_sgl()
7093 ciphertext = rte_pktmbuf_read(ut_params->ibuf, 0, in test_mixed_auth_cipher_sgl()
7096 debug_hexdump(stdout, "ciphertext:", ciphertext, in test_mixed_auth_cipher_sgl()
7099 tdata->ciphertext.data, in test_mixed_auth_cipher_sgl()
7100 tdata->ciphertext.len_bits >> 3); in test_mixed_auth_cipher_sgl()
7130 ciphertext, in test_mixed_auth_cipher_sgl()
7131 tdata->ciphertext.data, in test_mixed_auth_cipher_sgl()
7455 uint8_t *plaintext, *ciphertext; in create_aead_operation() local
7529 ciphertext = (uint8_t *)rte_pktmbuf_append( in create_aead_operation()
7532 TEST_ASSERT_NOT_NULL(ciphertext, in create_aead_operation()
7535 memset(ciphertext + aad_pad_len, 0, in create_aead_operation()
7536 tdata->ciphertext.len); in create_aead_operation()
7539 plaintext_pad_len = RTE_ALIGN_CEIL(tdata->ciphertext.len, 16); in create_aead_operation()
7540 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
7542 TEST_ASSERT_NOT_NULL(ciphertext, in create_aead_operation()
7545 memcpy(ciphertext, tdata->ciphertext.data, in create_aead_operation()
7546 tdata->ciphertext.len); in create_aead_operation()
7547 debug_hexdump(stdout, "ciphertext:", ciphertext, in create_aead_operation()
7548 tdata->ciphertext.len); in create_aead_operation()
7605 uint8_t *ciphertext, *auth_tag; in test_authenticated_encryption() local
7681 ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_dst, in test_authenticated_encryption()
7686 ciphertext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_src, in test_authenticated_encryption()
7689 auth_tag = ciphertext + plaintext_pad_len; in test_authenticated_encryption()
7692 debug_hexdump(stdout, "ciphertext:", ciphertext, tdata->ciphertext.len); in test_authenticated_encryption()
7697 ciphertext, in test_authenticated_encryption()
7698 tdata->ciphertext.data, in test_authenticated_encryption()
7699 tdata->ciphertext.len, in test_authenticated_encryption()
7898 uint8_t *ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_src, in test_pdcp_proto() local
7901 ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_dst, in test_pdcp_proto()
7905 if (memcmp(ciphertext, output_vec, output_vec_len)) { in test_pdcp_proto()
7907 rte_hexdump(stdout, "encrypted", ciphertext, output_vec_len); in test_pdcp_proto()
8155 uint8_t *ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_src, in test_pdcp_proto_SGL() local
8158 ciphertext = rte_pktmbuf_mtod(ut_params->op->sym->m_dst, in test_pdcp_proto_SGL()
8163 if (memcmp(ciphertext, output_vec, fragsz)) { in test_pdcp_proto_SGL()
8165 rte_hexdump(stdout, "encrypted", ciphertext, fragsz); in test_pdcp_proto_SGL()
8179 ciphertext = rte_pktmbuf_mtod(buf, in test_pdcp_proto_SGL()
8181 if (memcmp(ciphertext, output_vec + off, to_trn_tbl[ecx])) { in test_pdcp_proto_SGL()
8183 rte_hexdump(stdout, "encrypted", ciphertext, to_trn_tbl[ecx]); in test_pdcp_proto_SGL()
8501 uint8_t *plaintext, *ciphertext; in test_docsis_proto_uplink() local
8549 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_docsis_proto_uplink()
8550 d_td->ciphertext.len); in test_docsis_proto_uplink()
8552 memcpy(ciphertext, d_td->ciphertext.data, d_td->ciphertext.len); in test_docsis_proto_uplink()
8598 crc_len = d_td->ciphertext.no_crc == false ? in test_docsis_proto_uplink()
8599 (d_td->ciphertext.len - in test_docsis_proto_uplink()
8600 d_td->ciphertext.crc_offset - in test_docsis_proto_uplink()
8606 ut_params->op->sym->auth.data.offset = d_td->ciphertext.crc_offset; in test_docsis_proto_uplink()
8609 cipher_len = d_td->ciphertext.no_cipher == false ? in test_docsis_proto_uplink()
8610 (d_td->ciphertext.len - in test_docsis_proto_uplink()
8611 d_td->ciphertext.cipher_offset) : in test_docsis_proto_uplink()
8615 ut_params->op->sym->cipher.data.offset = d_td->ciphertext.cipher_offset; in test_docsis_proto_uplink()
8646 plaintext = ciphertext; in test_docsis_proto_uplink()
8678 uint8_t *plaintext, *ciphertext; in test_docsis_proto_downlink() local
8821 ciphertext = plaintext; in test_docsis_proto_downlink()
8823 if (memcmp(ciphertext, d_td->ciphertext.data, d_td->ciphertext.len)) { in test_docsis_proto_downlink()
8826 rte_hexdump(stdout, "expected", d_td->ciphertext.data, in test_docsis_proto_downlink()
8827 d_td->ciphertext.len); in test_docsis_proto_downlink()
8828 rte_hexdump(stdout, "actual", ciphertext, d_td->ciphertext.len); in test_docsis_proto_downlink()
9165 tdata.ciphertext.data[0] += 1; in test_AES_GCM_auth_encryption_fail_out_data_corrupt()
9311 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption()
9515 tdata.ciphertext.data[0] += 1; in test_AES_GCM_auth_decryption_fail_out_data_corrupt()
9578 uint8_t *ciphertext, *auth_tag; in test_authenticated_encryption_oop() local
9634 ciphertext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_authenticated_encryption_oop()
9636 auth_tag = ciphertext + plaintext_pad_len; in test_authenticated_encryption_oop()
9638 debug_hexdump(stdout, "ciphertext:", ciphertext, tdata->ciphertext.len); in test_authenticated_encryption_oop()
9643 ciphertext, in test_authenticated_encryption_oop()
9644 tdata->ciphertext.data, in test_authenticated_encryption_oop()
9645 tdata->ciphertext.len, in test_authenticated_encryption_oop()
9725 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption_oop()
9754 uint8_t *ciphertext, *auth_tag; in test_authenticated_encryption_sessionless() local
9818 ciphertext = rte_pktmbuf_mtod_offset(ut_params->ibuf, uint8_t *, in test_authenticated_encryption_sessionless()
9820 auth_tag = ciphertext + plaintext_pad_len; in test_authenticated_encryption_sessionless()
9822 debug_hexdump(stdout, "ciphertext:", ciphertext, tdata->ciphertext.len); in test_authenticated_encryption_sessionless()
9827 ciphertext, in test_authenticated_encryption_sessionless()
9828 tdata->ciphertext.data, in test_authenticated_encryption_sessionless()
9829 tdata->ciphertext.len, in test_authenticated_encryption_sessionless()
9932 debug_hexdump(stdout, "plaintext:", plaintext, tdata->ciphertext.len); in test_authenticated_decryption_sessionless()
11301 } ciphertext; member
11400 .ciphertext = {
11447 .ciphertext = {
11644 ut_params->ibuf, reference->ciphertext.len); in create_auth_GMAC_operation()
11697 ut_params->ibuf, reference->ciphertext.len); in create_cipher_auth_operation()
11923 uint8_t *ciphertext; in test_authenticated_decryption_fail_when_corruption() local
11965 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_decryption_fail_when_corruption()
11966 reference->ciphertext.len); in test_authenticated_decryption_fail_when_corruption()
11967 TEST_ASSERT_NOT_NULL(ciphertext, "no room to append ciphertext"); in test_authenticated_decryption_fail_when_corruption()
11968 memcpy(ciphertext, reference->ciphertext.data, in test_authenticated_decryption_fail_when_corruption()
11969 reference->ciphertext.len); in test_authenticated_decryption_fail_when_corruption()
11980 data_corruption(ciphertext); in test_authenticated_decryption_fail_when_corruption()
11982 tag_corruption(ciphertext, reference->ciphertext.len); in test_authenticated_decryption_fail_when_corruption()
12116 reference->ciphertext.len); in test_authenticated_encryt_with_esn()
12122 reference->ciphertext.data, in test_authenticated_encryt_with_esn()
12123 reference->ciphertext.len, in test_authenticated_encryt_with_esn()
12144 uint8_t *ciphertext; in test_authenticated_decrypt_with_esn() local
12214 ciphertext = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in test_authenticated_decrypt_with_esn()
12215 reference->ciphertext.len); in test_authenticated_decrypt_with_esn()
12216 TEST_ASSERT_NOT_NULL(ciphertext, "no room to append ciphertext"); in test_authenticated_decrypt_with_esn()
12217 memcpy(ciphertext, reference->ciphertext.data, in test_authenticated_decrypt_with_esn()
12218 reference->ciphertext.len); in test_authenticated_decrypt_with_esn()
12352 uint8_t *plaintext, *ciphertext, *auth_tag; in test_authenticated_encryption_SGL() local
12596 ciphertext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_src, in test_authenticated_encryption_SGL()
12599 ciphertext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_dst, in test_authenticated_encryption_SGL()
12607 ciphertext, in test_authenticated_encryption_SGL()
12608 tdata->ciphertext.data, in test_authenticated_encryption_SGL()
12620 ciphertext = rte_pktmbuf_mtod(buf, in test_authenticated_encryption_SGL()
12624 ciphertext, in test_authenticated_encryption_SGL()
12625 tdata->ciphertext.data + off, in test_authenticated_encryption_SGL()