Lines Matching refs:rspApdu

138   phNxpEse_data rspApdu;  in transmit()  local
140 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in transmit()
146 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in transmit()
153 result.resize(rspApdu.len); in transmit()
154 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
158 phNxpEse_free(rspApdu.p_data); in transmit()
183 phNxpEse_data rspApdu; in openLogicalChannel() local
186 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel()
193 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel()
198 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
199 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
201 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel()
205 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel()
206 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel()
208 } else if (((rspApdu.p_data[rspApdu.len - 2] == 0x6E) || in openLogicalChannel()
209 (rspApdu.p_data[rspApdu.len - 2] == 0x6D)) && in openLogicalChannel()
210 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
216 phNxpEse_free(rspApdu.p_data); in openLogicalChannel()
238 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel()
251 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel()
258 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openLogicalChannel()
259 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openLogicalChannel()
264 resApduBuff.selectResponse.resize(rspApdu.len); in openLogicalChannel()
265 memcpy(&resApduBuff.selectResponse[0], rspApdu.p_data, rspApdu.len); in openLogicalChannel()
290 phNxpEse_free(rspApdu.p_data); in openLogicalChannel()
312 phNxpEse_data rspApdu; in openBasicChannel() local
315 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openBasicChannel()
328 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openBasicChannel()
335 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openBasicChannel()
336 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openBasicChannel()
341 result.resize(rspApdu.len); in openBasicChannel()
342 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in openBasicChannel()
376 phNxpEse_free(rspApdu.p_data); in openBasicChannel()
385 phNxpEse_data rspApdu; in closeChannel() local
394 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in closeChannel()
406 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in closeChannel()
410 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in closeChannel()
411 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in closeChannel()
417 phNxpEse_free(rspApdu.p_data); in closeChannel()