Home
last modified time | relevance | path

Searched refs:Sha256 (Results 1 - 25 of 25) sorted by relevance

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/utils/
H A Dcrypto.cpp20 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 Dcrypto.h26 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 Ddm_crypto.h27 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 Ddm_crypto.cpp91 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 Dpermission_validator_test.cpp68 EXPECT_NE(Crypto::Sha256("ohos"), userId); in HWTEST_F()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/task/
H A Donline_task.cpp84 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 Ddh_context_test.cpp140 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 Ddh_utils_tool.h48 std::string Sha256(const std::string& string);
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Ddh_utils_tool.cpp114 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 DUTTest_dm_distributed_hardware_load.cpp78 std::string ret = crypto->Sha256(text, isUpper); in HWTEST_F()
H A DUTTest_dm_auth_manager_second.cpp1430 authManager_->authResponseContext_->importAuthCode = Crypto::Sha256(authManager_->importAuthCode_); in HWTEST_F()
/foundation/distributedhardware/distributed_input/utils/include/
H A Ddinput_utils_tool.h53 std::string Sha256(const std::string &string);
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/checker/
H A Dbundle_checker.cpp113 return Crypto::Sha256(appId); in GetAppId()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/utils/
H A Ddh_context.cpp131 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 Ddistributed_input_inject.cpp147 return DH_ID_PREFIX + Sha256(uniqueInfo); in GenerateVirtualTouchScreenDHId()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/
H A Dlocal_capability_info_manager.cpp266 std::string deviceId = Sha256(peeruuid); in RemoveLocalInfoInMemByUuid()
H A Ddb_adapter.cpp576 std::string keyPrefix = Sha256(prefix); in ClearDataByPrefix()
H A Dmeta_info_manager.cpp344 std::string udIdHash = Sha256(peerudid); in RemoveMetaInfoInMemByUdid()
/foundation/distributedhardware/distributed_input/utils/src/
H A Ddinput_utils_tool.cpp252 std::string Sha256(const std::string &in) in Sha256() function
/foundation/distributedhardware/device_manager/services/service/src/
H A Ddevice_manager_service.cpp1045 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 Dkvstore_meta_manager.cpp442 Crypto::Sha256(label_ + "_" + Bootstrap::GetInstance().GetMetaDBName()));
H A Dkvstore_data_service.cpp266 AccountDelegate::GetInstance()->RegisterHashFunc(Crypto::Sha256); in OnStart()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_manager/src/
H A Dcomponent_manager_test.cpp524 std::string key = Sha256(UUID_TEST) + RESOURCE_SEPARATOR + DH_ID_1; in HWTEST_F()
/foundation/distributedhardware/device_manager/services/implementation/src/authentication/
H A Ddm_auth_manager.cpp797 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 Dinput_hub.cpp995 identifier.descriptor = DH_ID_PREFIX + Sha256(rawDescriptor); in GenerateDescriptor()

Completed in 24 milliseconds