Searched refs:pkgStream (Results 1 – 8 of 8) sorted by relevance
/base/update/updater/services/package/pkg_verify/ |
D | pkg_verify_util.cpp | 32 int32_t PkgVerifyUtil::VerifyPackageSign(const PkgStreamPtr pkgStream) const in VerifyPackageSign() 34 if (pkgStream == nullptr) { in VerifyPackageSign() 39 if (GetSignature(pkgStream, signatureSize, signature) != PKG_SUCCESS) { in VerifyPackageSign() 43 size_t fileLen = pkgStream->GetFileLength(); in VerifyPackageSign() 58 return HashCheck(pkgStream, srcDataLen, hash); in VerifyPackageSign() 61 int32_t PkgVerifyUtil::GetSignature(const PkgStreamPtr pkgStream, size_t &signatureSize, in GetSignature() argument 65 int32_t ret = ParsePackage(pkgStream, signatureStart, signatureSize); in GetSignature() 74 ret = pkgStream->Read(signData, signatureStart, signDataLen, readLen); in GetSignature() 76 PKG_LOGE("read signature failed %s", pkgStream->GetFileName().c_str()); in GetSignature() 84 int32_t PkgVerifyUtil::ParsePackage(const PkgStreamPtr pkgStream, size_t &signatureStart, in ParsePackage() argument [all …]
|
D | zip_pkg_parse.cpp | 50 int32_t ZipPkgParse::ParseZipPkg(PkgStreamPtr pkgStream, size_t &signatureStart, size_t &signatureS… in ParseZipPkg() argument 52 if (pkgStream == nullptr) { in ParseZipPkg() 56 size_t fileLen = pkgStream->GetFileLength(); in ParseZipPkg() 59 "file len[%zu] < footerSize.", pkgStream->GetFileLength()); in ParseZipPkg() 63 int32_t ret = pkgStream->Read(footer, footerStart, footerSize, readLen); in ParseZipPkg() 65 return ret, "read FOOTER struct failed %s", pkgStream->GetFileName().c_str()); in ParseZipPkg() 82 ret = pkgStream->Read(zipEocd, zipEocdStart, eocdTotalLen, readLen); in ParseZipPkg() 84 return ret, "read zip eocd failed %s", pkgStream->GetFileName().c_str()); in ParseZipPkg()
|
D | pkg_verify_util.h | 37 int32_t GetSignature(const PkgStreamPtr pkgStream, size_t &signatureSize, 40 int32_t ParsePackage(const PkgStreamPtr pkgStream, size_t &signatureStart,
|
D | zip_pkg_parse.h | 29 int32_t ParseZipPkg(Hpackage::PkgStreamPtr pkgStream, size_t &signatureStart,
|
/base/update/updater/services/script/script_interpreter/ |
D | script_interpreter.cpp | 29 …ptInterpreter::ExecuteScript(ScriptManagerImpl *manager, Hpackage::PkgManager::StreamPtr pkgStream) in ExecuteScript() argument 31 USCRIPT_CHECK(pkgStream != nullptr, UPDATER_LAST_WORD(USCRIPT_INVALID_PARAM); in ExecuteScript() 33 USCRIPT_LOGI("ExecuteScript %s", pkgStream->GetFileName().c_str()); in ExecuteScript() 36 "Fail to create ScriptInterpreter for script %s", pkgStream->GetFileName().c_str()); in ExecuteScript() 37 int32_t ret = inter->LoadScript(pkgStream); in ExecuteScript() 39 return ret, "Fail to loadScript script %s", pkgStream->GetFileName().c_str()); in ExecuteScript() 44 ret, pkgStream->GetFileName().c_str()); in ExecuteScript() 68 int32_t ScriptInterpreter::LoadScript(Hpackage::PkgManager::StreamPtr pkgStream) in LoadScript() argument 73 scanner_->SetPkgStream(pkgStream); in LoadScript()
|
D | scanner.h | 53 void SetPkgStream(Hpackage::PkgManager::StreamPtr pkgStream) in SetPkgStream() argument 55 pkgStream_ = pkgStream; in SetPkgStream()
|
D | script_interpreter.h | 45 …tatic int32_t ExecuteScript(ScriptManagerImpl *manager, Hpackage::PkgManager::StreamPtr pkgStream); 74 int32_t LoadScript(Hpackage::PkgManager::StreamPtr pkgStream);
|
/base/update/updater/services/package/pkg_manager/ |
D | pkg_managerImpl.cpp | 466 PkgStreamPtr pkgStream; in CreatePkgStream() local 467 int32_t ret = CreatePkgStream(pkgStream, fileName, size, type); in CreatePkgStream() 468 if (pkgStream == nullptr) { in CreatePkgStream() 472 stream = pkgStream; in CreatePkgStream() 478 …PkgStreamPtr pkgStream = new MemoryMapStream(this, fileName, buffer, PkgStream::PkgStreamType_Buff… in CreatePkgStream() local 479 if (pkgStream == nullptr) { in CreatePkgStream() 483 stream = pkgStream; in CreatePkgStream() 490 PkgStreamPtr pkgStream; in CreatePkgStream() local 491 int32_t ret = CreatePkgStream(pkgStream, fileName, processor, context); in CreatePkgStream() 492 stream = pkgStream; in CreatePkgStream() [all …]
|