Searched refs:respTpdu (Results 1 – 6 of 6) sorted by relevance
/hardware/st/secure_element/ese-spi-driver/ |
D | SpiLayerComm.cc | 218 int SpiLayerComm_waitForResponse(Tpdu* respTpdu, int nBwt) { in SpiLayerComm_waitForResponse() argument 273 respTpdu->nad = pollingRxByte; in SpiLayerComm_waitForResponse() 274 respTpdu->pcb = buffer[0]; in SpiLayerComm_waitForResponse() 275 respTpdu->len = (uint8_t)buffer[1]; in SpiLayerComm_waitForResponse() 293 int SpiLayerComm_readTpdu(Tpdu* respTpdu) { in SpiLayerComm_readTpdu() argument 299 pendingBytes = respTpdu->len + TPDU_LRC_LENGTH; in SpiLayerComm_readTpdu() 302 pendingBytes = respTpdu->len + TPDU_CRC_LENGTH; in SpiLayerComm_readTpdu() 320 for (i = 0; i < respTpdu->len; i++) { in SpiLayerComm_readTpdu() 321 respTpdu->data[i] = rxBuffer[i]; in SpiLayerComm_readTpdu() 327 respTpdu->checksum = Tpdu_getChecksumValue(rxBuffer, respTpdu->len, LRC); in SpiLayerComm_readTpdu() [all …]
|
D | SpiLayerInterface.cc | 89 int SpiLayerInterface_transcieveTpdu(Tpdu* cmdTpdu, Tpdu* respTpdu, in SpiLayerInterface_transcieveTpdu() argument 101 int result = SpiLayerComm_waitForResponse(respTpdu, numberOfBwt); in SpiLayerInterface_transcieveTpdu() 112 int bytesRead = SpiLayerComm_readTpdu(respTpdu); in SpiLayerInterface_transcieveTpdu() 119 uint8_t buffer[(5 + respTpdu->len)]; in SpiLayerInterface_transcieveTpdu() 120 uint16_t length = Tpdu_toByteArray(respTpdu, buffer); in SpiLayerInterface_transcieveTpdu()
|
D | SpiLayerComm.h | 64 int SpiLayerComm_waitForResponse(Tpdu* respTpdu, int nBwt); 75 int SpiLayerComm_readTpdu(Tpdu* respTpdu);
|
D | T1protocol.cc | 106 int T1protocol_checkResponseTpduChecksum(Tpdu* respTpdu) { in T1protocol_checkResponseTpduChecksum() argument 109 uint8_t arrayTpdu[TPDU_PROLOGUE_LENGTH + respTpdu->len + TPDU_CRC_LENGTH]; in T1protocol_checkResponseTpduChecksum() 110 Tpdu_toByteArray(respTpdu, arrayTpdu); in T1protocol_checkResponseTpduChecksum() 111 if (computeCrc(arrayTpdu, TPDU_PROLOGUE_LENGTH + respTpdu->len) != in T1protocol_checkResponseTpduChecksum() 112 respTpdu->checksum) { in T1protocol_checkResponseTpduChecksum() 642 bool T1protocol_isSequenceNumberOk(Tpdu* originalTpdu, Tpdu* respTpdu) { in T1protocol_isSequenceNumberOk() argument 646 TpduType tpduType = Tpdu_getType(respTpdu); in T1protocol_isSequenceNumberOk() 650 seqNumber = (respTpdu->pcb & 0b01000000) >> 6; in T1protocol_isSequenceNumberOk() 667 seqNumber = (respTpdu->pcb & 0x10) >> 4; in T1protocol_isSequenceNumberOk() 674 seqNumber = (respTpdu->pcb & 0x10) >> 4; in T1protocol_isSequenceNumberOk() [all …]
|
D | T1protocol.h | 241 bool T1protocol_isSequenceNumberOk(Tpdu *originalTpdu, Tpdu *respTpdu); 257 uint8_t T1protocol_setRespApduData(Tpdu *respTpdu, uint8_t *respApduBuffer);
|
D | SpiLayerInterface.h | 64 int SpiLayerInterface_transcieveTpdu(Tpdu* cmdTpdu, Tpdu* respTpdu,
|