Home
last modified time | relevance | path

Searched refs:udid (Results 1 – 25 of 27) sorted by relevance

12

/test/xts/device_attest/services/core/adapter/
Dattest_adapter_os.c64 char* udid = (char*)ATTEST_MEM_MALLOC(UDID_STRING_LEN + 1); in OsGetUdid() local
65 if (udid == NULL) { in OsGetUdid()
68 (void)memset_s(udid, UDID_STRING_LEN + 1, 0, UDID_STRING_LEN + 1); in OsGetUdid()
71 ret = GetDevUdid(udid, UDID_STRING_LEN + 1); in OsGetUdid()
75 ret = ToLowerStr(udid, UDID_STRING_LEN + 1); in OsGetUdid()
81 (void)memset_s(udid, UDID_STRING_LEN + 1, 0, UDID_STRING_LEN + 1); in OsGetUdid()
82 ATTEST_MEM_FREE(udid); in OsGetUdid()
85 char* outputStr = AttestStrdup(udid); in OsGetUdid()
86 (void)memset_s(udid, UDID_STRING_LEN + 1, 0, UDID_STRING_LEN + 1); in OsGetUdid()
87 ATTEST_MEM_FREE(udid); in OsGetUdid()
Dattest_adapter_mock.c146 char *udid = NULL; in OsGetUnencryptedUdidStub() local
167 udid = (char *)ATTEST_MEM_MALLOC(udidSize); in OsGetUnencryptedUdidStub()
168 if (udid == NULL) { in OsGetUnencryptedUdidStub()
172 … if ((strcat_s(udid, udidSize, manufacture) != 0) || (strcat_s(udid, udidSize, model) != 0) || in OsGetUnencryptedUdidStub()
173 (strcat_s(udid, udidSize, sn) != 0)) { in OsGetUnencryptedUdidStub()
174 ATTEST_MEM_FREE(udid); in OsGetUnencryptedUdidStub()
178 ATTEST_LOG_INFO_ANONY("[OsGetUnencryptedUdidStub] udid = %s", udid); in OsGetUnencryptedUdidStub()
188 *outputBuff = udid; in OsGetUnencryptedUdidStub()
194 char *udid = NULL; in OsGetUdidStub() local
199 ret = OsGetUnencryptedUdidStub(&udid, &udidSize); in OsGetUdidStub()
[all …]
/test/xts/device_attest_lite/services/core/adapter/
Dattest_adapter_os.c64 char* udid = (char*)ATTEST_MEM_MALLOC(UDID_STRING_LEN + 1); in OsGetUdid() local
65 if (udid == NULL) { in OsGetUdid()
68 (void)memset_s(udid, UDID_STRING_LEN + 1, 0, UDID_STRING_LEN + 1); in OsGetUdid()
71 ret = GetDevUdid(udid, UDID_STRING_LEN + 1); in OsGetUdid()
75 ret = ToLowerStr(udid, UDID_STRING_LEN + 1); in OsGetUdid()
81 (void)memset_s(udid, UDID_STRING_LEN + 1, 0, UDID_STRING_LEN + 1); in OsGetUdid()
82 ATTEST_MEM_FREE(udid); in OsGetUdid()
85 char* outputStr = AttestStrdup(udid); in OsGetUdid()
86 (void)memset_s(udid, UDID_STRING_LEN + 1, 0, UDID_STRING_LEN + 1); in OsGetUdid()
87 ATTEST_MEM_FREE(udid); in OsGetUdid()
Dattest_adapter_mock.c146 char *udid = NULL; in OsGetUnencryptedUdidStub() local
167 udid = (char *)ATTEST_MEM_MALLOC(udidSize); in OsGetUnencryptedUdidStub()
168 if (udid == NULL) { in OsGetUnencryptedUdidStub()
172 … if ((strcat_s(udid, udidSize, manufacture) != 0) || (strcat_s(udid, udidSize, model) != 0) || in OsGetUnencryptedUdidStub()
173 (strcat_s(udid, udidSize, sn) != 0)) { in OsGetUnencryptedUdidStub()
174 ATTEST_MEM_FREE(udid); in OsGetUnencryptedUdidStub()
178 ATTEST_LOG_INFO_ANONY("[OsGetUnencryptedUdidStub] udid = %s", udid); in OsGetUnencryptedUdidStub()
188 *outputBuff = udid; in OsGetUnencryptedUdidStub()
194 char *udid = NULL; in OsGetUdidStub() local
199 ret = OsGetUnencryptedUdidStub(&udid, &udidSize); in OsGetUdidStub()
[all …]
/test/xts/device_attest_lite/services/core/attest/
Dattest_service_device.c229 unsigned char *udid = NULL; in GetUdidDecrypted() local
238 udid = (unsigned char *)ATTEST_MEM_MALLOC(udidSize); in GetUdidDecrypted()
239 if (udid == NULL) { in GetUdidDecrypted()
243 (void)memset_s(udid, udidSize, 0, udidSize); in GetUdidDecrypted()
244 if ((memcpy_s(udid, udidSize, enShortName, enShortNameLen) != 0) || \ in GetUdidDecrypted()
245 (memcpy_s(udid + enShortNameLen, udidSize, model, modelLen) != 0) || \ in GetUdidDecrypted()
246 (memcpy_s(udid + enShortNameLen + modelLen, udidSize, sn, snLen) != 0)) { in GetUdidDecrypted()
248 ATTEST_MEM_FREE(udid); in GetUdidDecrypted()
259 return udid; in GetUdidDecrypted()
264 unsigned char *udid = GetUdidDecrypted(); in GetUdidForVerification() local
[all …]
Dattest_service_reset.c53 devicePacket->udid = StrdupDevInfo(UDID); in GenResetMsg()
Dattest_service_active.c65 devicePacket->udid = StrdupDevInfo(UDID); in GenActiveMsg()
Dattest_service_challenge.c59 devicePacket->udid = StrdupDevInfo(UDID); in GenChallengeMsg()
/test/xts/device_attest/services/core/attest/
Dattest_service_device.c335 unsigned char *udid = NULL; in GetUdidDecrypted() local
344 udid = (unsigned char *)ATTEST_MEM_MALLOC(udidSize); in GetUdidDecrypted()
345 if (udid == NULL) { in GetUdidDecrypted()
349 (void)memset_s(udid, udidSize, 0, udidSize); in GetUdidDecrypted()
350 if ((memcpy_s(udid, udidSize, enShortName, enShortNameLen) != 0) || \ in GetUdidDecrypted()
351 (memcpy_s(udid + enShortNameLen, udidSize, model, modelLen) != 0) || \ in GetUdidDecrypted()
352 (memcpy_s(udid + enShortNameLen + modelLen, udidSize, sn, snLen) != 0)) { in GetUdidDecrypted()
354 ATTEST_MEM_FREE(udid); in GetUdidDecrypted()
365 return udid; in GetUdidDecrypted()
370 unsigned char *udid = GetUdidDecrypted(); in GetUdidForVerification() local
[all …]
Dattest_service_reset.c53 devicePacket->udid = StrdupDevInfo(UDID); in GenResetMsg()
Dattest_service_active.c65 devicePacket->udid = StrdupDevInfo(UDID); in GenActiveMsg()
Dattest_service_challenge.c59 devicePacket->udid = StrdupDevInfo(UDID); in GenChallengeMsg()
/test/xts/acts/communication_lite/dsoftbus_hal/src/
Dsoftbus_bus_center_test.c316 char udid[UDID_BUF_LEN] = {0}; variable
321 (uint8_t *)udid, UDID_BUF_LEN) == SOFTBUS_OK);
451 char udid[] = "0123456789987654321001234567899876543210012345678998765432100123"; variable
459 TEST_ASSERT_TRUE(strncpy_s(configInfo.udid, UDID_BUF_LEN, udid, UDID_BUF_LEN) == EOK);
467 TEST_ASSERT_TRUE(strcmp(infos[0].configInfo.udid, udid) != 0);
482 char udid[] = "0123456789987654321001234567899876543210012345678998765432100123"; variable
490 TEST_ASSERT_TRUE(strncpy_s(configInfo.udid, UDID_BUF_LEN, udid, UDID_BUF_LEN) == EOK);
492 configInfo.udid[0] += 1;
/test/xts/tools/others/query/src/
DQueryMainStandard.cpp109 char udid[UDIDSIZE_LEN + 1] = { 0 }; in main() local
110 int ret = GetDevUdid(udid, UDIDSIZE_LEN + 1); in main()
112 printf("DevUdid = %s\n", udid); in main()
/test/xts/tools/lite/others/query/src/
DQueryMainSmall.cpp110 char udid[UDIDSIZE_LEN + 1] = { 0 }; in main() local
111 int retUdid = GetDevUdid(udid, UDIDSIZE_LEN + 1); in main()
113 printf("DevUdid = %s\n", udid); in main()
/test/xts/device_attest/services/core/network/
Dattest_network.c83 devicePacket->udid = NULL; in CreateDevicePacket()
110 ATTEST_MEM_FREE(devicePacket->udid); in DestroyDevicePacket()
132 static int32_t Sha256Udid(char *udid, char *outStr) in Sha256Udid() argument
136 if (udid == NULL || outStr == NULL) { in Sha256Udid()
142 SHA256_Update(&sha256, udid, strlen(udid)); in Sha256Udid()
155 ATTEST_LOG_DEBUG_ANONY("[Sha256Udid] udid = %s", udid); in Sha256Udid()
160 static int32_t SetSocketCliented(char* udid, char **outClientId) in SetSocketCliented() argument
168 int32_t retCode = ToLowerStr(udid, UDID_STRING_LEN); in SetSocketCliented()
178 retCode = Sha256Udid(udid, clientId); in SetSocketCliented()
240 int32_t retCode = SetSocketCliented(devValue->udid, &reqXclientID); in BuildSocketInfo()
[all …]
/test/xts/acts/startup/startup_standard/deviceinfo/src/main/js/test/
DDeviceInfoJsUnit.test.js1594 let udid = deviceinfo.udid;
1595 console.info('the value of the deviceinfo udid is :' + udid);
1597 let len = udid.length
1611 let udid = deviceinfo.udid;
1612 console.info('the value of the deviceinfo udid is :' + udid);
1614 expect(udid).assertInstanceOf('String');
1615 if (udid != "" && udid != null && udid != undefined) {
1629 let udid = deviceinfo.udid;
1630 console.info('the value of the deviceinfo udid is :' + udid);
1632 let len = udid.length
/test/xts/dcts/distributedhardware/distributedscreentest/
Dtest.cpp253 unsigned char udid[UDID_BUF_LEN] = {0}; in PrintNodeProperty() local
254 if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key, udid, UDID_BUF_LEN) != 0) { in PrintNodeProperty()
262 DHLOGE("Uuid = %s\n", GetAnonyString(reinterpret_cast<char *>(udid)).c_str()); in PrintNodeProperty()
/test/xts/device_attest_lite/services/core/network/
Dattest_network.c86 devicePacket->udid = NULL; in CreateDevicePacket()
112 ATTEST_MEM_FREE(devicePacket->udid); in DestroyDevicePacket()
329 if (cJSON_AddStringToObject(postData, "uniqueId", postValue->udid) == NULL) { in BuildCoapChallBody()
363 if (cJSON_AddStringToObject(postData, "udid", postValue->udid) == NULL) { in BuildCoapResetBody()
446 if (cJSON_AddStringToObject(postData, "udid", postValue->udid) == NULL) { in BuildCoapAuthBody()
497 cJSON_AddStringToObject(postData, "udid", postValue->udid) == NULL) { in BuildCoapActiveBody()
673 static int32_t GenUdidSHA256HEX(char* udid, char** udidSHA256Hex) in GenUdidSHA256HEX() argument
675 if (udid == NULL || udidSHA256Hex == NULL) { in GenUdidSHA256HEX()
680 int32_t ret = ToLowerStr(udid, UDID_STRING_LEN); in GenUdidSHA256HEX()
689 …ret = Sha256Value((const unsigned char *)udid, UDID_STRING_LEN, udidAfterSHA256, UDID_SHA256_OUTPU… in GenUdidSHA256HEX()
[all …]
/test/xts/device_attest_lite/services/core/dfx/
Dattest_dfx.c57 if (devicePacket->udid == NULL) { in PrintDevicePacket()
60 ATTEST_LOG_INFO_ANONY("udid = %s;", devicePacket->udid); in PrintDevicePacket()
/test/xts/device_attest/services/core/dfx/
Dattest_dfx.c57 if (devicePacket->udid == NULL) { in PrintDevicePacket()
60 ATTEST_LOG_INFO_ANONY("udid = %s;", devicePacket->udid); in PrintDevicePacket()
/test/xts/tools/lite/hctest/src/
Dhctest.c302 char udid[UDIDSIZE_LEN + 1] = { 0 }; in ObtainSystemParams() local
303 int retUdid = GetDevUdid(udid, UDIDSIZE_LEN + 1); in ObtainSystemParams()
305 printf("DevUdid = %s\n", udid); in ObtainSystemParams()
/test/xts/device_attest_lite/services/core/include/
Dattest_type.h151 char *udid; member
/test/xts/device_attest/services/core/include/
Dattest_type.h164 char *udid; member
/test/xts/dcts/communication/softbus_standard/transmission/reliability/
Dtrans_reliability_test.cpp1214 char udid[UDID_BUF_LEN] = {0}; variable
1218 (uint8_t *)udid, UDID_BUF_LEN);

12