| /base/startup/init/simulator/parameter/src/param_impl_posix/ |
| D | param_impl_posix.c | 72 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/ |
| D | pkg_algo_sign.h | 47 …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/ |
| D | package.h | 111 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/ |
| D | package.cpp | 125 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/ |
| D | update_service_local_updater.cpp | 45 …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()
|
| D | update_service.cpp | 331 …2_t UpdateService::VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, in VerifyUpgradePackage() argument 339 return localUpdater->VerifyUpgradePackage(packagePath, keyPath, businessError); in VerifyUpgradePackage()
|
| D | update_service_stub.cpp | 362 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/ |
| D | pkg_verify_unittest.cpp | 59 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()
|
| D | package_unittest.cpp | 212 std::string keyPath = ""; in TestVerifyPackageWithCallback() local 213 ret = VerifyPackageWithCallback(path.c_str(), keyPath.c_str(), in TestVerifyPackageWithCallback()
|
| /base/update/updater/test/unittest/script/ |
| D | script_unittest.h | 40 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/ |
| D | iservice_local_updater.h | 32 virtual int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
|
| D | update_service_kits.h | 88 virtual int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
|
| D | update_service_kits_impl.h | 85 int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
|
| /base/update/updateservice/services/engine/include/ |
| D | update_service_local_updater.h | 36 int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
|
| D | update_service_proxy.h | 79 int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
|
| D | update_service.h | 90 int32_t VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath,
|
| /base/update/updater/services/package/pkg_manager/ |
| D | pkg_manager_impl.h | 46 …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,
|
| D | pkg_managerImpl.cpp | 275 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/ |
| D | pkg_manager.h | 247 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/ |
| D | update_processor.h | 42 …ProcessUpdater(bool retry, int pipeFd, const std::string &packagePath, const std::string &keyPath);
|
| D | update_processor.cpp | 439 … 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/ |
| D | update_service_kits_impl.cpp | 307 …teServiceKitsImpl::VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, in VerifyUpgradePackage() argument 313 return updateService->VerifyUpgradePackage(packagePath, keyPath, businessError); in VerifyUpgradePackage()
|
| D | update_service_proxy.cpp | 493 …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/ |
| D | TestDecompressGzip.new.gz | 1/*
2 * Copyright (c) 2021 Huawei Device Co., Ltd.
3 * ... |