Lines Matching refs:rspApdu
97 phNxpEse_data rspApdu; in transmit() local
99 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in transmit()
105 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in transmit()
112 result.resize(rspApdu.len); in transmit()
113 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
117 phNxpEse_free(rspApdu.p_data); in transmit()
142 phNxpEse_data rspApdu; in openLogicalChannel() local
145 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel()
152 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel()
157 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
158 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
160 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel()
164 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel()
165 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel()
167 } else if (((rspApdu.p_data[rspApdu.len - 2] == 0x6E) || in openLogicalChannel()
168 (rspApdu.p_data[rspApdu.len - 2] == 0x6D)) && in openLogicalChannel()
169 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
175 phNxpEse_free(rspApdu.p_data); in openLogicalChannel()
197 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel()
210 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel()
217 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openLogicalChannel()
218 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openLogicalChannel()
223 resApduBuff.selectResponse.resize(rspApdu.len); in openLogicalChannel()
224 memcpy(&resApduBuff.selectResponse[0], rspApdu.p_data, rspApdu.len); in openLogicalChannel()
249 phNxpEse_free(rspApdu.p_data); in openLogicalChannel()
271 phNxpEse_data rspApdu; in openBasicChannel() local
274 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openBasicChannel()
287 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openBasicChannel()
294 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openBasicChannel()
295 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openBasicChannel()
300 result.resize(rspApdu.len); in openBasicChannel()
301 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in openBasicChannel()
335 phNxpEse_free(rspApdu.p_data); in openBasicChannel()
345 phNxpEse_data rspApdu; in closeChannel() local
354 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in closeChannel()
366 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in closeChannel()
370 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in closeChannel()
371 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in closeChannel()
377 phNxpEse_free(rspApdu.p_data); in closeChannel()