Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 3 of 3) sorted by relevance

/psa-arch-tests-3.4.0/secure-debug/platform/common/src/
Dadac_command_util.c150 psa_status_t psa_adac_issue_command(uint32_t command, request_packet_t *packet, in psa_adac_issue_command() argument
156 packet = request_packet_build((uint16_t)command, data, data_size); in psa_adac_issue_command()
158 if (packet == NULL) { in psa_adac_issue_command()
188 ret_val = request_packet_send(packet); in psa_adac_issue_command()
192 request_packet_release(packet); in psa_adac_issue_command()
201 psa_status_t psa_adac_parse_response(uint32_t command, response_packet_t *packet) in psa_adac_parse_response() argument
209 if (packet == NULL) { in psa_adac_parse_response()
215 packet->status, packet->data_count); in psa_adac_parse_response()
221 for (i = 0; (i + 4) < (packet->data_count * 4);) { in psa_adac_parse_response()
222 tlv = (psa_tlv_t *) (((uint8_t *)packet->data) + i); in psa_adac_parse_response()
[all …]
Dadac_packet_util.c89 int request_packet_release(request_packet_t *packet) in request_packet_release() argument
114 int response_packet_release(response_packet_t *packet) in response_packet_release() argument
137 int request_packet_send(request_packet_t *packet) in request_packet_send() argument
139 if (packet == NULL) in request_packet_send()
142 size_t size = sizeof(request_packet_t) + 4 * packet->data_count; in request_packet_send()
145 return pal_message_send((uint8_t *) packet, size); in request_packet_send()
/psa-arch-tests-3.4.0/secure-debug/platform/common/include/
Dadac_util.h72 psa_status_t psa_adac_issue_command(uint32_t command, request_packet_t *packet,
75 psa_status_t psa_adac_parse_response(uint32_t command, response_packet_t *packet);
82 psa_status_t psa_adac_check_cryptosystem_support(response_packet_t *packet, uint8_t key_system);
98 int request_packet_release(request_packet_t *packet);
105 int response_packet_release(response_packet_t *packet);
121 int request_packet_send(request_packet_t *packet);