Home
last modified time | relevance | path

Searched refs:responseTpdu (Results 1 – 2 of 2) sorted by relevance

/hardware/st/secure_element/ese-spi-driver/
DT1protocol.cc540 int T1protocol_formSblockResponse(Tpdu* responseTpdu, Tpdu* requestTpdu) { in T1protocol_formSblockResponse() argument
543 responseTpdu->nad = NAD_HOST_TO_SLAVE; in T1protocol_formSblockResponse()
544 responseTpdu->pcb = requestTpdu->pcb | 0b00100000; in T1protocol_formSblockResponse()
545 responseTpdu->len = requestTpdu->len; in T1protocol_formSblockResponse()
547 responseTpdu->data[i] = requestTpdu->data[i]; in T1protocol_formSblockResponse()
549 responseTpdu->checksum = 0x0000; in T1protocol_formSblockResponse()
552 uint8_t buffer[TPDU_PROLOGUE_LENGTH + responseTpdu->len + TPDU_CRC_LENGTH]; in T1protocol_formSblockResponse()
553 Tpdu_toByteArray(responseTpdu, buffer); in T1protocol_formSblockResponse()
554 responseTpdu->checksum = in T1protocol_formSblockResponse()
555 computeCrc(buffer, (TPDU_PROLOGUE_LENGTH + responseTpdu->len)); in T1protocol_formSblockResponse()
DT1protocol.h217 int T1protocol_formSblockResponse(Tpdu *responseTpdu, Tpdu *requestTpdu);