Home
last modified time | relevance | path

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

/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/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.cpp331 …2_t UpdateService::VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, in VerifyUpgradePackage() argument
339 return localUpdater->VerifyUpgradePackage(packagePath, keyPath, businessError); in VerifyUpgradePackage()
Dupdate_service_stub.cpp362 string keyPath = Str16ToStr8(data.ReadString16()); in VerifyUpgradePackageStub() local
364 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/updateservice/interfaces/inner_api/include/
Diservice_local_updater.h32 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.h85 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.h79 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/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,
80 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()
383 …t PkgManagerImpl::LoadPackageWithStream(const std::string &packagePath, const std::string &keyPath, in LoadPackageWithStream() argument
386 int32_t ret = SetSignVerifyKeyName(keyPath); in LoadPackageWithStream()
678 int32_t PkgManagerImpl::VerifyPackage(const std::string &packagePath, const std::string &keyPath, in DoCreatePkgStream() argument
681 int32_t ret = SetSignVerifyKeyName(keyPath); in DoCreatePkgStream()
691 ret = VerifyBinFile(packagePath, keyPath, version, digest); in DoCreatePkgStream()
699 ret = pkgManager->LoadPackage(packagePath, keyPath, components); in DoCreatePkgStream()
981 int32_t PkgManagerImpl::VerifyBinFile(const std::string &packagePath, const std::string &keyPath, in DoCreatePkgStream() argument
/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,
348 … virtual int32_t LoadPackageWithStream(const std::string &packagePath, const std::string &keyPath,
/base/update/updater/services/updater_binary/
Dupdate_processor.h42 …ProcessUpdater(bool retry, int pipeFd, const std::string &packagePath, const std::string &keyPath);
Dupdate_processor.cpp439 … ProcessUpdater(bool retry, int pipeFd, const std::string &packagePath, const std::string &keyPath) in ProcessUpdater() argument
462 int32_t ret = pkgManager->LoadPackage(packagePath, keyPath, components); in ProcessUpdater()
/base/update/updateservice/interfaces/inner_api/engine/
Dupdate_service_kits_impl.cpp307 …teServiceKitsImpl::VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, in VerifyUpgradePackage() argument
313 return updateService->VerifyUpgradePackage(packagePath, keyPath, businessError); in VerifyUpgradePackage()
Dupdate_service_proxy.cpp493 …pdateServiceProxy::VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, in VerifyUpgradePackage() argument
503 data.WriteString16(Str8ToStr16(keyPath)); in VerifyUpgradePackage()
/base/update/updater/test/unittest/test_data/applypatch/
DTestDecompressGzip.new.gz1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * ...