Home
last modified time | relevance | path

Searched refs:verifier (Results 1 – 25 of 25) sorted by relevance

/base/useriam/user_auth_framework/services/core/src/
Dschedule_node_builder.cpp33 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 …]
Dschedule_node_impl.cpp103 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 …]
Dschedule_node_helper.cpp60 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()
Dschedule_node_builder.h32 …der(const std::shared_ptr<ResourceNode> &collector, const std::shared_ptr<ResourceNode> &verifier);
51 const std::shared_ptr<ResourceNode> &verifier);
Dschedule_node_impl.h51 std::weak_ptr<ResourceNode> verifier; member
/base/update/updater/test/unittest/package/
Dpkg_verify_unittest.cpp196 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/
Dpkg_upgradefile.h156 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);
Dpkg_pkgfile.h47 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
50 UNUSED(verifier);
Dpkg_upgradefile.cpp428 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 …]
Dpkg_lz4file.h69 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
Dpkg_gzipfile.h77 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
Dpkg_lz4file.cpp176 int32_t Lz4PkgFile::LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier) in LoadPackage() argument
178 UNUSED(verifier); in LoadPackage()
Dpkg_zipfile.h192 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
Dpkg_gzipfile.cpp355 int32_t GZipPkgFile::LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier) in LoadPackage() argument
357 UNUSED(verifier); in LoadPackage()
Dpkg_zipfile.cpp183 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/
Dscript_manager_impl.h34 explicit ScriptManagerImpl(UScriptEnv *env, const Hpackage::HashDataVerifier *verifier) in ScriptManagerImpl() argument
35 : scriptEnv_(env), scriptVerifier_(verifier) {} in ScriptManagerImpl()
Dscript_managerImpl.cpp34 …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/
Dscript_manager.h60 …tatic ScriptManager* GetScriptManager(UScriptEnv *env, const Hpackage::HashDataVerifier *verifier);
/base/update/updater/test/unittest/script/
Dscript_unittest.cpp227 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/
Dpkg_algorithm.cpp153 PkgAlgorithmContext &context, VerifyFunction verifier) in UnpackWithVerify() argument
175 if (verifier != nullptr) { in UnpackWithVerify()
176 ret = verifier(buffer, readLen, destOffset); in UnpackWithVerify()
Dpkg_algorithm.h83 PkgAlgorithmContext &context, VerifyFunction verifier = nullptr);
/base/useriam/user_auth_framework/services/core/inc/
Dschedule_node_helper.h48 std::shared_ptr<ResourceNode> &verifier);
Dschedule_node.h79 const std::shared_ptr<ResourceNode> &verifier);
/base/update/updater/services/
Dupdater.cpp78 HashDataVerifier verifier {manager}; in ExtractUpdaterBinary() local
79 …if (!verifier.LoadHashDataAndPkcs7(packagePath) || !verifier.VerifyHashData(updaterBinary, outStre… in ExtractUpdaterBinary()
/base/update/updater/services/include/package/
Dpkg_manager.h133 …virtual int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr…