/base/useriam/user_auth_framework/services/core/src/ |
D | schedule_node_builder.cpp | 33 const std::shared_ptr<ResourceNode> &verifier) in ScheduleNodeBuilder() argument 35 verifier_(verifier) in ScheduleNodeBuilder() 129 info_.verifier = verifier_; in Build() 143 const std::shared_ptr<ResourceNode> &verifier) in CheckExecutors() argument 150 if (!verifier) { in CheckExecutors() 155 if (collector->GetAuthType() != verifier->GetAuthType()) { in CheckExecutors() 160 if (collector->GetExecutorMatcher() != verifier->GetExecutorMatcher()) { in CheckExecutors() 166 if (collector == verifier && collector->GetExecutorRole() == ALL_IN_ONE) { in CheckExecutors() 170 if (collector->GetExecutorRole() == COLLECTOR && verifier->GetExecutorRole() == VERIFIER) { in CheckExecutors() 179 const std::shared_ptr<ResourceNode> &verifier) in New() argument [all …]
|
D | schedule_node_impl.cpp | 103 return info_.verifier; in GetVerifyExecutor() 227 auto verifier = info_.verifier.lock(); in GetDescription() local 228 …ss << "schedule type:" << (verifier ? Common::AuthTypeToStr(verifier->GetAuthType()) : "nullptr") … in GetDescription() 288 auto verifier = info_.verifier.lock(); in ProcessBeginVerifier() local 289 if (collector == nullptr || verifier == nullptr) { in ProcessBeginVerifier() 297 auto result = verifier->BeginExecute(info_.scheduleId, peerPk, *info_.parameters); in ProcessBeginVerifier() 311 auto verifier = info_.verifier.lock(); in ProcessBeginCollector() local 312 if (collector == nullptr || verifier == nullptr) { in ProcessBeginCollector() 318 if (collector == verifier) { in ProcessBeginCollector() 344 auto verifier = info_.verifier.lock(); in ProcessEndCollector() local [all …]
|
D | schedule_node_helper.cpp | 60 std::shared_ptr<ResourceNode> verifier; in ScheduleInfoToScheduleNode() local 62 if (!ScheduleInfoToExecutors(info, collector, verifier)) { in ScheduleInfoToScheduleNode() 67 auto builder = ScheduleNode::Builder::New(collector, verifier); in ScheduleInfoToScheduleNode() 94 std::shared_ptr<ResourceNode> &verifier) in ScheduleInfoToExecutors() argument 108 verifier = resource; in ScheduleInfoToExecutors() 113 verifier = resource; in ScheduleInfoToExecutors() 126 if (verifier == nullptr) { in ScheduleInfoToExecutors()
|
D | schedule_node_builder.h | 32 …der(const std::shared_ptr<ResourceNode> &collector, const std::shared_ptr<ResourceNode> &verifier); 51 const std::shared_ptr<ResourceNode> &verifier);
|
D | schedule_node_impl.h | 51 std::weak_ptr<ResourceNode> verifier; member
|
/base/update/updater/test/unittest/package/ |
D | pkg_verify_unittest.cpp | 196 HashDataVerifier verifier {nullptr}; in TestHashDataVerifierFailed01() local 197 EXPECT_FALSE(verifier.LoadHashDataAndPkcs7("")); in TestHashDataVerifierFailed01() 198 EXPECT_FALSE(verifier.VerifyHashData("updater_binary", nullptr)); in TestHashDataVerifierFailed01() 200 EXPECT_FALSE(verifier.VerifyHashData("updater_binary", &filestream)); in TestHashDataVerifierFailed01() 208 HashDataVerifier verifier {pkgManager_}; in TestHashDataVerifierFailed02() local 209 EXPECT_FALSE(verifier.LoadHashDataAndPkcs7(testPackagePath + invalidPkgPath)); in TestHashDataVerifierFailed02() 212 EXPECT_FALSE(verifier.LoadHashDataAndPkcs7("invalid package path")); in TestHashDataVerifierFailed02() 223 HashDataVerifier verifier {pkgManager_}; in TestHashDataVerifierFailed03() local 224 EXPECT_FALSE(verifier.LoadHashDataAndPkcs7(testPackagePath + invalidPkgPath)); in TestHashDataVerifierFailed03() 232 HashDataVerifier verifier {pkgManager_}; in TestHashDataVerifierFailed04() local [all …]
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_upgradefile.h | 156 VerifyFunction verifier, const std::vector<uint8_t> &signData); 168 int32_t VerifyHeader(DigestAlgorithm::DigestAlgorithmPtr algorithm, VerifyFunction verifier, 171 VerifyFunction verifier); 173 VerifyFunction verifier); 175 VerifyFunction verifier);
|
D | pkg_pkgfile.h | 47 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri… 50 UNUSED(verifier);
|
D | pkg_upgradefile.cpp | 428 int32_t UpgradePkgFile::LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier) in LoadPackage() argument 430 if (verifier == nullptr) { in LoadPackage() 468 ret = VerifyFile(parsedLen, algorithm, verifier); in LoadPackage() 474 VerifyFunction verifier) in VerifyFile() argument 479 ret = VerifyFileV1(parsedLen, algorithm, verifier); in VerifyFile() 482 ret = VerifyFileV2(parsedLen, algorithm, verifier); in VerifyFile() 492 VerifyFunction verifier) in VerifyFileV1() argument 502 return Verify(parsedLen, algorithm, verifier, signData); in VerifyFileV1() 506 VerifyFunction verifier) in VerifyFileV2() argument 528 return VerifyHeader(algorithm, verifier, signData); in VerifyFileV2() [all …]
|
D | pkg_lz4file.h | 69 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
|
D | pkg_gzipfile.h | 77 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
|
D | pkg_lz4file.cpp | 176 int32_t Lz4PkgFile::LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier) in LoadPackage() argument 178 UNUSED(verifier); in LoadPackage()
|
D | pkg_zipfile.h | 192 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
|
D | pkg_gzipfile.cpp | 355 int32_t GZipPkgFile::LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier) in LoadPackage() argument 357 UNUSED(verifier); in LoadPackage()
|
D | pkg_zipfile.cpp | 183 int32_t ZipPkgFile::LoadPackage(std::vector<std::string>& fileNames, VerifyFunction verifier) in LoadPackage() argument 185 UNUSED(verifier); in LoadPackage()
|
/base/update/updater/services/script/script_manager/ |
D | script_manager_impl.h | 34 explicit ScriptManagerImpl(UScriptEnv *env, const Hpackage::HashDataVerifier *verifier) in ScriptManagerImpl() argument 35 : scriptEnv_(env), scriptVerifier_(verifier) {} in ScriptManagerImpl()
|
D | script_managerImpl.cpp | 34 …nager* ScriptManager::GetScriptManager(UScriptEnv *env, const Hpackage::HashDataVerifier *verifier) in GetScriptManager() argument 36 if (env == nullptr || verifier == nullptr) { in GetScriptManager() 43 g_scriptManager = new (std::nothrow) ScriptManagerImpl(env, verifier); in GetScriptManager()
|
/base/update/updater/services/include/script/ |
D | script_manager.h | 60 …tatic ScriptManager* GetScriptManager(UScriptEnv *env, const Hpackage::HashDataVerifier *verifier);
|
/base/update/updater/test/unittest/script/ |
D | script_unittest.cpp | 227 HashDataVerifier verifier {&packageManager}; in TestUscriptExecute() local 228 verifier.LoadHashDataAndPkcs7(TEST_PATH_FROM + "updater_fake_pkg.zip"); in TestUscriptExecute() 229 ScriptManager *manager = ScriptManager::GetScriptManager(env, &verifier); in TestUscriptExecute()
|
/base/update/updater/services/package/pkg_algorithm/ |
D | pkg_algorithm.cpp | 153 PkgAlgorithmContext &context, VerifyFunction verifier) in UnpackWithVerify() argument 175 if (verifier != nullptr) { in UnpackWithVerify() 176 ret = verifier(buffer, readLen, destOffset); in UnpackWithVerify()
|
D | pkg_algorithm.h | 83 PkgAlgorithmContext &context, VerifyFunction verifier = nullptr);
|
/base/useriam/user_auth_framework/services/core/inc/ |
D | schedule_node_helper.h | 48 std::shared_ptr<ResourceNode> &verifier);
|
D | schedule_node.h | 79 const std::shared_ptr<ResourceNode> &verifier);
|
/base/update/updater/services/ |
D | updater.cpp | 78 HashDataVerifier verifier {manager}; in ExtractUpdaterBinary() local 79 …if (!verifier.LoadHashDataAndPkcs7(packagePath) || !verifier.VerifyHashData(updaterBinary, outStre… in ExtractUpdaterBinary()
|
/base/update/updater/services/include/package/ |
D | pkg_manager.h | 133 …virtual int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr…
|