Home
last modified time | relevance | path

Searched refs:hashStr (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/base/telephony/cellular_call/services/utils/include/
H A Dstandardize_utils.h59 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 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)… 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 Dauth_hichain_adapter.c184 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 Dauth_session_fsm.c668 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 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.c245 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 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()
/ohos5.0/base/tee/tee_client/services/cadaemon/src/tui_daemon/
H A Dtui_event.cpp74 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 Dsys_event_repeat_guard.cpp38 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 Dlnn_distributed_net_ledger.c920 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 Ddisc_ble_utils.h74 int32_t DiscBleGetShortUserIdHash(unsigned char *hashStr, uint32_t len);
/ohos5.0/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()
/ohos5.0/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);
/ohos5.0/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()
/ohos5.0/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_utils.h115 …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 Dlnn_heartbeat_utils.h157 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 Ddisc_ble_utils_test.cpp302 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 Dsoftbus_utils.c594 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 Dconnection_ble_manager_test.cpp527 char hashStr[HEXIFY_LEN(SHORT_UDID_HASH_LEN)] = { 0 }; variable
529hashStr, 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 Dsoftbus_conn_ble_manager.c1886 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 Djs-apis-fileio.md1234 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 Djs-apis-fileio.md1234 fileio.hash(filePath, "sha256", (err: BusinessError, hashStr: string) => {
1235 if (hashStr) {
1236 console.info("calculate file hash succeed:" + hashStr);