/ohos5.0/base/telephony/cellular_call/services/utils/include/ |
H A D | standardize_utils.h | 59 static hash_t64 Hash_(char const *hashStr) in Hash_() argument 62 while (*hashStr) { in Hash_() 63 result ^= *hashStr; in Hash_() 65 hashStr++; in Hash_()
|
/ohos5.0/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)… in DelNotTrustDevice() 81 if (g_notTrustedDevices.find(hashStr) != g_notTrustedDevices.end()) { in DelNotTrustDevice() 83 g_notTrustedDevices.erase(hashStr); in DelNotTrustDevice() 103 char hashStr[CUST_UDID_LEN + 1] = {0}; in IsTrustDevice() local 109 if (ConvertBytesToHexString(hashStr, CUST_UDID_LEN + 1, udidHash, in IsTrustDevice() 114 if (strncmp(hashStr, deviceIdHash, strlen(deviceIdHash)) == 0) { in IsTrustDevice()
|
H A D | auth_hichain_adapter.c | 184 char hashStr[CUST_UDID_LEN + 1] = {0}; in IsTrustedDeviceInAGroup() local 188 if (ConvertBytesToHexString(hashStr, CUST_UDID_LEN + 1, udidHash, in IsTrustedDeviceInAGroup() 192 if (strncmp(hashStr, deviceId, strlen(deviceId)) == 0) { in IsTrustedDeviceInAGroup()
|
H A D | auth_session_fsm.c | 668 char hashStr[SHORT_UDID_HASH_HEX_LEN + 1] = {0}; in SaveLastAuthSeq() local 669 if (ConvertBytesToHexString(hashStr, SHORT_UDID_HASH_HEX_LEN + 1, in SaveLastAuthSeq() 676 if (LnnRetrieveDeviceInfo(hashStr, &deviceInfo) != SOFTBUS_OK) { in SaveLastAuthSeq()
|
/ohos5.0/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 | 245 int32_t LnnGenerateHexStringHash(const unsigned char *str, char *hashStr, uint32_t len) in LnnGenerateHexStringHash() argument 259 ret = ConvertBytesToHexString(hashStr, len + 1, hashResult, len / HEXIFY_UNIT_LEN); in LnnGenerateHexStringHash()
|
/ohos5.0/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()
|
/ohos5.0/base/tee/tee_client/services/cadaemon/src/tui_daemon/ |
H A D | tui_event.cpp | 74 const char *hashStr = FONT_HASH_VAL; in TUISaveTTFHash() 75 if (hashStr == NULL) { in TUISaveTTFHash() 80 g_hashLen = (uint32_t)strlen(hashStr); in TUISaveTTFHash() 86 if (memcpy_s(g_hashVal, TTF_STRING_SIZE, hashStr, g_hashLen) != EOK) { in TUISaveTTFHash()
|
/ohos5.0/base/hiviewdfx/hiview/base/event_store/store/ |
H A D | sys_event_repeat_guard.cpp | 38 bool GetShaStr(uint8_t* eventData, std::string& hashStr) in GetShaStr() argument 52 hashStr = buff; in GetShaStr()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/ |
H A D | lnn_distributed_net_ledger.c | 920 char hashStr[SHORT_UDID_HASH_HEX_LEN + 1] = {0}; in IsDeviceInfoChanged() local 926 if (ConvertBytesToHexString(hashStr, SHORT_UDID_HASH_HEX_LEN + 1, udidHash, in IsDeviceInfoChanged() 931 int32_t ret = LnnRetrieveDeviceInfo(hashStr, &deviceInfo); in IsDeviceInfoChanged() 987 char hashStr[SHORT_UDID_HASH_HEX_LEN + 1] = {0}; in BleDirectlyOnlineProc() local 998 if (LnnRetrieveDeviceInfo(hashStr, &deviceInfo) != SOFTBUS_OK) { in BleDirectlyOnlineProc() 1108 char hashStr[SHORT_UDID_HASH_HEX_LEN + 1] = {0}; in TryUpdateDeviceSecurityLevel() local 1114 if (ConvertBytesToHexString(hashStr, SHORT_UDID_HASH_HEX_LEN + 1, udidHash, in TryUpdateDeviceSecurityLevel() 1119 if (LnnRetrieveDeviceInfo(hashStr, &deviceInfo) != SOFTBUS_OK) { in TryUpdateDeviceSecurityLevel() 1135 char hashStr[SHORT_UDID_HASH_HEX_LEN + 1] = {0}; in ReversionLastAuthSeq() local 1141 if (ConvertBytesToHexString(hashStr, SHORT_UDID_HASH_HEX_LEN + 1, udidHash, in ReversionLastAuthSeq() [all …]
|
/ohos5.0/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);
|
/ohos5.0/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()
|
/ohos5.0/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);
|
/ohos5.0/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()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/include/ |
H A D | softbus_utils.h | 115 …enerateStrHashAndConvertToHexString(const unsigned char *str, uint32_t len, unsigned char *hashStr,
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/include/ |
H A D | lnn_heartbeat_utils.h | 157 int32_t LnnGenerateHexStringHash(const unsigned char *str, char *hashStr, uint32_t len);
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/ble/softbus_ble/ |
H A D | disc_ble_utils_test.cpp | 302 uint8_t hashStr[SHORT_USER_ID_HASH_LEN] = { 0 }; variable 306 ret = DiscBleGetShortUserIdHash(hashStr, SHORT_USER_ID_HASH_LEN + 1);
|
/ohos5.0/foundation/communication/dsoftbus/core/common/utils/ |
H A D | softbus_utils.c | 594 unsigned char *hashStr, uint32_t hashStrLen) in GenerateStrHashAndConvertToHexString() argument 611 ret = ConvertBytesToHexString((char *)hashStr, hashStrLen, (const unsigned char *)hashResult, in GenerateStrHashAndConvertToHexString()
|
/ohos5.0/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 }; variable 529 …hashStr, HEXIFY_LEN(SHORT_UDID_HASH_LEN), (unsigned char *)option.bleOption.deviceIdHash, SHORT_UD… 539 ret = memcpy_s(bleConnection->udid, UDID_HASH_LEN, hashStr, UDID_HASH_LEN);
|
/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/src/ |
H A D | softbus_conn_ble_manager.c | 1886 char hashStr[HEXIFY_LEN(SHORT_UDID_HASH_LEN)] = { 0 }; in BleCheckActiveConnection() local 1887 if (ConvertBytesToHexString(hashStr, HEXIFY_LEN(SHORT_UDID_HASH_LEN), in BleCheckActiveConnection() 1892 …ConnBleConnection *connection = ConnBleGetConnectionByUdid(NULL, hashStr, option->bleOption.protoc… in BleCheckActiveConnection()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-fileio.md | 1234 fileio.hash(filePath, "sha256", (err: BusinessError, hashStr: string) => { 1235 if (hashStr) { 1236 console.info("calculate file hash succeed:" + hashStr);
|
/ohos5.0/docs/en/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-fileio.md | 1234 fileio.hash(filePath, "sha256", (err: BusinessError, hashStr: string) => { 1235 if (hashStr) { 1236 console.info("calculate file hash succeed:" + hashStr);
|