Lines Matching refs:len

99     uint8_t len = *ATR;  in getAtr()  local
100 if (len) { in getAtr()
101 response.resize(len); in getAtr()
102 memcpy(&response[0], ATR, len); in getAtr()
120 cmdApdu.len = data.size(); in transmit()
121 if (cmdApdu.len >= MIN_APDU_LENGTH) { in transmit()
123 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit()
139 result.resize(rspApdu.len); in transmit()
140 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit()
179 cmdApdu.len = manageChannelCommand.size(); in openLogicalChannel()
183 memcpy(cmdApdu.p_data, manageChannelCommand.data(), cmdApdu.len); in openLogicalChannel()
189 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel()
190 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
203 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel()
204 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel()
206 } else if (((rspApdu.p_data[rspApdu.len - 2] == 0x6E) || in openLogicalChannel()
207 (rspApdu.p_data[rspApdu.len - 2] == 0x6D)) && in openLogicalChannel()
208 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel()
238 cmdApdu.len = (int32_t)(6 + aid.size()); in openLogicalChannel()
239 cmdApdu.p_data = (uint8_t*)malloc(cmdApdu.len * sizeof(uint8_t)); in openLogicalChannel()
261 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openLogicalChannel()
262 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openLogicalChannel()
267 resApduBuff.selectResponse.resize(rspApdu.len); in openLogicalChannel()
268 memcpy(&resApduBuff.selectResponse[0], rspApdu.p_data, rspApdu.len); in openLogicalChannel()
329 cmdApdu.len = (int32_t)(6 + aid.size()); in openBasicChannel()
330 cmdApdu.p_data = (uint8_t*)malloc(cmdApdu.len * sizeof(uint8_t)); in openBasicChannel()
348 uint8_t sw1 = rspApdu.p_data[rspApdu.len - 2]; in openBasicChannel()
349 uint8_t sw2 = rspApdu.p_data[rspApdu.len - 1]; in openBasicChannel()
354 result.resize(rspApdu.len); in openBasicChannel()
355 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in openBasicChannel()
423 cmdApdu.len = xx; in closeChannel()
429 } else if ((rspApdu.p_data[rspApdu.len - 2] == 0x90) && in closeChannel()
430 (rspApdu.p_data[rspApdu.len - 1] == 0x00)) { in closeChannel()