/hardware/nxp/secure_element/pn8x/1.0/ |
D | SecureElement.cpp | 96 phNxpEse_data rspApdu; in transmit() local 98 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in transmit() 104 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in transmit() 111 result.resize(rspApdu.len); in transmit() 112 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 116 phNxpEse_free(rspApdu.p_data); in transmit() 141 phNxpEse_data rspApdu; in openLogicalChannel() local 144 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel() 151 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 156 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() [all …]
|
/hardware/nxp/secure_element/pn8x/1.1/ |
D | SecureElement.cpp | 138 phNxpEse_data rspApdu; in transmit() local 140 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in transmit() 146 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in transmit() 153 result.resize(rspApdu.len); in transmit() 154 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 158 phNxpEse_free(rspApdu.p_data); in transmit() 183 phNxpEse_data rspApdu; in openLogicalChannel() local 186 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel() 193 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 198 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() [all …]
|
/hardware/st/secure_element/1.0/ |
D | SecureElement.cpp | 115 StEse_data rspApdu; in transmit() local 117 memset(&rspApdu, 0x00, sizeof(StEse_data)); in transmit() 128 status = (ESESTATUS)Aram_transceive(&cmdApdu, &rspApdu); in transmit() 130 status = StEse_Transceive(&cmdApdu, &rspApdu); in transmit() 139 result.resize(rspApdu.len); in transmit() 140 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 144 free(rspApdu.p_data); in transmit() 174 StEse_data rspApdu; in openLogicalChannel() local 177 memset(&rspApdu, 0x00, sizeof(StEse_data)); in openLogicalChannel() 184 status = StEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() [all …]
|
/hardware/st/secure_element/1.1/ |
D | SecureElement.cpp | 125 StEse_data rspApdu; in transmit() local 127 memset(&rspApdu, 0x00, sizeof(StEse_data)); in transmit() 134 status = StEse_Transceive(&cmdApdu, &rspApdu); in transmit() 142 result.resize(rspApdu.len); in transmit() 143 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 147 free(rspApdu.p_data); in transmit() 175 StEse_data rspApdu; in openLogicalChannel() local 178 memset(&rspApdu, 0x00, sizeof(StEse_data)); in openLogicalChannel() 185 status = StEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 190 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() [all …]
|
/hardware/st/secure_element/1.2/ |
D | SecureElement.cpp | 130 StEse_data rspApdu; in transmit() local 132 memset(&rspApdu, 0x00, sizeof(StEse_data)); in transmit() 139 status = StEse_Transceive(&cmdApdu, &rspApdu); in transmit() 147 result.resize(rspApdu.len); in transmit() 148 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 152 free(rspApdu.p_data); in transmit() 180 StEse_data rspApdu; in openLogicalChannel() local 183 memset(&rspApdu, 0x00, sizeof(StEse_data)); in openLogicalChannel() 190 status = StEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 195 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() [all …]
|
/hardware/nxp/secure_element/pn8x/ls_client/src/ |
D | LsLib.cpp | 156 phNxpEse_data rspApdu; in LSC_OpenChannel() local 158 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in LSC_OpenChannel() 164 ESESTATUS eseStat = phNxpEse_Transceive(&cmdApdu, &rspApdu); in LSC_OpenChannel() 166 if (eseStat != ESESTATUS_SUCCESS && (rspApdu.len < 0x03)) { in LSC_OpenChannel() 167 if (rspApdu.len == 0x02) in LSC_OpenChannel() 168 memcpy(&gsLsExecuteResp[2], &rspApdu.p_data[rspApdu.len - 2], 2); in LSC_OpenChannel() 171 } else if (((rspApdu.p_data[rspApdu.len - 2] != 0x90) && in LSC_OpenChannel() 172 (rspApdu.p_data[rspApdu.len - 1] != 0x00))) { in LSC_OpenChannel() 173 memcpy(&gsLsExecuteResp[2], &rspApdu.p_data[rspApdu.len - 2], 2); in LSC_OpenChannel() 178 Os_info->Channel_Info[cnt].channel_id = rspApdu.p_data[rspApdu.len - 3]; in LSC_OpenChannel() [all …]
|
/hardware/nxp/secure_element/snxxx/1.0/ |
D | VirtualISO.cpp | 184 phNxpEse_data rspApdu; in openLogicalChannel() local 187 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel() 200 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 203 if (NULL != rspApdu.p_data && rspApdu.len > 0) { in openLogicalChannel() 204 if ((rspApdu.p_data[0] == 0x64 && rspApdu.p_data[1] == 0xFF)) { in openLogicalChannel() 211 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel() 212 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel() 215 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 216 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() 217 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel() [all …]
|
D | SecureElement.cpp | 242 phNxpEse_data rspApdu; in openLogicalChannel() local 246 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel() 257 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 260 if (NULL != rspApdu.p_data && rspApdu.len > 0) { in openLogicalChannel() 261 if (rspApdu.p_data[0] == 0x64 && rspApdu.p_data[1] == 0xFF) { in openLogicalChannel() 268 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel() 269 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel() 272 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 273 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() 274 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel() [all …]
|
/hardware/nxp/secure_element/snxxx/1.1/ |
D | VirtualISO.cpp | 245 phNxpEse_data rspApdu; in openLogicalChannel() local 248 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel() 261 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 264 if (NULL != rspApdu.p_data && rspApdu.len > 0) { in openLogicalChannel() 265 if ((rspApdu.p_data[0] == 0x64 && rspApdu.p_data[1] == 0xFF)) { in openLogicalChannel() 272 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel() 273 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel() 276 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 277 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() 278 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel() [all …]
|
D | SecureElement.cpp | 312 phNxpEse_data rspApdu; in openLogicalChannel() local 316 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel() 327 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 330 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel() 331 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel() 334 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 335 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() 336 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel() 340 } else if (((rspApdu.p_data[rspApdu.len - 2] == 0x6E) || in openLogicalChannel() 341 (rspApdu.p_data[rspApdu.len - 2] == 0x6D)) && in openLogicalChannel() [all …]
|
/hardware/nxp/secure_element/snxxx/1.2/ |
D | VirtualISO.cpp | 256 phNxpEse_data rspApdu; in openLogicalChannel() local 259 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel() 272 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 275 if (NULL != rspApdu.p_data && rspApdu.len > 0) { in openLogicalChannel() 276 if ((rspApdu.p_data[0] == 0x64 && rspApdu.p_data[1] == 0xFF)) { in openLogicalChannel() 283 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel() 284 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel() 287 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 288 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() 289 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel() [all …]
|
D | SecureElement.cpp | 362 phNxpEse_data rspApdu; in openLogicalChannel() local 366 phNxpEse_memset(&rspApdu, 0x00, sizeof(phNxpEse_data)); in openLogicalChannel() 377 status = phNxpEse_Transceive(&cmdApdu, &rspApdu); in openLogicalChannel() 380 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x6A && in openLogicalChannel() 381 rspApdu.p_data[rspApdu.len - 1] == 0x81) { in openLogicalChannel() 384 } else if (rspApdu.p_data[rspApdu.len - 2] == 0x90 && in openLogicalChannel() 385 rspApdu.p_data[rspApdu.len - 1] == 0x00) { in openLogicalChannel() 386 resApduBuff.channelNumber = rspApdu.p_data[0]; in openLogicalChannel() 390 } else if (((rspApdu.p_data[rspApdu.len - 2] == 0x6E) || in openLogicalChannel() 391 (rspApdu.p_data[rspApdu.len - 2] == 0x6D)) && in openLogicalChannel() [all …]
|