Searched refs:respTpdu (Results 1 – 6 of 6) sorted by relevance
/hardware/st/secure_element/ese-spi-driver/ |
D | SpiLayerComm.cc | 233 int SpiLayerComm_waitForResponse(Tpdu* respTpdu, int nBwt) { in SpiLayerComm_waitForResponse() argument 288 respTpdu->nad = pollingRxByte; in SpiLayerComm_waitForResponse() 289 respTpdu->pcb = buffer[0]; in SpiLayerComm_waitForResponse() 290 respTpdu->len = (uint8_t)buffer[1]; in SpiLayerComm_waitForResponse() 308 int SpiLayerComm_readTpdu(Tpdu* respTpdu) { in SpiLayerComm_readTpdu() argument 314 pendingBytes = respTpdu->len + TPDU_LRC_LENGTH; in SpiLayerComm_readTpdu() 317 pendingBytes = respTpdu->len + TPDU_CRC_LENGTH; in SpiLayerComm_readTpdu() 335 for (i = 0; i < respTpdu->len; i++) { in SpiLayerComm_readTpdu() 336 respTpdu->data[i] = rxBuffer[i]; in SpiLayerComm_readTpdu() 342 respTpdu->checksum = Tpdu_getChecksumValue(rxBuffer, respTpdu->len, LRC); in SpiLayerComm_readTpdu() [all …]
|
D | SpiLayerInterface.cc | 92 int SpiLayerInterface_transcieveTpdu(Tpdu* cmdTpdu, Tpdu* respTpdu, in SpiLayerInterface_transcieveTpdu() argument 104 int result = SpiLayerComm_waitForResponse(respTpdu, numberOfBwt); in SpiLayerInterface_transcieveTpdu() 115 int bytesRead = SpiLayerComm_readTpdu(respTpdu); in SpiLayerInterface_transcieveTpdu() 122 uint8_t buffer[(5 + respTpdu->len)]; in SpiLayerInterface_transcieveTpdu() 123 uint16_t length = Tpdu_toByteArray(respTpdu, buffer); in SpiLayerInterface_transcieveTpdu()
|
D | SpiLayerComm.h | 72 int SpiLayerComm_waitForResponse(Tpdu* respTpdu, int nBwt); 83 int SpiLayerComm_readTpdu(Tpdu* respTpdu);
|
D | T1protocol.cc | 107 int T1protocol_checkResponseTpduChecksum(Tpdu* respTpdu) { in T1protocol_checkResponseTpduChecksum() argument 110 uint8_t arrayTpdu[TPDU_PROLOGUE_LENGTH + respTpdu->len + TPDU_CRC_LENGTH]; in T1protocol_checkResponseTpduChecksum() 111 Tpdu_toByteArray(respTpdu, arrayTpdu); in T1protocol_checkResponseTpduChecksum() 112 if (computeCrc(arrayTpdu, TPDU_PROLOGUE_LENGTH + respTpdu->len) != in T1protocol_checkResponseTpduChecksum() 113 respTpdu->checksum) { in T1protocol_checkResponseTpduChecksum() 637 bool T1protocol_isSequenceNumberOk(Tpdu* originalTpdu, Tpdu* respTpdu) { in T1protocol_isSequenceNumberOk() argument 641 TpduType tpduType = Tpdu_getType(respTpdu); in T1protocol_isSequenceNumberOk() 645 seqNumber = (respTpdu->pcb & 0b01000000) >> 6; in T1protocol_isSequenceNumberOk() 662 seqNumber = (respTpdu->pcb & 0x10) >> 4; in T1protocol_isSequenceNumberOk() 669 seqNumber = (respTpdu->pcb & 0x10) >> 4; in T1protocol_isSequenceNumberOk() [all …]
|
D | SpiLayerInterface.h | 68 int SpiLayerInterface_transcieveTpdu(Tpdu* cmdTpdu, Tpdu* respTpdu,
|
D | T1protocol.h | 241 bool T1protocol_isSequenceNumberOk(Tpdu *originalTpdu, Tpdu *respTpdu); 257 uint8_t T1protocol_setRespApduData(Tpdu *respTpdu, uint8_t *respApduBuffer);
|