Home
last modified time | relevance | path

Searched refs:HEXIFY_UNIT_LEN (Results 1 - 10 of 10) sorted by relevance

/foundation/communication/dsoftbus/core/adapter/bus_center/src/
H A Dlnn_ohos_account.cpp47 char *accountInfo = (char *)SoftBusMalloc(len * HEXIFY_UNIT_LEN); in LnnGetOhosAccountInfo()
52 (void)memset_s(accountInfo, len * HEXIFY_UNIT_LEN, '0', len * HEXIFY_UNIT_LEN); in LnnGetOhosAccountInfo()
54 if (GetOsAccountId(accountInfo, len * HEXIFY_UNIT_LEN, &size) != SOFTBUS_OK) { in LnnGetOhosAccountInfo()
/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_utils.h27 #define HEXIFY_UNIT_LEN 2 macro
28 #define UN_HEXIFY_LEN(len) ((len) / HEXIFY_UNIT_LEN)
29 #define HEXIFY_LEN(len) ((len) * HEXIFY_UNIT_LEN + 1)
/foundation/communication/dsoftbus/tests/core/adapter/unittest/
H A Dlnn_ohos_account_adapter_test.cpp58 char *accountInfo = (char *)malloc(LNN_OHOS_ACCOUNT_ADAPTER_TEST_ID_LEN * HEXIFY_UNIT_LEN); in HWTEST_F()
74 char *accountInfo = (char *)malloc(LNN_OHOS_ACCOUNT_ADAPTER_TEST_ID_LEN * HEXIFY_UNIT_LEN); in HWTEST_F()
89 char *accountInfo = (char *)malloc(LNN_OHOS_ACCOUNT_ADAPTER_TEST_ID_LEN * HEXIFY_UNIT_LEN); in HWTEST_F()
108 char *accountInfo = (char *)malloc(LNN_OHOS_ACCOUNT_ADAPTER_TEST_ID_LEN * HEXIFY_UNIT_LEN); in HWTEST_F()
/foundation/communication/dsoftbus/core/common/utils/
H A Dsoftbus_utils.c185 if ((outBuf == NULL) || (inBuf == NULL) || (inLen % HEXIFY_UNIT_LEN != 0)) { in ConvertHexStringToBytes()
254 if ((str == NULL) || (len < HEXIFY_UNIT_LEN)) { in GenerateRandomStr()
258 uint32_t hexLen = len / HEXIFY_UNIT_LEN; in GenerateRandomStr()
600 if (hashStrLen < HEXIFY_LEN(len / HEXIFY_UNIT_LEN)) { in GenerateStrHashAndConvertToHexString()
614 len / HEXIFY_UNIT_LEN); in GenerateStrHashAndConvertToHexString()
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_deviceprofile.cpp76 if (ConvertBytesToHexString(hashStr, CUST_UDID_LEN + 1, udidHash, CUST_UDID_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in DelNotTrustDevice()
111 CUST_UDID_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in IsTrustDevice()
H A Dauth_hichain_adapter.c191 CUST_UDID_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in IsTrustedDeviceInAGroup()
H A Dauth_session_fsm.c671 udidHash, SHORT_UDID_HASH_HEX_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in SaveLastAuthSeq()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_sync_info_manager.c663 char convertOfflineCode[WIFI_OFFLINE_CODE_LEN * HEXIFY_UNIT_LEN + 1] = {0}; in CheckWifiOfflineMsgResult()
677 if (ConvertBytesToHexString(convertOfflineCode, WIFI_OFFLINE_CODE_LEN * HEXIFY_UNIT_LEN + 1, in CheckWifiOfflineMsgResult()
698 char convertOfflineCode[WIFI_OFFLINE_CODE_LEN * HEXIFY_UNIT_LEN + 1] = {0}; in WlanOffLineProcess()
706 WIFI_OFFLINE_CODE_LEN * HEXIFY_UNIT_LEN + 1)) { in WlanOffLineProcess()
1284 char convertOfflineCode[WIFI_OFFLINE_CODE_LEN * HEXIFY_UNIT_LEN + 1] = {0}; in LnnSendWifiOfflineInfoMsg()
1285 if (ConvertBytesToHexString(convertOfflineCode, WIFI_OFFLINE_CODE_LEN * HEXIFY_UNIT_LEN + 1, in LnnSendWifiOfflineInfoMsg()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger.c929 SHORT_UDID_HASH_HEX_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in IsDeviceInfoChanged()
987 SHORT_UDID_HASH_HEX_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in BleDirectlyOnlineProc()
1109 SHORT_UDID_HASH_HEX_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in TryUpdateDeviceSecurityLevel()
1136 SHORT_UDID_HASH_HEX_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in ReversionLastAuthSeq()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_utils.c264 ret = ConvertBytesToHexString(hashStr, len + 1, hashResult, len / HEXIFY_UNIT_LEN); in LnnGenerateHexStringHash()

Completed in 11 milliseconds