Home
last modified time | relevance | path

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

12

/base/startup/init/simulator/parameter/src/param_impl_posix/
Dparam_impl_posix.c72 char* keyPath = (char *)malloc(MAX_KEY_PATH + 1); in GetSysParam() local
73 if (keyPath == NULL) { in GetSysParam()
76 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s%s", DATA_PATH, key) < 0) { in GetSysParam()
77 free(keyPath); in GetSysParam()
81 if (stat(keyPath, &info) != F_OK) { in GetSysParam()
82 free(keyPath); in GetSysParam()
86 free(keyPath); in GetSysParam()
89 int fd = open(keyPath, O_RDONLY, S_IRUSR); in GetSysParam()
90 free(keyPath); in GetSysParam()
91 keyPath = NULL; in GetSysParam()
[all …]
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_sign.h47 …SignAlgorithm(const std::string keyPath, uint8_t digestMethod) : keyName_(keyPath), digestMethod_(… in SignAlgorithm() argument
63 …VerifyAlgorithm(const std::string keyPath, uint8_t digestMethod) : SignAlgorithm(keyPath, digestMe… in VerifyAlgorithm() argument
78 …SignAlgorithmRsa(const std::string &keyPath, uint8_t digestMethod) : SignAlgorithm(keyPath, digest… in SignAlgorithmRsa() argument
87 …SignAlgorithmEcc(const std::string &keyPath, uint8_t digestMethod) : SignAlgorithm(keyPath, digest… in SignAlgorithmEcc() argument
/base/update/updater/interfaces/kits/include/package/
Dpackage.h111 const char *path, const char *keyPath);
123 int32_t VerifyPackage(const char *packagePath, const char *keyPath,
134 int32_t VerifyPackageWithCallback(const std::string &packagePath, const std::string &keyPath,
146 int32_t ExtraPackageDir(const char *packagePath, const char *keyPath, const char *dir,
158 int32_t ExtraPackageFile(const char *packagePath, const char *keyPath, const char *file,
/base/update/updater/interfaces/kits/packages/
Dpackage.cpp125 const char *keyPath) in CreatePackage() argument
128 if (pkgInfoExt == nullptr || path == nullptr || keyPath == nullptr || manager == nullptr) { in CreatePackage()
140 ret = manager->CreatePackage(path, keyPath, &upgradePackageInfo.pkgInfo, files); in CreatePackage()
150 ret = manager->CreatePackage(path, keyPath, &info, files); in CreatePackage()
159 ret = manager->CreatePackage(path, keyPath, &info, files); in CreatePackage()
172 const char *keyPath, in VerifyPackage() argument
178 if (packagePath == nullptr || keyPath == nullptr || version == nullptr || manager == nullptr) { in VerifyPackage()
183 int32_t ret = manager->VerifyPackage(packagePath, keyPath, version, digestBuffer, in VerifyPackage()
190 const std::string &keyPath, std::function<void(int32_t result, uint32_t percent)> cb) in VerifyPackageWithCallback() argument
192 if (packagePath.empty() || keyPath.empty() || cb == nullptr) { in VerifyPackageWithCallback()
[all …]
/base/update/updater/test/fuzztest/package_fuzzer/
Dpackage_fuzzer.cpp198 std::string keyPath = ""; in TestVerifyPackageWithCallback() local
199 ret = VerifyPackageWithCallback(path.c_str(), keyPath.c_str(), in TestVerifyPackageWithCallback()
255 const std::string keyPath = "/data/fuzz/test/signing_cert.crt"; in FuzzVerifyPackage() local
259 VerifyPackage(dataInfo.c_str(), keyPath.c_str(), "", digest.data(), digest.capacity()); in FuzzVerifyPackage()
261 …VerifyPackage(pkgPath.c_str(), keyPath.c_str(), dataInfo.c_str(), digest.data(), digest.capacity()… in FuzzVerifyPackage()
262 VerifyPackage(pkgPath.c_str(), keyPath.c_str(), "", data, size); in FuzzVerifyPackage()
264 VerifyPackageWithCallback(dataInfo.c_str(), keyPath.c_str(), in FuzzVerifyPackage()
268 ExtraPackageDir(dataInfo.c_str(), keyPath.c_str(), nullptr, pkgDir.c_str()); in FuzzVerifyPackage()
270 ExtraPackageDir(pkgPath.c_str(), keyPath.c_str(), dataInfo.c_str(), pkgDir.c_str()); in FuzzVerifyPackage()
271 ExtraPackageDir(pkgPath.c_str(), keyPath.c_str(), nullptr, dataInfo.c_str()); in FuzzVerifyPackage()
[all …]
/base/update/updateservice/services/engine/src/
Dupdate_service_local_updater.cpp45 …rviceLocalUpdater::VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, in VerifyUpgradePackage() argument
49 int32_t ret = ::VerifyPackageWithCallback(packagePath.c_str(), keyPath.c_str(), in VerifyUpgradePackage()
51 … ENGINE_LOGI("VerifyUpgradePackage %s, %s, %{public}d", packagePath.c_str(), keyPath.c_str(), ret); in VerifyUpgradePackage()
Dupdate_service.cpp338 …2_t UpdateService::VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, in VerifyUpgradePackage() argument
346 return localUpdater->VerifyUpgradePackage(packagePath, keyPath, businessError); in VerifyUpgradePackage()
Dupdate_service_stub.cpp369 string keyPath = Str16ToStr8(data.ReadString16()); in VerifyUpgradePackageStub() local
371 int32_t ret = service->VerifyUpgradePackage(packagePath, keyPath, businessError); in VerifyUpgradePackageStub()
/base/update/updater/test/unittest/package/
Dpkg_verify_unittest.cpp59 std::string keyPath = "invalid_key"; in TestExtraPackageFile() local
62 ret = ExtraPackageFile(packagePath.c_str(), keyPath.c_str(), file.c_str(), outPath.c_str()); in TestExtraPackageFile()
66 keyPath = "/data/updater/src/signing_cert.crt"; in TestExtraPackageFile()
68 …ret = ExtraPackageFile(packagePath.c_str(), keyPath.c_str(), file.c_str(), testPackagePath.c_str()… in TestExtraPackageFile()
79 std::string keyPath = "invalid_key"; in TestExtraPackageDir() local
81 ret = ExtraPackageDir(packagePath.c_str(), keyPath.c_str(), nullptr, outPath.c_str()); in TestExtraPackageDir()
85 keyPath = "/data/updater/src/signing_cert.crt"; in TestExtraPackageDir()
86 … ret = ExtraPackageDir(packagePath.c_str(), keyPath.c_str(), nullptr, testPackagePath.c_str()); in TestExtraPackageDir()
Dpackage_unittest.cpp212 std::string keyPath = ""; in TestVerifyPackageWithCallback() local
213 ret = VerifyPackageWithCallback(path.c_str(), keyPath.c_str(), in TestVerifyPackageWithCallback()
/base/update/updater/test/unittest/script/
Dscript_unittest.h40 int32_t VerifyPackage(const std::string &packagePath, const std::string &keyPath, in VerifyPackage() argument
45 int32_t LoadPackage(const std::string &packagePath, const std::string &keyPath, in LoadPackage() argument
54 int32_t VerifyBinFile(const std::string &packagePath, const std::string &keyPath, in VerifyBinFile() argument
105 int32_t LoadPackageWithStream(const std::string &packagePath, const std::string &keyPath, in LoadPackageWithStream() argument
/base/update/updater/services/package/pkg_manager/
Dpkg_manager_impl.h46 …int32_t VerifyPackage(const std::string &packagePath, const std::string &keyPath, const std::strin…
49 int32_t LoadPackage(const std::string &packagePath, const std::string &keyPath,
66 int32_t LoadPackageWithStream(const std::string &packagePath, const std::string &keyPath,
81 int32_t VerifyBinFile(const std::string &packagePath, const std::string &keyPath,
Dpkg_managerImpl.cpp275 int32_t PkgManagerImpl::LoadPackage(const std::string &packagePath, const std::string &keyPath, in LoadPackage() argument
282 if (SetSignVerifyKeyName(keyPath) != PKG_SUCCESS) { in LoadPackage()
392 …t PkgManagerImpl::LoadPackageWithStream(const std::string &packagePath, const std::string &keyPath, in LoadPackageWithStream() argument
395 int32_t ret = SetSignVerifyKeyName(keyPath); in LoadPackageWithStream()
682 int32_t PkgManagerImpl::VerifyPackage(const std::string &packagePath, const std::string &keyPath, in DoCreatePkgStream() argument
685 int32_t ret = SetSignVerifyKeyName(keyPath); in DoCreatePkgStream()
695 ret = VerifyBinFile(packagePath, keyPath, version, digest); in DoCreatePkgStream()
703 ret = pkgManager->LoadPackage(packagePath, keyPath, components); in DoCreatePkgStream()
985 int32_t PkgManagerImpl::VerifyBinFile(const std::string &packagePath, const std::string &keyPath, in DoCreatePkgStream() argument
/base/update/updateservice/interfaces/inner_api/include/
Diservice_local_updater.h31 virtual int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
Dupdate_service_kits.h88 virtual int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
Dupdate_service_kits_impl.h87 int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
/base/update/updateservice/services/engine/include/
Dupdate_service_local_updater.h36 int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
Dupdate_service_proxy.h78 int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
Dupdate_service.h90 int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
/base/update/updater/services/include/package/
Dpkg_manager.h247 virtual int32_t VerifyPackage(const std::string &packagePath, const std::string &keyPath,
258 virtual int32_t LoadPackage(const std::string &packagePath, const std::string &keyPath,
263 virtual int32_t VerifyBinFile(const std::string &packagePath, const std::string &keyPath,
349 … virtual int32_t LoadPackageWithStream(const std::string &packagePath, const std::string &keyPath,
/base/update/updateservice/interfaces/inner_api/engine/
Dupdate_service_kits_impl.cpp218 …teServiceKitsImpl::VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, in VerifyUpgradePackage() argument
224 return updateService->VerifyUpgradePackage(packagePath, keyPath, businessError); in VerifyUpgradePackage()
Dupdate_service_proxy.cpp488 …pdateServiceProxy::VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, in VerifyUpgradePackage() argument
498 data.WriteString16(Str8ToStr16(keyPath)); in VerifyUpgradePackage()
/base/update/updater/services/updater_binary/
Dupdate_processor.h42 …ProcessUpdater(bool retry, int pipeFd, const std::string &packagePath, const std::string &keyPath);
Dupdate_processor.cpp455 … ProcessUpdater(bool retry, int pipeFd, const std::string &packagePath, const std::string &keyPath) in ProcessUpdater() argument
478 int32_t ret = pkgManager->LoadPackage(packagePath, keyPath, components); in ProcessUpdater()
/base/update/updater/test/fuzztest/fuzz_src_data/
DTestDecompressGzip.new.gz

12