Home
last modified time | relevance | path

Searched refs:DEVICE_ID_MAX_LEN (Results 1 – 14 of 14) sorted by relevance

/base/security/device_security_level/test/dslm_fuzz_test/dslm_fuzzer/
Ddslm_fuzzer.cpp32 const uint8_t mockBuffer[DEVICE_ID_MAX_LEN] = {0};
41 const uint8_t *buffer = parcel.ReadBuffer(DEVICE_ID_MAX_LEN); in OnPeerMsgReceivedFuzzer()
43 (void)memcpy_s(deviceIdentify.identity, DEVICE_ID_MAX_LEN, buffer, DEVICE_ID_MAX_LEN); in OnPeerMsgReceivedFuzzer()
61 const uint8_t *buffer = parcel.ReadBuffer(DEVICE_ID_MAX_LEN); in OnRemoteRequestFuzzer()
63 data.WriteBuffer(mockBuffer, DEVICE_ID_MAX_LEN); in OnRemoteRequestFuzzer()
65 data.WriteBuffer(buffer, DEVICE_ID_MAX_LEN); in OnRemoteRequestFuzzer()
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_rpc_process_test.cpp61 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
79 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
97 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
112 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
127 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
142 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
169 …auto fillUpDeviceIdentify = [](DeviceIdentify *identify) { identify->length = DEVICE_ID_MAX_LEN; }; in __anon247077940102()
Ddslm_test.cpp729 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
754 const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {'a', 'b', 'c', 'd', 'e', 'f', 'g'}};
790 const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {'a', 'b', 'c', 'd', 'e', 'f', 'g'}};
814 const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {0, 'b', 'c', 'd', 'e', 'f', 'g'}};
834 const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {'a'}};
912 const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {'a', 'b', 'c', 'd', 'e', 'f', 'a', 'b'}};
928 const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {'a', 'b', 'c', 'd', 'e', 'f', 'a', 'b'}};
945 … const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'}};
999 … const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'}};
1017 … const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'}};
[all …]
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_status_manager.cpp109 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnNodeStateChange()
143 uint32_t maskId = MaskDeviceIdentity((const char *)&devId->identity[0], DEVICE_ID_MAX_LEN); in ProcessDeviceStatusReceiver()
184 auto size = (udid.size() < DEVICE_ID_MAX_LEN) ? udid.size() : DEVICE_ID_MAX_LEN; in MessengerConvertNodeToIdentity()
187 if (memcpy_s(devId.identity, DEVICE_ID_MAX_LEN, udid.c_str(), size) != EOK) { in MessengerConvertNodeToIdentity()
195 devId.length = DEVICE_ID_MAX_LEN; in MessengerConvertNodeToIdentity()
212 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo()
329 uint32_t maskId = MaskDeviceIdentity((const char *)&devId->identity[0], DEVICE_ID_MAX_LEN); in MessengerGetSelfDeviceIdentify()
351 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerForEachDeviceProcess()
/base/security/device_security_level/interfaces/inner_api/include/
Ddevice_security_defines.h25 #define DEVICE_ID_MAX_LEN 64 macro
29 uint8_t identity[DEVICE_ID_MAX_LEN];
/base/security/device_security_level/interfaces/inner_api/src/standard/
Ddevice_security_level_proxy.cpp51 if (length == 0 || length > DEVICE_ID_MAX_LEN) { in RequestDeviceSecurityLevel()
63 data.WriteBuffer(identify.identity, DEVICE_ID_MAX_LEN); in RequestDeviceSecurityLevel()
/base/security/device_security_level/baselib/msglib/src/lite/
Dmessenger_device_status_manager.c138 if (memcpy_s(identity.identity, DEVICE_ID_MAX_LEN, udid, UDID_BUF_LEN - 1) != EOK) { in MessengerOnNodeStateChange()
231 if (memcpy_s(devId->identity, DEVICE_ID_MAX_LEN, udid, DEVICE_ID_MAX_LEN) != EOK) { in MessengerConvertNodeToIdentity()
235 devId->length = DEVICE_ID_MAX_LEN; in MessengerConvertNodeToIdentity()
258 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo()
354 DeviceIdentify devId = {DEVICE_ID_MAX_LEN, {0}}; in MessengerForEachDeviceProcess()
/base/security/device_security_level/baselib/msglib/include/
Dmessenger.h27 #define DEVICE_ID_MAX_LEN 64 macro
30 uint8_t identity[DEVICE_ID_MAX_LEN];
/base/security/device_security_level/services/sa/lite/
Ddslm_ipc_process.c54 uint32_t *dataRead = ReadBuffer(req, DEVICE_ID_MAX_LEN); in DslmGetRequestFromParcel()
59 if (memcpy_s(identity->identity, DEVICE_ID_MAX_LEN, dataRead, DEVICE_ID_MAX_LEN) != EOK) { in DslmGetRequestFromParcel()
/base/security/device_security_level/baselib/msglib/src/common/
Dmessenger_device_session_manager.c156 char networkId[DEVICE_ID_MAX_LEN + 1] = {0}; in GetDeviceIdentityFromSessionId()
157 int ret = GetPeerDeviceId(sessionId, networkId, DEVICE_ID_MAX_LEN + 1); in GetDeviceIdentityFromSessionId()
168 *maskId = MaskDeviceIdentity((const char *)identity->identity, DEVICE_ID_MAX_LEN); in GetDeviceIdentityFromSessionId()
186 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnSessionOpened()
259 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnBytesReceived()
406 char deviceName[DEVICE_ID_MAX_LEN + 1] = {0}; in CreateNewDeviceSession()
407 bool succ = MessengerGetNetworkIdByDeviceIdentify(devId, deviceName, DEVICE_ID_MAX_LEN + 1); in CreateNewDeviceSession()
/base/security/device_security_level/services/sa/standard/
Ddslm_ipc_process.cpp75 const uint8_t *dataRead = data.ReadBuffer(DEVICE_ID_MAX_LEN); in DslmGetRequestFromParcel()
80 if (memcpy_s(identify.identity, DEVICE_ID_MAX_LEN, dataRead, DEVICE_ID_MAX_LEN) != EOK) { in DslmGetRequestFromParcel()
/base/security/device_security_level/interfaces/inner_api/src/lite/
Ddevice_security_level_proxy.c64 if (identify.length == 0 || identify.length > DEVICE_ID_MAX_LEN) { in DslmIpcAsyncCallImpl()
75 WriteBuffer(&request, identify.identity, DEVICE_ID_MAX_LEN); in DslmIpcAsyncCallImpl()
/base/security/device_security_level/services/dslm/
Ddslm_device_list.c87 if (device->length != DEVICE_ID_MAX_LEN) { in CreatOrGetDslmDeviceInfo()
/base/security/device_security_level/services/dfx/
Ddslm_hidumper.c141 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}}; in GetDefaultStatus()