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