/foundation/communication/dsoftbus/core/authentication/src/virtual/ |
H A D | auth_device_common_key_virtual.c | 31 int32_t AuthInsertDeviceKey(const NodeInfo *deviceInfo, const AuthDeviceKeyInfo *deviceKey, AuthLinkType type) in AuthInsertDeviceKey() argument 34 (void)deviceKey; in AuthInsertDeviceKey() 44 int32_t AuthFindDeviceKey(const char *udidHash, int32_t keyType, AuthDeviceKeyInfo *deviceKey) in AuthFindDeviceKey() argument 48 (void)deviceKey; in AuthFindDeviceKey() 56 int32_t AuthFindNormalizeKeyByServerSide(const char *udidHash, bool isServer, AuthDeviceKeyInfo *deviceKey) in AuthFindNormalizeKeyByServerSide() argument 60 (void)deviceKey; in AuthFindNormalizeKeyByServerSide() 64 int32_t AuthFindLatestNormalizeKey(const char *udidHash, AuthDeviceKeyInfo *deviceKey, bool clearOldKey) in AuthFindLatestNormalizeKey() argument 67 (void)deviceKey; in AuthFindLatestNormalizeKey()
|
/foundation/communication/dsoftbus/core/authentication/include/ |
H A D | auth_device_common_key.h | 37 uint8_t deviceKey[SESSION_KEY_LENGTH]; member 44 int32_t AuthInsertDeviceKey(const NodeInfo *deviceInfo, const AuthDeviceKeyInfo *deviceKey, AuthLinkType type); 46 int32_t AuthFindDeviceKey(const char *udidHash, int32_t keyType, AuthDeviceKeyInfo *deviceKey); 50 int32_t AuthFindNormalizeKeyByServerSide(const char *udidHash, bool isServer, AuthDeviceKeyInfo *deviceKey); 51 int32_t AuthFindLatestNormalizeKey(const char *udidHash, AuthDeviceKeyInfo *deviceKey, bool clearOldKey);
|
/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_session_json.c | 239 aesParam.key = deviceCommKey->deviceKey; in PackFastAuthValue() 333 static int32_t GetEnhancedP2pAuthKey(const char *udidHash, AuthSessionInfo *info, AuthDeviceKeyInfo *deviceKey) in GetEnhancedP2pAuthKey() argument 336 if (AuthFindLatestNormalizeKey(udidHash, deviceKey, true) == SOFTBUS_OK || in GetEnhancedP2pAuthKey() 337 AuthFindDeviceKey(udidHash, AUTH_LINK_TYPE_BLE, deviceKey) == SOFTBUS_OK) { in GetEnhancedP2pAuthKey() 362 if (memcpy_s(deviceKey->deviceKey, SESSION_KEY_LENGTH, in GetEnhancedP2pAuthKey() 367 deviceKey->keyLen = sessionKey.len; in GetEnhancedP2pAuthKey() 372 static int32_t GetFastAuthKey(const char *udidHash, AuthSessionInfo *info, AuthDeviceKeyInfo *deviceKey) in GetFastAuthKey() argument 376 return GetEnhancedP2pAuthKey(udidHash, info, deviceKey); in GetFastAuthKey() 378 if (AuthFindDeviceKey(udidHash, info->connInfo.type, deviceKey) ! in GetFastAuthKey() 493 AuthDeviceKeyInfo deviceKey; PackNormalizedKey() local 513 ParseFastAuthValue(AuthSessionInfo *info, const char *encryptedFastAuth, AuthDeviceKeyInfo *deviceKey) ParseFastAuthValue() argument 585 ParseNormalizeData(AuthSessionInfo *info, char *encNormalizedKey, AuthDeviceKeyInfo *deviceKey) ParseNormalizeData() argument 671 AuthDeviceKeyInfo deviceKey = {0}; UnpackNormalizedKey() local 713 AuthDeviceKeyInfo deviceKey = {0}; UnpackFastAuth() local [all...] |
H A D | auth_session_fsm.c | 433 AuthDeviceKeyInfo deviceKey; in SaveDeviceKey() local 435 (void)memset_s(&deviceKey, sizeof(AuthDeviceKeyInfo), 0, sizeof(AuthDeviceKeyInfo)); in SaveDeviceKey() 441 if (memcpy_s(deviceKey.deviceKey, sizeof(deviceKey.deviceKey), in SaveDeviceKey() 447 deviceKey.keyLen = sessionKey.len; in SaveDeviceKey() 448 deviceKey.keyIndex = authFsm->authSeq; in SaveDeviceKey() 449 deviceKey.keyType = keyType; in SaveDeviceKey() 450 deviceKey in SaveDeviceKey() [all...] |
H A D | auth_interface.c | 446 if (memcpy_s(sessionKey.value, sizeof(sessionKey.value), keyInfo->deviceKey, sizeof(keyInfo->deviceKey)) != EOK) { in AuthDirectOnlineProcessSessionKey()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/ |
H A D | js_device_kv_store.cpp | 98 std::string deviceKey = GetDeviceKey(ctxt->deviceId, ctxt->key); in Get() 99 OHOS::DistributedKv::Key key(deviceKey); in Get() 213 std::string deviceKey = GetDeviceKey(ctxt->va.deviceId, ctxt->va.keyPrefix); in GetEntries() 214 OHOS::DistributedKv::Key keyPrefix(deviceKey); in GetEntries() 272 std::string deviceKey = GetDeviceKey(ctxt->va.deviceId, ctxt->va.keyPrefix); in GetResultSet() 273 OHOS::DistributedKv::Key keyPrefix(deviceKey); in GetResultSet()
|
/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_session_message_test.cpp | 105 ASSERT_TRUE(memcpy_s(deviceCommKey.deviceKey, SESSION_KEY_LENGTH, in HWTEST_F() 194 AuthDeviceKeyInfo deviceKey; in HWTEST_F() local 195 (void)memset_s(&deviceKey, sizeof(AuthDeviceKeyInfo), 0, sizeof(AuthDeviceKeyInfo)); in HWTEST_F() 196 ASSERT_TRUE(memcpy_s(deviceKey.deviceKey, SESSION_KEY_LENGTH, in HWTEST_F() 198 deviceKey.keyLen = 5; in HWTEST_F() 199 deviceKey.keyIndex = 12345; in HWTEST_F() 200 ParseFastAuthValue(&info, encryptedFastAuth, &deviceKey); in HWTEST_F() 803 EXPECT_EQ(SOFTBUS_OK, SoftBusGenerateRandomArray(deviceCommKey.deviceKey, SESSION_KEY_LENGTH)); in HWTEST_F() 889 AuthDeviceKeyInfo deviceKey; in HWTEST_F() local [all...] |
H A D | auth_other_test.cpp | 1086 ASSERT_TRUE(memcpy_s(keyInfo.deviceKey, SESSION_KEY_LENGTH, "testKey", strlen("testKey")) == EOK); in HWTEST_F()
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | audio_service.cpp | 750 std::string deviceKey = AudioEndpoint::GenerateEndpointKey(deviceInfo, endpointFlag); in GetAudioEndpointForDevice() local 751 if (endpointList_.find(deviceKey) != endpointList_.end()) { in GetAudioEndpointForDevice() 752 AUDIO_INFO_LOG("AudioService find endpoint already exist for deviceKey:%{public}s", deviceKey.c_str()); in GetAudioEndpointForDevice() 753 return endpointList_[deviceKey]; in GetAudioEndpointForDevice() 758 AUDIO_INFO_LOG("Add endpoint %{public}s to endpointList_", deviceKey.c_str()); in GetAudioEndpointForDevice() 759 endpointList_[deviceKey] = endpoint; in GetAudioEndpointForDevice() 764 std::string deviceKey = deviceInfo.networkId + std::to_string(deviceInfo.deviceId) + "_" + std::to_string(g_id); in GetAudioEndpointForDevice() local 769 AUDIO_INFO_LOG("Add endpointSeperate %{public}s to endpointList_", deviceKey.c_str()); in GetAudioEndpointForDevice() 770 endpointList_[deviceKey] in GetAudioEndpointForDevice() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | js_device_kv_store.cpp | 109 std::string deviceKey = GetDeviceKey(ctxt->deviceId, ctxt->key); in Get() 110 OHOS::DistributedKv::Key key(deviceKey); in Get()
|
/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | paste_data_entry_test.cpp | 81 std::string deviceKey = "deviceId_key"; in InitWantEntry() local
|
H A D | pasteboard_client_udmf_delay_test.cpp | 308 std::string deviceKey = "deviceId_key";
in SetWantUnifiedData() local 311 want->SetParam(deviceKey, deviceValue);
in SetWantUnifiedData()
|
H A D | pasteboard_utils_test.cpp | 120 std::string deviceKey = "deviceId_key"; in InitWantData() local
|
H A D | pasteboard_unified_data_test.cpp | 116 std::string deviceKey = "deviceId_key"; in InitWantData() local
|
/foundation/graphic/graphic_2d/frameworks/vulkan_layers/swapchain_layer/ |
H A D | swapchain_layer.cpp | 1702 DispatchKey deviceKey = GetDispatchKey(device); in DestroyDevice() local 1703 LayerData* deviceData = GetLayerDataPtr(deviceKey); in DestroyDevice() 1705 FreeLayerDataPtr(deviceKey); in DestroyDevice()
|
/foundation/distributeddatamgr/kv_store/frameworks/cj/src/ |
H A D | distributed_kv_store_impl.cpp | 748 std::string deviceKey = GetDeviceKey(deviceId, key); in Get() local 749 auto s_key = DistributedKv::Key(deviceKey); in Get()
|