Home
last modified time | relevance | path

Searched refs:hashStr (Results 1 - 17 of 17) sorted by relevance

/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_utils_virtual.c41 int32_t LnnGenerateHexStringHash(const unsigned char *str, char *hashStr, uint32_t len) in LnnGenerateHexStringHash() argument
44 (void)hashStr; in LnnGenerateHexStringHash()
H A Dlnn_heartbeat_utils.c250 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 Dauth_deviceprofile.cpp71 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 Dauth_hichain_adapter.c186 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 Dauth_session_fsm.c669 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 Dlnn_data_cloud_sync_deps_mock.cpp84 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 Ddisc_ble_utils.h74 int32_t DiscBleGetShortUserIdHash(unsigned char *hashStr, uint32_t len);
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/include/
H A Dlnn_data_cloud_sync_deps_mock.h44 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 Dlnn_distributed_net_ledger.c922 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 Ddisc_ble_utils.c142 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 Dlnn_heartbeat_utils.h159 int32_t LnnGenerateHexStringHash(const unsigned char *str, char *hashStr, uint32_t len);
/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_utils.h115 int32_t GenerateStrHashAndConvertToHexString(const unsigned char *str, uint32_t len, unsigned char *hashStr,
/foundation/distributedhardware/distributed_input/common/include/
H A Dwhite_list_util.cpp253 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 Dsoftbus_utils.c596 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 Ddisc_ble_utils_test.cpp293 * @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 Dsoftbus_conn_ble_manager.c1847 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 Dconnection_ble_manager_test.cpp527 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()

Completed in 18 milliseconds