Lines Matching refs:len
101 cmdApdu.len = data.size(); in transmit()
102 if (cmdApdu.len >= MIN_APDU_LENGTH) { in transmit()
104 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit()
112 result.resize(rspApdu.len); in transmit()
113 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
147 cmdApdu.len = manageChannelCommand.size(); 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()
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()
199 cmdApdu.len = (int32_t)(5 + aid.size()); in openLogicalChannel()
200 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(cmdApdu.len * sizeof(uint8_t)); 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()
275 cmdApdu.len = (int32_t)(5 + aid.size()); in openBasicChannel()
276 cmdApdu.p_data = (uint8_t*)phNxpEse_memalloc(cmdApdu.len * sizeof(uint8_t)); in openBasicChannel()
293 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openBasicChannel()
294 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openBasicChannel()
299 result.resize(rspApdu.len); in openBasicChannel()
300 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in openBasicChannel()
362 cmdApdu.len = xx; in closeChannel()
368 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in closeChannel()
369 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in closeChannel()