Lines Matching refs:d_td
8497 test_docsis_proto_uplink(int i, struct docsis_test_data *d_td) in test_docsis_proto_uplink() argument
8535 d_td->key.len, in test_docsis_proto_uplink()
8536 d_td->iv.len) == 0) 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()
8558 ut_params->cipher_xform.cipher.key.data = d_td->key.data; in test_docsis_proto_uplink()
8559 ut_params->cipher_xform.cipher.key.length = d_td->key.len; in test_docsis_proto_uplink()
8560 ut_params->cipher_xform.cipher.iv.length = d_td->iv.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()
8619 rte_memcpy(iv_ptr, d_td->iv.data, d_td->iv.len); 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()
8674 test_docsis_proto_downlink(int i, struct docsis_test_data *d_td) in test_docsis_proto_downlink() argument
8711 d_td->key.len, in test_docsis_proto_downlink()
8712 d_td->iv.len) == 0) 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()
8734 ut_params->cipher_xform.cipher.key.data = d_td->key.data; in test_docsis_proto_downlink()
8735 ut_params->cipher_xform.cipher.key.length = d_td->key.len; in test_docsis_proto_downlink()
8736 ut_params->cipher_xform.cipher.iv.length = d_td->iv.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()
8794 rte_memcpy(iv_ptr, d_td->iv.data, d_td->iv.len); 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()