Lines Matching refs:respTpdu
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()
737 uint8_t T1protocol_setRespApduData(Tpdu* respTpdu, uint8_t** respApduBuffer) { in T1protocol_setRespApduData() argument
741 for (i = 0; i < respTpdu->len; i++) { in T1protocol_setRespApduData()
742 (*respApduBuffer)[i] = respTpdu->data[i]; in T1protocol_setRespApduData()
745 return respTpdu->len; in T1protocol_setRespApduData()