Lines Matching refs:len
142 cmdApdu.len = data.size(); in transmit()
143 if (cmdApdu.len >= MIN_APDU_LENGTH) { in transmit()
145 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit()
153 result.resize(rspApdu.len); in transmit()
154 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
188 cmdApdu.len = manageChannelCommand.size(); in openLogicalChannel()
192 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel()
198 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
199 rspApdu.p_data[rspApdu.len - 1] == 0x00) { 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()
240 cmdApdu.len = (int32_t)(5 + aid.size()); in openLogicalChannel()
241 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(cmdApdu.len * sizeof(uint8_t)); 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()
316 cmdApdu.len = (int32_t)(5 + aid.size()); in openBasicChannel()
317 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(cmdApdu.len * sizeof(uint8_t)); in openBasicChannel()
334 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openBasicChannel()
335 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openBasicChannel()
340 result.resize(rspApdu.len); in openBasicChannel()
341 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in openBasicChannel()
402 cmdApdu.len = xx; in closeChannel()
408 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in closeChannel()
409 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in closeChannel()