Lines Matching refs:rspApdu
115 StEse_data rspApdu; in transmit() local
117 memset(&rspApdu, 0x00, sizeof(StEse_data)); in transmit()
128 status = (ESESTATUS)Aram_transceive(&cmdApdu, &rspApdu); in transmit()
130 status = StEse_Transceive(&cmdApdu, &rspApdu); in transmit()
139 result.resize(rspApdu.len); in transmit()
140 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
144 free(rspApdu.p_data); in transmit()
174 StEse_data rspApdu; in openLogicalChannel() local
177 memset(&rspApdu, 0x00, sizeof(StEse_data)); in openLogicalChannel()
184 status = StEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel()
189 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
190 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
192 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel()
203 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel()
204 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel()
206 } else if (((rspApdu.p_data[rspApdu.len - 2] == 0x6E) || in openLogicalChannel()
207 (rspApdu.p_data[rspApdu.len - 2] == 0x6D)) && in openLogicalChannel()
208 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
214 free(rspApdu.p_data); in openLogicalChannel()
215 rspApdu.p_data = NULL; in openLogicalChannel()
236 memset(&rspApdu, 0x00, sizeof(StEse_data)); in openLogicalChannel()
251 status = (ESESTATUS)Aram_transceive(&cmdApdu, &rspApdu); in openLogicalChannel()
253 status = StEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel()
261 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openLogicalChannel()
262 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openLogicalChannel()
267 resApduBuff.selectResponse.resize(rspApdu.len); in openLogicalChannel()
268 memcpy(&resApduBuff.selectResponse[0], rspApdu.p_data, rspApdu.len); in openLogicalChannel()
298 free(rspApdu.p_data); in openLogicalChannel()
324 StEse_data rspApdu; in openBasicChannel() local
327 memset(&rspApdu, 0x00, sizeof(StEse_data)); in openBasicChannel()
341 status = StEse_Transceive(&cmdApdu, &rspApdu); in openBasicChannel()
348 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openBasicChannel()
349 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openBasicChannel()
354 result.resize(rspApdu.len); in openBasicChannel()
355 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in openBasicChannel()
387 free(rspApdu.p_data); in openBasicChannel()
399 StEse_data rspApdu; in closeChannel() local
413 memset(&rspApdu, 0x00, sizeof(StEse_data)); in closeChannel()
425 status = StEse_Transceive(&cmdApdu, &rspApdu); in closeChannel()
429 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in closeChannel()
430 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in closeChannel()
436 free(rspApdu.p_data); in closeChannel()