/base/security/device_security_level/test/dslm_fuzz_test/dslm_fuzzer/ |
D | dslm_fuzzer.cpp | 32 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/ |
D | dslm_rpc_process_test.cpp | 61 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()
|
D | dslm_test.cpp | 729 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/ |
D | messenger_device_status_manager.cpp | 109 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/ |
D | device_security_defines.h | 25 #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/ |
D | device_security_level_proxy.cpp | 51 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/ |
D | messenger_device_status_manager.c | 138 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/ |
D | messenger.h | 27 #define DEVICE_ID_MAX_LEN 64 macro 30 uint8_t identity[DEVICE_ID_MAX_LEN];
|
/base/security/device_security_level/services/sa/lite/ |
D | dslm_ipc_process.c | 54 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/ |
D | messenger_device_session_manager.c | 156 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/ |
D | dslm_ipc_process.cpp | 75 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/ |
D | device_security_level_proxy.c | 64 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/ |
D | dslm_device_list.c | 87 if (device->length != DEVICE_ID_MAX_LEN) { in CreatOrGetDslmDeviceInfo()
|
/base/security/device_security_level/services/dfx/ |
D | dslm_hidumper.c | 141 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}}; in GetDefaultStatus()
|