Lines Matching refs:rspApdu
125 StEse_data rspApdu; in transmit() local
127 memset(&rspApdu, 0x00, sizeof(StEse_data)); in transmit()
134 status = StEse_Transceive(&cmdApdu, &rspApdu); in transmit()
142 result.resize(rspApdu.len); in transmit()
143 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
147 free(rspApdu.p_data); in transmit()
175 StEse_data rspApdu; in openLogicalChannel() local
178 memset(&rspApdu, 0x00, sizeof(StEse_data)); in openLogicalChannel()
185 status = StEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel()
190 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
191 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
193 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel()
197 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel()
198 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel()
200 } else if (((rspApdu.p_data[rspApdu.len - 2] == 0x6E) || in openLogicalChannel()
201 (rspApdu.p_data[rspApdu.len - 2] == 0x6D)) && in openLogicalChannel()
202 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
208 free(rspApdu.p_data); in openLogicalChannel()
209 rspApdu.p_data = NULL; in openLogicalChannel()
230 memset(&rspApdu, 0x00, sizeof(StEse_data)); in openLogicalChannel()
243 status = StEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel()
250 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openLogicalChannel()
251 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openLogicalChannel()
256 resApduBuff.selectResponse.resize(rspApdu.len); in openLogicalChannel()
257 memcpy(&resApduBuff.selectResponse[0], rspApdu.p_data, rspApdu.len); in openLogicalChannel()
287 free(rspApdu.p_data); in openLogicalChannel()
313 StEse_data rspApdu; in openBasicChannel() local
316 memset(&rspApdu, 0x00, sizeof(StEse_data)); in openBasicChannel()
330 status = StEse_Transceive(&cmdApdu, &rspApdu); in openBasicChannel()
337 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openBasicChannel()
338 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openBasicChannel()
343 result.resize(rspApdu.len); in openBasicChannel()
344 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in openBasicChannel()
376 free(rspApdu.p_data); in openBasicChannel()
388 StEse_data rspApdu; in closeChannel() local
399 memset(&rspApdu, 0x00, sizeof(StEse_data)); in closeChannel()
411 status = StEse_Transceive(&cmdApdu, &rspApdu); in closeChannel()
415 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in closeChannel()
416 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in closeChannel()
422 free(rspApdu.p_data); in closeChannel()