Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 25 of 63) sorted by relevance

123

/hardware/st/secure_element2/secure_element/1.0/
DSecureElement.cpp164 uint8_t *resp; in transmit() local
170 resp = (uint8_t*)malloc(65536 * sizeof(uint8_t)); in transmit()
178 resp_len = se_gto_apdu_transmit(ctx, apdu, apdu_len, resp, 65536); in transmit()
187 dump_bytes("RESP: ", ':', resp, resp_len, stdout); in transmit()
189 memcpy(&result[0], resp, resp_len); in transmit()
196 if(resp) free(resp); in transmit()
226 uint8_t *resp; in openLogicalChannel() local
233 resp = (uint8_t*)malloc(65536 * sizeof(uint8_t)); in openLogicalChannel()
235 if (apdu != NULL && resp!=NULL) { in openLogicalChannel()
245 resp_len = se_gto_apdu_transmit(ctx, apdu, apdu_len, resp, 65536); in openLogicalChannel()
[all …]
/hardware/st/secure_element2/secure_element/aidl/
DSecureElement.cpp179 uint8_t *resp; in transmit() local
185 resp = (uint8_t*)malloc(65536 * sizeof(uint8_t)); in transmit()
193 resp_len = se_gto_apdu_transmit(ctx, apdu, apdu_len, resp, 65536); in transmit()
202 dump_bytes("RESP: ", ':', resp, resp_len, stdout); in transmit()
204 memcpy(&result[0], resp, resp_len); in transmit()
213 if(resp) free(resp); in transmit()
245 uint8_t *resp; in openLogicalChannel() local
252 resp = (uint8_t*)malloc(65536 * sizeof(uint8_t)); in openLogicalChannel()
254 if (apdu != NULL && resp!=NULL) { in openLogicalChannel()
264 resp_len = se_gto_apdu_transmit(ctx, apdu, apdu_len, resp, 65536); in openLogicalChannel()
[all …]
/hardware/st/secure_element2/secure_element/1.1/
DSecureElement.cpp193 uint8_t *resp; in transmit() local
199 resp = (uint8_t*)malloc(65536 * sizeof(uint8_t)); in transmit()
207 resp_len = se_gto_apdu_transmit(ctx, apdu, apdu_len, resp, 65536); in transmit()
216 dump_bytes("RESP: ", ':', resp, resp_len, stdout); in transmit()
218 memcpy(&result[0], resp, resp_len); in transmit()
225 if(resp) free(resp); in transmit()
260 uint8_t *resp; in openLogicalChannel() local
267 resp = (uint8_t*)malloc(65536 * sizeof(uint8_t)); in openLogicalChannel()
269 if (apdu != NULL && resp!=NULL) { in openLogicalChannel()
279 resp_len = se_gto_apdu_transmit(ctx, apdu, apdu_len, resp, 65536); in openLogicalChannel()
[all …]
/hardware/st/secure_element2/secure_element/1.2/
DSecureElement.cpp223 uint8_t *resp; in transmit() local
229 resp = (uint8_t*)malloc(65536 * sizeof(uint8_t)); in transmit()
237 resp_len = se_gto_apdu_transmit(ctx, apdu, apdu_len, resp, 65536); in transmit()
246 dump_bytes("RESP: ", ':', resp, resp_len, stdout); in transmit()
248 memcpy(&result[0], resp, resp_len); in transmit()
255 if(resp) free(resp); in transmit()
286 uint8_t *resp; in openLogicalChannel() local
293 resp = (uint8_t*)malloc(65536 * sizeof(uint8_t)); in openLogicalChannel()
295 if (apdu != NULL && resp!=NULL) { in openLogicalChannel()
305 resp_len = se_gto_apdu_transmit(ctx, apdu, apdu_len, resp, 65536); in openLogicalChannel()
[all …]
/hardware/nxp/weaver/libese_weaver/src/
Dweaver-transport-impl.cpp30 #define IS_APPLET_SELECTION_FAILED(resp) \ argument
31 (!resp.empty() && resp[0] == APP_NOT_FOUND_SW1 && \
32 resp[1] == APP_NOT_FOUND_SW2)
105 std::vector<uint8_t> &resp) { in OpenApplet() argument
109 UNUSED(resp); in OpenApplet()
141 std::vector<uint8_t> &resp) { in sendInternal() argument
144 getTransportFactoryInstance()->sendData(data.data(), data.size(), resp); in sendInternal()
145 if (!status && IS_APPLET_SELECTION_FAILED(resp)) { in sendInternal()
151 resp); in sendInternal()
174 std::vector<uint8_t> &resp) { in Send() argument
[all …]
Dweaver-impl.cpp85 std::vector<uint8_t> resp; in GetSlots() local
89 mTransport->Send(getSlotCmd, resp)) { in GetSlots()
101 status = mParser->ParseSlotInfo(std::move(resp), slotInfo); in GetSlots()
138 std::vector<uint8_t> resp; in Read() local
144 mTransport->Send(cmd, resp)) { in Read()
148 status = mParser->ParseReadInfo(resp, readRespInfo); in Read()
152 resp.clear(); in Read()
154 (mTransport->Send(cmd, resp))) { in Read()
156 if (mParser->ParseGetDataInfo(std::move(resp), getDataInfo) == WEAVER_STATUS_OK) { in Read()
195 std::vector<uint8_t> resp; in Write() local
[all …]
/hardware/qcom/keymaster/
Dkeymaster_qcom.cpp338 keymaster_gen_keypair_resp_t *resp = NULL; in qcom_km_generate_keypair() local
345 resp = (keymaster_gen_keypair_resp_t *)(handle->ion_sbuffer + in qcom_km_generate_keypair()
351 resp->status = KEYMASTER_FAILURE; in qcom_km_generate_keypair()
352 resp->key_blob_len = sizeof(qcom_km_key_blob_t); in qcom_km_generate_keypair()
361 QSEECOM_ALIGN(sizeof(keymaster_gen_keypair_cmd_t)), resp, in qcom_km_generate_keypair()
367 if ( (ret < 0) || (resp->status < 0)) { in qcom_km_generate_keypair()
368 ALOGE("Generate key command failed resp->status = %d ret =%d", resp->status, ret); in qcom_km_generate_keypair()
371 std::unique_ptr<unsigned char[]> keydata(new unsigned char[resp->key_blob_len]); in qcom_km_generate_keypair()
377 memcpy(p, (unsigned char *)(&resp->key_blob), resp->key_blob_len); in qcom_km_generate_keypair()
379 *keyBlobLength = resp->key_blob_len; in qcom_km_generate_keypair()
[all …]
/hardware/nxp/keymint/KM300/authsecret/
DAuthSecret.cpp74 std::vector<uint8_t> resp; in clearAuthApprovedStatus() local
77 if (!gTransport->sendData(cmd, resp)) { in clearAuthApprovedStatus()
81 if ((resp.size() < 2) || (getApduStatus(resp) != APDU_RESP_STATUS_OK)) { in clearAuthApprovedStatus()
109 std::vector<uint8_t> resp; in setPrimaryUserCredential() local
112 if (!gTransport->sendData(cmd, resp)) { in setPrimaryUserCredential()
120 if ((resp.size() < 2) || (getApduStatus(resp) != APDU_RESP_STATUS_OK) || in setPrimaryUserCredential()
121 !gAuthSecretImplInstance->checkVerifyStatus(resp)) { in setPrimaryUserCredential()
127 gAuthSecretImplInstance->extractTimeoutValue(std::move(resp)); in setPrimaryUserCredential()
DAuthSecretHelper.cpp94 bool AuthSecretHelper::checkVerifyStatus(std::vector<uint8_t> resp) { in checkVerifyStatus() argument
97 auto [parsedData, _, errMsg] = cppbor::parse(resp); in checkVerifyStatus()
/hardware/nxp/keymint/transport/
DAppletConnection.cpp131 bool AppletConnection::selectApplet(std::vector<uint8_t>& resp, uint8_t p2) { in selectApplet() argument
136 resp = selectResponse.selectResponse; in selectApplet()
139 mSBAccessController.parseResponse(resp); in selectApplet()
147 void prepareErrorRepsponse(std::vector<uint8_t>& resp){ in prepareErrorRepsponse() argument
148 resp.clear(); in prepareErrorRepsponse()
149 resp.push_back(0xFF); in prepareErrorRepsponse()
150 resp.push_back(0xFF); in prepareErrorRepsponse()
152 bool AppletConnection::openChannelToApplet(std::vector<uint8_t>& resp) { in openChannelToApplet() argument
169 prepareErrorRepsponse(resp); in openChannelToApplet()
173 if (selectApplet(resp, SELECT_P2_VALUE_0) || selectApplet(resp, SELECT_P2_VALUE_2)) { in openChannelToApplet()
[all …]
/hardware/interfaces/radio/1.0/
DISap.hal32 * @param token Id to match req-resp. Resp must include same token.
40 * @param token Id to match req-resp. Resp must include same token.
47 * @param token Id to match req-resp. Resp must include same token.
56 * @param token Id to match req-resp. Resp must include same token.
63 * @param token Id to match req-resp. Resp must include same token.
71 * @param token Id to match req-resp. Resp must include same token.
78 * @param token Id to match req-resp. Resp must include same token.
85 * @param token Id to match req-resp. Resp must include same token.
DISapCallback.hal23 * @param token Id to match req-resp. Value must match the one in req.
33 * @param token Id to match req-resp. Value must match the one in req.
40 * @param token Id to match req-resp. Value must match the one in req.
48 * @param token Id to match req-resp. Value must match the one in req.
66 * @param token Id to match req-resp. Value must match the one in req.
82 * @param token Id to match req-resp. Value must match the one in req.
97 * @param token Id to match req-resp. Value must match the one in req.
111 * @param token Id to match req-resp. Value must match the one in req.
119 * @param token Id to match req-resp. Value must match the one in req.
135 * @param token Id to match req-resp. Value must match the one in req.
[all …]
/hardware/nxp/weaver/libese_weaver/inc/
Dweaver_transport-impl.h47 std::vector<uint8_t> &resp) override;
66 bool Send(std::vector<uint8_t> data, std::vector<uint8_t> &resp) override;
111 bool sendInternal(std::vector<uint8_t> data, std::vector<uint8_t> &resp);
Dweaver_transport.h46 std::vector<uint8_t> &resp) = 0;
65 virtual bool Send(std::vector<uint8_t> data, std::vector<uint8_t> &resp) = 0;
/hardware/st/secure_element2/secure_element/esehal/src/
Dlibse-gto.c180 se_gto_apdu_transmit(struct se_gto_ctx *ctx, const void *apdu, int n, void *resp, int r) in se_gto_apdu_transmit() argument
182 if (!apdu || (n < 4) || !resp || (r < 2)) { in se_gto_apdu_transmit()
186 r = isot1_transceive(&ctx->t1, apdu, n, resp, r); in se_gto_apdu_transmit()
247 unsigned char resp[258] = {0,}; in gtoSPI_checkAlive() local
251 ret = se_gto_apdu_transmit(ctx, apdu, 5, resp, sizeof(resp)); in gtoSPI_checkAlive()
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
Dloc_eng_ni.h46 GpsUserResponseType resp; member
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
Dloc_eng_ni.h46 GpsUserResponseType resp; member
/hardware/qcom/gps/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
212 loc_eng_ni_data_p->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
229 loc_eng_ni_data_p->resp, in ni_thread_proc()
344 loc_eng_ni_data_p->resp = user_response; in loc_eng_ni_respond()
Dloc_eng_ni.h44 GpsUserResponseType resp; member
/hardware/nxp/keymint/transport/include/
DAppletConnection.h72 bool openChannelToApplet(std::vector<uint8_t>& resp);
99 bool selectApplet(std::vector<uint8_t>& resp, uint8_t p2);

123