Searched refs:HEXIFY_UNIT_LEN (Results 1 - 10 of 10) sorted by relevance
/foundation/communication/dsoftbus/core/adapter/bus_center/src/ |
H A D | lnn_ohos_account.cpp | 47 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 D | softbus_utils.h | 27 #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 D | lnn_ohos_account_adapter_test.cpp | 58 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 D | softbus_utils.c | 185 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 D | auth_deviceprofile.cpp | 76 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 D | auth_hichain_adapter.c | 191 CUST_UDID_LEN / HEXIFY_UNIT_LEN) != SOFTBUS_OK) { in IsTrustedDeviceInAGroup()
|
H A D | auth_session_fsm.c | 671 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 D | lnn_sync_info_manager.c | 663 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 D | lnn_distributed_net_ledger.c | 929 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 D | lnn_heartbeat_utils.c | 264 ret = ConvertBytesToHexString(hashStr, len + 1, hashResult, len / HEXIFY_UNIT_LEN); in LnnGenerateHexStringHash()
|
Completed in 11 milliseconds