/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/ |
H A D | lnn_heartbeat_utils_virtual.c | 41 int32_t LnnGenerateHexStringHash(const unsigned char *str, char *hashStr, uint32_t len) in LnnGenerateHexStringHash() argument 44 (void)hashStr; in LnnGenerateHexStringHash()
|
H A D | lnn_heartbeat_utils.c | 250 int32_t LnnGenerateHexStringHash(const unsigned char *str, char *hashStr, uint32_t len) in LnnGenerateHexStringHash() argument 264 ret = ConvertBytesToHexString(hashStr, len + 1, hashResult, len / HEXIFY_UNIT_LEN); in LnnGenerateHexStringHash()
|
/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_deviceprofile.cpp | 71 char hashStr[CUST_UDID_LEN + 1] = {0}; in DelNotTrustDevice() local 76 if (ConvertBytesToHexString(hashStr, CUST_UDID_LEN + 1, udidHash, CUST_UDID_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in DelNotTrustDevice() 81 if (g_notTrustedDevices.find(hashStr) != g_notTrustedDevices.end()) { in DelNotTrustDevice() 83 g_notTrustedDevices.erase(hashStr); in DelNotTrustDevice() 104 char hashStr[CUST_UDID_LEN + 1] = {0}; in IsTrustDevice() local 110 if (ConvertBytesToHexString(hashStr, CUST_UDID_LEN + 1, udidHash, in IsTrustDevice() 115 if (strncmp(hashStr, deviceIdHash, strlen(deviceIdHash)) == 0) { in IsTrustDevice()
|
H A D | auth_hichain_adapter.c | 186 char hashStr[CUST_UDID_LEN + 1] = {0}; in IsTrustedDeviceInAGroup() local 190 if (ConvertBytesToHexString(hashStr, CUST_UDID_LEN + 1, udidHash, in IsTrustedDeviceInAGroup() 194 if (strncmp(hashStr, deviceId, strlen(deviceId)) == 0) { in IsTrustedDeviceInAGroup()
|
H A D | auth_session_fsm.c | 669 char hashStr[SHORT_UDID_HASH_HEX_LEN + 1] = {0}; in SaveLastAuthSeq() local 670 if (ConvertBytesToHexString(hashStr, SHORT_UDID_HASH_HEX_LEN + 1, in SaveLastAuthSeq() 677 if (LnnRetrieveDeviceInfo(hashStr, &deviceInfo) != SOFTBUS_OK) { in SaveLastAuthSeq()
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_data_cloud_sync_deps_mock.cpp | 84 int32_t LnnGenerateHexStringHash(const unsigned char *str, char *hashStr, uint32_t len)
in LnnGenerateHexStringHash() argument 86 return GetDataCloudSyncInterface()->LnnGenerateHexStringHash(str, hashStr, len);
in LnnGenerateHexStringHash()
|
/foundation/communication/dsoftbus/core/discovery/ble/softbus_ble/include/ |
H A D | disc_ble_utils.h | 74 int32_t DiscBleGetShortUserIdHash(unsigned char *hashStr, uint32_t len);
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/include/ |
H A D | lnn_data_cloud_sync_deps_mock.h | 44 virtual int32_t LnnGenerateHexStringHash(const unsigned char *str, char *hashStr, uint32_t len);
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/ |
H A D | lnn_distributed_net_ledger.c | 922 char hashStr[SHORT_UDID_HASH_HEX_LEN + 1] = {0}; in IsDeviceInfoChanged() local 928 if (ConvertBytesToHexString(hashStr, SHORT_UDID_HASH_HEX_LEN + 1, udidHash, in IsDeviceInfoChanged() 933 int32_t ret = LnnRetrieveDeviceInfo(hashStr, &deviceInfo); in IsDeviceInfoChanged() 980 char hashStr[SHORT_UDID_HASH_HEX_LEN + 1] = {0}; in BleDirectlyOnlineProc() local 986 if (ConvertBytesToHexString(hashStr, SHORT_UDID_HASH_HEX_LEN + 1, udidHash, in BleDirectlyOnlineProc() 991 if (LnnRetrieveDeviceInfo(hashStr, &deviceInfo) != SOFTBUS_OK) { in BleDirectlyOnlineProc() 1102 char hashStr[SHORT_UDID_HASH_HEX_LEN + 1] = {0}; in TryUpdateDeviceSecurityLevel() local 1108 if (ConvertBytesToHexString(hashStr, SHORT_UDID_HASH_HEX_LEN + 1, udidHash, in TryUpdateDeviceSecurityLevel() 1113 if (LnnRetrieveDeviceInfo(hashStr, &deviceInfo) != SOFTBUS_OK) { in TryUpdateDeviceSecurityLevel() 1129 char hashStr[SHORT_UDID_HASH_HEX_LE in ReversionLastAuthSeq() local [all...] |
/foundation/communication/dsoftbus/core/discovery/ble/softbus_ble/src/ |
H A D | disc_ble_utils.c | 142 int32_t DiscBleGetShortUserIdHash(uint8_t *hashStr, uint32_t len) in DiscBleGetShortUserIdHash() argument 144 DISC_CHECK_AND_RETURN_RET_LOGE(hashStr != NULL && len <= SHORT_USER_ID_HASH_LEN, in DiscBleGetShortUserIdHash() 150 DISC_CHECK_AND_RETURN_RET_LOGE(memcpy_s(hashStr, len, account, len) == EOK, in DiscBleGetShortUserIdHash()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/include/ |
H A D | lnn_heartbeat_utils.h | 159 int32_t LnnGenerateHexStringHash(const unsigned char *str, char *hashStr, uint32_t len);
|
/foundation/communication/dsoftbus/core/common/include/ |
H A D | softbus_utils.h | 115 int32_t GenerateStrHashAndConvertToHexString(const unsigned char *str, uint32_t len, unsigned char *hashStr,
|
/foundation/distributedhardware/distributed_input/common/include/ |
H A D | white_list_util.cpp | 253 std::string hashStr = hash.hash + std::to_string(code); in GetAllComb() local 254 WhiteListItemHash newHash(hashStr, hash.len + 1); in GetAllComb()
|
/foundation/communication/dsoftbus/core/common/utils/ |
H A D | softbus_utils.c | 596 unsigned char *hashStr, uint32_t hashStrLen) in GenerateStrHashAndConvertToHexString() 613 ret = ConvertBytesToHexString((char *)hashStr, hashStrLen, (const unsigned char *)hashResult, in GenerateStrHashAndConvertToHexString() 595 GenerateStrHashAndConvertToHexString(const unsigned char *str, uint32_t len, unsigned char *hashStr, uint32_t hashStrLen) GenerateStrHashAndConvertToHexString() argument
|
/foundation/communication/dsoftbus/tests/core/discovery/ble/softbus_ble/ |
H A D | disc_ble_utils_test.cpp | 293 * @tc.desc: Test DiscBleGetShortUserIdHash should return false when hashStr is nullptr or len is greater 302 uint8_t hashStr[SHORT_USER_ID_HASH_LEN] = { 0 }; in HWTEST_F() local 306 ret = DiscBleGetShortUserIdHash(hashStr, SHORT_USER_ID_HASH_LEN + 1); in HWTEST_F()
|
/foundation/communication/dsoftbus/core/connection/ble/src/ |
H A D | softbus_conn_ble_manager.c | 1847 char hashStr[HEXIFY_LEN(SHORT_UDID_HASH_LEN)] = { 0 }; in BleDisconnectDeviceNow() local 1848 if (ConvertBytesToHexString(hashStr, HEXIFY_LEN(SHORT_UDID_HASH_LEN), in BleDisconnectDeviceNow() 1853 ConvertAnonymizeSensitiveString(anomizeUdid, UDID_BUF_LEN, hashStr); in BleDisconnectDeviceNow() 1856 ConnBleConnection *connection = ConnBleGetConnectionByUdid(NULL, hashStr, BLE_PROTOCOL_ANY); in BleDisconnectDeviceNow() 1898 char hashStr[HEXIFY_LEN(SHORT_UDID_HASH_LEN)] = { 0 }; in BleCheckActiveConnection() local 1899 if (ConvertBytesToHexString(hashStr, HEXIFY_LEN(SHORT_UDID_HASH_LEN), in BleCheckActiveConnection() 1905 ConvertAnonymizeSensitiveString(anomizeUdid, UDID_BUF_LEN, hashStr); in BleCheckActiveConnection() 1906 ConnBleConnection *connection = ConnBleGetConnectionByUdid(NULL, hashStr, option->bleOption.protocol); in BleCheckActiveConnection()
|
/foundation/communication/dsoftbus/tests/core/connection/ble/ |
H A D | connection_ble_manager_test.cpp | 527 char hashStr[HEXIFY_LEN(SHORT_UDID_HASH_LEN)] = { 0 }; in HWTEST_F() local 529 hashStr, HEXIFY_LEN(SHORT_UDID_HASH_LEN), (unsigned char *)option.bleOption.deviceIdHash, SHORT_UDID_HASH_LEN); in HWTEST_F() 539 ret = memcpy_s(bleConnection->udid, UDID_HASH_LEN, hashStr, UDID_HASH_LEN); in HWTEST_F()
|