/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/utils/ |
H A D | crypto.cpp | 20 std::string Crypto::Sha256(const std::string &text, bool isUpper) in Sha256() function in OHOS::DistributedData::Crypto 22 return Sha256(text.data(), text.size(), isUpper); in Sha256() 36 std::string Crypto::Sha256(const void *data, size_t size, bool isUpper) in Sha256() function in OHOS::DistributedData::Crypto
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/utils/ |
H A D | crypto.h | 26 API_EXPORT static std::string Sha256(const std::string &text, bool isUpper = false); 27 API_EXPORT static std::string Sha256(const void *data, size_t size, bool isUpper = false);
|
/foundation/distributedhardware/device_manager/utils/include/crypto/ |
H A D | dm_crypto.h | 27 static std::string Sha256(const std::string &text, bool isUpper = false); 28 static std::string Sha256(const void *data, size_t size, bool isUpper = false);
|
/foundation/distributedhardware/device_manager/utils/src/crypto/ |
H A D | dm_crypto.cpp | 91 std::string Crypto::Sha256(const std::string &text, bool isUpper) in Sha256() function in OHOS::DistributedHardware::Crypto 93 return Sha256(text.data(), text.size(), isUpper); in Sha256() 96 std::string Crypto::Sha256(const void *data, size_t size, bool isUpper) in Sha256() function in OHOS::DistributedHardware::Crypto 210 return Crypto::Sha256(rawText); in GetHashWithSalt()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/permission/test/unittest/ |
H A D | permission_validator_test.cpp | 68 EXPECT_NE(Crypto::Sha256("ohos"), userId); in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/task/ |
H A D | online_task.cpp | 84 std::string udidHash = Sha256(GetUDID()); in DoSyncInfo() 124 std::string udidHash = Sha256(GetUDID()); in CreateEnableTask()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/utils/ |
H A D | dh_context_test.cpp | 140 std::string deviceId = Sha256(TEST_UUID); in HWTEST_F() 151 std::string deviceId = Sha256(TEST_UUID); in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/utils/include/ |
H A D | dh_utils_tool.h | 48 std::string Sha256(const std::string& string);
|
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/ |
H A D | dh_utils_tool.cpp | 114 return Sha256(uuid); in GetDeviceIdByUUID() 117 std::string Sha256(const std::string& in) in Sha256() function 149 devInfo.udidHash = Sha256(devInfo.udid); in GetLocalDeviceInfo()
|
/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_distributed_hardware_load.cpp | 78 std::string ret = crypto->Sha256(text, isUpper); in HWTEST_F()
|
H A D | UTTest_dm_auth_manager_second.cpp | 1430 authManager_->authResponseContext_->importAuthCode = Crypto::Sha256(authManager_->importAuthCode_); in HWTEST_F()
|
/foundation/distributedhardware/distributed_input/utils/include/ |
H A D | dinput_utils_tool.h | 53 std::string Sha256(const std::string &string);
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/checker/ |
H A D | bundle_checker.cpp | 113 return Crypto::Sha256(appId); in GetAppId()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/utils/ |
H A D | dh_context.cpp | 131 std::string deviceId = Sha256(uuid); in AddOnlineDevice() 132 std::string udidHash = Sha256(udid); in AddOnlineDevice()
|
/foundation/distributedhardware/distributed_input/services/source/inputinject/src/ |
H A D | distributed_input_inject.cpp | 147 return DH_ID_PREFIX + Sha256(uniqueInfo); in GenerateVirtualTouchScreenDHId()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/ |
H A D | local_capability_info_manager.cpp | 266 std::string deviceId = Sha256(peeruuid); in RemoveLocalInfoInMemByUuid()
|
H A D | db_adapter.cpp | 576 std::string keyPrefix = Sha256(prefix); in ClearDataByPrefix()
|
H A D | meta_info_manager.cpp | 344 std::string udIdHash = Sha256(peerudid); in RemoveMetaInfoInMemByUdid()
|
/foundation/distributedhardware/distributed_input/utils/src/ |
H A D | dinput_utils_tool.cpp | 252 std::string Sha256(const std::string &in) in Sha256() function
|
/foundation/distributedhardware/device_manager/services/service/src/ |
H A D | device_manager_service.cpp | 1045 std::string appId = Crypto::Sha256(AppManager::GetInstance().GetAppId()); in GetEncryptedUuidByNetworkId() 1047 uuid = Crypto::Sha256(appId + "_" + uuid); in GetEncryptedUuidByNetworkId() 1059 encryptedUuid = Crypto::Sha256(appId + "_" + uuid); in GenerateEncryptedUuid()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/ |
H A D | kvstore_meta_manager.cpp | 442 Crypto::Sha256(label_ + "_" + Bootstrap::GetInstance().GetMetaDBName()));
|
H A D | kvstore_data_service.cpp | 266 AccountDelegate::GetInstance()->RegisterHashFunc(Crypto::Sha256); in OnStart()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_manager/src/ |
H A D | component_manager_test.cpp | 524 std::string key = Sha256(UUID_TEST) + RESOURCE_SEPARATOR + DH_ID_1; in HWTEST_F()
|
/foundation/distributedhardware/device_manager/services/implementation/src/authentication/ |
H A D | dm_auth_manager.cpp | 797 authResponseContext_->importAuthCode = Crypto::Sha256(importAuthCode_); in AbilityNegotiate() 900 if (authResponseContext_->importAuthCode != Crypto::Sha256(importAuthCode_)) { in ProcessAuthRequest() 2166 jsonObject[TAG_IMPORT_AUTH_CODE] = Crypto::Sha256(importAuthCode_); in ProcRespNegotiate()
|
/foundation/distributedhardware/distributed_input/common/include/ |
H A D | input_hub.cpp | 995 identifier.descriptor = DH_ID_PREFIX + Sha256(rawDescriptor); in GenerateDescriptor()
|