Lines Matching refs:p_data

103     cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(data.size() * sizeof(uint8_t));  in transmit()
104 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit()
113 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
116 phNxpEse_free(cmdApdu.p_data); in transmit()
117 phNxpEse_free(rspApdu.p_data); in transmit()
148 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(manageChannelCommand.size() * in openLogicalChannel()
150 if (cmdApdu.p_data != NULL) { in openLogicalChannel()
151 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); 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()
174 phNxpEse_free(cmdApdu.p_data); in openLogicalChannel()
175 phNxpEse_free(rspApdu.p_data); in openLogicalChannel()
200 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(cmdApdu.len * sizeof(uint8_t)); in openLogicalChannel()
201 if (cmdApdu.p_data != NULL) { in openLogicalChannel()
203 cmdApdu.p_data[xx++] = resApduBuff.channelNumber; in openLogicalChannel()
204 cmdApdu.p_data[xx++] = 0xA4; // INS in openLogicalChannel()
205 cmdApdu.p_data[xx++] = 0x04; // P1 in openLogicalChannel()
206 cmdApdu.p_data[xx++] = p2; // P2 in openLogicalChannel()
207 cmdApdu.p_data[xx++] = aid.size(); // Lc in openLogicalChannel()
208 memcpy(&cmdApdu.p_data[xx], aid.data(), aid.size()); 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()
224 memcpy(&resApduBuff.selectResponse[0], rspApdu.p_data, rspApdu.len); in openLogicalChannel()
248 phNxpEse_free(cmdApdu.p_data); in openLogicalChannel()
249 phNxpEse_free(rspApdu.p_data); in openLogicalChannel()
277 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(cmdApdu.len * sizeof(uint8_t)); in openBasicChannel()
278 if (cmdApdu.p_data != NULL) { in openBasicChannel()
280 cmdApdu.p_data[xx++] = 0x00; // basic channel in openBasicChannel()
281 cmdApdu.p_data[xx++] = 0xA4; // INS in openBasicChannel()
282 cmdApdu.p_data[xx++] = 0x04; // P1 in openBasicChannel()
283 cmdApdu.p_data[xx++] = p2; // P2 in openBasicChannel()
284 cmdApdu.p_data[xx++] = aid.size(); // Lc in openBasicChannel()
285 memcpy(&cmdApdu.p_data[xx], aid.data(), aid.size()); 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()
301 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in openBasicChannel()
334 phNxpEse_free(cmdApdu.p_data); in openBasicChannel()
335 phNxpEse_free(rspApdu.p_data); in openBasicChannel()
355 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(5 * sizeof(uint8_t)); in closeChannel()
356 if (cmdApdu.p_data != NULL) { in closeChannel()
359 cmdApdu.p_data[xx++] = channelNumber; in closeChannel()
360 cmdApdu.p_data[xx++] = 0x70; // INS in closeChannel()
361 cmdApdu.p_data[xx++] = 0x80; // P1 in closeChannel()
362 cmdApdu.p_data[xx++] = channelNumber; // P2 in closeChannel()
363 cmdApdu.p_data[xx++] = 0x00; // Lc in closeChannel()
370 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in closeChannel()
371 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in closeChannel()
376 phNxpEse_free(cmdApdu.p_data); in closeChannel()
377 phNxpEse_free(rspApdu.p_data); in closeChannel()