/base/update/updater/services/package/pkg_algorithm/ |
D | pkg_algo_lz4.h | 39 int32_t Pack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, 42 int32_t Unpack(const PkgStreamPtr inStream, 43 const PkgStreamPtr outStream, PkgAlgorithmContext &context) override; 55 const PkgStreamPtr inStream, size_t &nextToRead, size_t &srcOffset); 76 int32_t Pack(const PkgStreamPtr inStream, 77 const PkgStreamPtr outStream, PkgAlgorithmContext &) override; 79 int32_t Unpack(const PkgStreamPtr inStream, const PkgStreamPtr outStream,
|
D | pkg_algo_deflate.h | 37 int32_t Pack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, 40 int32_t Unpack(const PkgStreamPtr inStream, 41 const PkgStreamPtr outStream, PkgAlgorithmContext &context) override; 44 int32_t UnpackCalculate(PkgAlgorithmContext &context, const PkgStreamPtr inStream, 45 const PkgStreamPtr outStream, DigestAlgorithm::DigestAlgorithmPtr algorithm); 51 int32_t DeflateData(const PkgStreamPtr outStream,
|
D | pkg_algorithm.h | 71 virtual int32_t Pack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, 73 virtual int32_t Unpack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, 83 int32_t ReadData(const PkgStreamPtr inStream,
|
D | pkg_algo_deflate.cpp | 26 int32_t PkgAlgoDeflate::DeflateData(const PkgStreamPtr outStream, z_stream &zstream, int32_t flush, in DeflateData() 55 int32_t PkgAlgoDeflate::Pack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Pack() 96 int32_t PkgAlgoDeflate::UnpackCalculate(PkgAlgorithmContext &context, const PkgStreamPtr inStream, in UnpackCalculate() 97 const PkgStreamPtr outStream, DigestAlgorithm::DigestAlgorithmPtr algorithm) in UnpackCalculate() 149 int32_t PkgAlgoDeflate::Unpack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Unpack()
|
D | pkg_algorithm.cpp | 25 int32_t PkgAlgorithm::ReadData(const PkgStreamPtr inStream, size_t offset, PkgBuffer &buffer, in ReadData() 59 int32_t PkgAlgorithm::Pack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Pack() 106 int32_t PkgAlgorithm::Unpack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Unpack()
|
D | pkg_algo_lz4.cpp | 60 int32_t PkgAlgorithmBlockLz4::Pack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Pack() 110 int32_t PkgAlgorithmBlockLz4::Unpack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Unpack() 197 int32_t PkgAlgorithmLz4::Pack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Pack() 255 int32_t PkgAlgorithmLz4::GetUnpackParam(LZ4F_decompressionContext_t &ctx, const PkgStreamPtr inStre… in GetUnpackParam() 301 int32_t PkgAlgorithmLz4::Unpack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Unpack()
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_pkgfile.h | 35 virtual int32_t Init(const PkgManager::FileInfoPtr fileInfo, PkgStreamPtr inStream) = 0; 37 virtual int32_t EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) = 0; 39 virtual int32_t Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) = 0; 44 virtual int32_t Unpack(PkgStreamPtr outStream) = 0; 65 PkgStreamPtr inStream); 89 PkgFile(PkgManager::PkgManagerPtr manager, PkgStreamPtr stream, PkgType type) in PkgFile() 94 virtual int32_t AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr input) = 0; 98 virtual int32_t ExtractFile(const PkgEntryPtr node, const PkgStreamPtr output); 104 PkgStreamPtr GetPkgStream() const in GetPkgStream() 142 PkgStreamPtr pkgStream_ = nullptr;
|
D | pkg_zipfile.h | 133 int32_t Init(const PkgManager::FileInfoPtr fileInfo, PkgStreamPtr inStream) override; 140 int32_t EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override; 142 int32_t Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override; 144 int32_t Unpack(PkgStreamPtr outStream) override; 149 int32_t EncodeCentralDirEntry(const PkgStreamPtr stream, size_t startOffset, size_t &encodeLen); 151 int32_t DecodeCentralDirEntry(PkgStreamPtr inStream, PkgBuffer &buffer, size_t currentPos, 159 …int32_t DecodeLocalFileHeaderCheck(PkgStreamPtr inStream, const PkgBuffer &data, size_t currentPos… 161 int32_t DecodeLocalFileHeader(PkgStreamPtr inStream, const PkgBuffer &data, size_t currentPos, 166 …int32_t EncodeDataDescriptor(const PkgStreamPtr stream, size_t startOffset, uint32_t &encodeLen) c… 173 explicit ZipPkgFile(PkgManager::PkgManagerPtr manager, PkgStreamPtr stream) in ZipPkgFile() [all …]
|
D | pkg_lz4file.h | 35 int32_t Init(const PkgManager::FileInfoPtr fileInfo, PkgStreamPtr inStream) override; 42 int32_t EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override; 44 int32_t Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override; 46 int32_t Unpack(PkgStreamPtr outStream) override; 56 explicit Lz4PkgFile(PkgManager::PkgManagerPtr manager, PkgStreamPtr stream) in Lz4PkgFile() 64 int32_t AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr inStream) override;
|
D | pkg_gzipfile.h | 45 int32_t EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override; 47 int32_t Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override; 49 int32_t Unpack(PkgStreamPtr outStream) override; 60 explicit GZipPkgFile(PkgManager::PkgManagerPtr manager, PkgStreamPtr stream) in GZipPkgFile() 69 int32_t AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr inStream) override;
|
D | pkg_upgradefile.h | 60 int32_t Init(const PkgManager::FileInfoPtr fileInfo, PkgStreamPtr inStream) override; 62 int32_t EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override; 64 int32_t Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) override; 69 int32_t Unpack(PkgStreamPtr outStream) override; 82 …UpgradePkgFile(PkgManager::PkgManagerPtr manager, PkgStreamPtr stream, PkgManager::PkgInfoPtr head… in UpgradePkgFile() 94 int32_t AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr inStream) override;
|
D | pkg_lz4file.cpp | 22 int32_t Lz4FileEntry::Init(const PkgManager::FileInfoPtr fileInfo, PkgStreamPtr inStream) in Init() 39 int32_t Lz4FileEntry::EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) in EncodeHeader() 47 int32_t Lz4FileEntry::Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) in Pack() 50 PkgStreamPtr outStream = pkgFile_->GetPkgStream(); in Pack() 77 int32_t Lz4FileEntry::Unpack(PkgStreamPtr outStream) in Unpack() 85 PkgStreamPtr inStream = pkgFile_->GetPkgStream(); in Unpack() 129 int32_t Lz4PkgFile::AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr inStream) in AddEntry()
|
D | pkg_gzipfile.cpp | 64 int32_t GZipFileEntry::EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) in EncodeHeader() 66 PkgStreamPtr outStream = pkgFile_->GetPkgStream(); in EncodeHeader() 112 int32_t GZipFileEntry::Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) in Pack() 115 PkgStreamPtr outStream = pkgFile_->GetPkgStream(); in Pack() 157 int32_t GZipFileEntry::Unpack(PkgStreamPtr outStream) in Unpack() 166 PkgStreamPtr inStream = pkgFile_->GetPkgStream(); in Unpack() 221 PkgStreamPtr inStream = pkgFile_->GetPkgStream(); in DecodeHeader() 266 int32_t GZipPkgFile::AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr inStream) in AddEntry()
|
D | pkg_zipfile.cpp | 41 int32_t ZipPkgFile::AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr inStream) in AddEntry() 239 int32_t ZipFileEntry::EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) in EncodeHeader() 247 int32_t ZipFileEntry::Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) in Pack() 250 PkgStreamPtr outStream = pkgFile_->GetPkgStream(); in Pack() 305 int32_t ZipFileEntry::EncodeCentralDirEntry(const PkgStreamPtr stream, size_t startOffset, size_t &… in EncodeCentralDirEntry() 378 int32_t ZipFileEntry::EncodeDataDescriptor(const PkgStreamPtr stream, size_t startOffset, in EncodeDataDescriptor() 412 int32_t ZipFileEntry::DecodeCentralDirEntry(PkgStreamPtr inStream, PkgBuffer &buffer, size_t curren… in DecodeCentralDirEntry() 467 int32_t ZipFileEntry::DecodeLocalFileHeaderCheck(PkgStreamPtr inStream, const PkgBuffer &data, in DecodeLocalFileHeaderCheck() 513 int32_t ZipFileEntry::DecodeLocalFileHeader(PkgStreamPtr inStream, const PkgBuffer &data, size_t cu… in DecodeLocalFileHeader() 554 int32_t ZipFileEntry::Unpack(PkgStreamPtr outStream) in Unpack() [all …]
|
D | pkg_upgradefile.cpp | 48 int32_t UpgradeFileEntry::Init(const PkgManager::FileInfoPtr fileInfo, PkgStreamPtr inStream) in Init() 81 int32_t UpgradePkgFile::AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr inStream) in AddEntry() 371 int32_t UpgradeFileEntry::EncodeHeader(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) in EncodeHeader() 373 PkgStreamPtr outStream = pkgFile_->GetPkgStream(); in EncodeHeader() 408 int32_t UpgradeFileEntry::Pack(PkgStreamPtr inStream, size_t startOffset, size_t &encodeLen) in Pack() 411 PkgStreamPtr outStream = pkgFile_->GetPkgStream(); in Pack() 448 PkgStreamPtr inStream = pkgFile_->GetPkgStream(); in DecodeHeader() 486 int32_t UpgradeFileEntry::Unpack(PkgStreamPtr outStream) in Unpack() 494 PkgStreamPtr inStream = pkgFile_->GetPkgStream(); in Unpack()
|
D | pkg_pkgfile.cpp | 68 int32_t PkgFile::ExtractFile(const PkgEntryPtr node, PkgStreamPtr output) in ExtractFile() 134 PkgStreamPtr inStream) in Init()
|
/base/update/updater/services/package/pkg_verify/ |
D | pkg_verify_util.h | 30 int32_t VerifyPackageSign(const Hpackage::PkgStreamPtr PkgStream) const; 37 int32_t GetSignature(const PkgStreamPtr pkgStream, size_t &signatureSize, 40 int32_t ParsePackage(const PkgStreamPtr pkgStream, size_t &signatureStart, 45 int32_t HashCheck(const PkgStreamPtr srcData, const size_t dataLen,
|
D | pkg_verify_util.cpp | 32 int32_t PkgVerifyUtil::VerifyPackageSign(const PkgStreamPtr pkgStream) const in VerifyPackageSign() 61 int32_t PkgVerifyUtil::GetSignature(const PkgStreamPtr pkgStream, size_t &signatureSize, in GetSignature() 84 int32_t PkgVerifyUtil::ParsePackage(const PkgStreamPtr pkgStream, size_t &signatureStart, in ParsePackage() 104 int32_t PkgVerifyUtil::HashCheck(const PkgStreamPtr srcData, const size_t dataLen, in HashCheck()
|
D | zip_pkg_parse.h | 29 int32_t ParseZipPkg(Hpackage::PkgStreamPtr pkgStream, size_t &signatureStart,
|
D | openssl_util.h | 35 int32_t CalcSha256Digest(const Hpackage::PkgStreamPtr srcData, const size_t dataLen, std::vector<ui…
|
/base/update/updater/services/package/pkg_manager/ |
D | pkg_manager_impl.h | 88 … PkgFilePtr CreatePackage(PkgStreamPtr stream, PkgFile::PkgType type, PkgInfoPtr header = nullptr); 99 std::vector<std::string> &fileIds, PkgFile::PkgType type, PkgStreamPtr stream); 103 int32_t Sign(PkgStreamPtr stream, size_t offset, const PkgInfoPtr &info); 107 int32_t GenerateFileDigest(PkgStreamPtr stream, 114 …int32_t CreatePkgStream(PkgStreamPtr &stream, const std::string &fileName, size_t size, int32_t ty… 116 int32_t CreatePkgStream(PkgStreamPtr &stream, const std::string &fileName, 119 void ClosePkgStream(PkgStreamPtr &stream); 125 std::map<std::string, PkgStreamPtr> pkgStreams_ {};
|
D | pkg_managerImpl.cpp | 95 PkgStreamPtr stream = (*iter1).second; in ClearPkgFile() 174 PkgStreamPtr stream = nullptr; in CreatePackage() 189 PkgStreamPtr inputStream = nullptr; in CreatePackage() 219 PkgFilePtr PkgManagerImpl::CreatePackage(PkgStreamPtr stream, PkgFile::PkgType type, PkgInfoPtr hea… in CreatePackage() 260 …PkgFilePtr pkgFile = CreatePackage(static_cast<PkgStreamPtr>(stream), static_cast<PkgFile::PkgType… in ParsePackage() 344 PkgStreamPtr stream = nullptr; in ExtraAndLoadPackage() 378 PkgStreamPtr stream = nullptr; in LoadPackage() 389 std::vector<std::string> &fileIds, PkgFile::PkgType type, PkgStreamPtr stream) in LoadPackageWithStream() 466 PkgStreamPtr pkgStream; in CreatePkgStream() 478 …PkgStreamPtr pkgStream = new MemoryMapStream(this, fileName, buffer, PkgStream::PkgStreamType_Buff… in CreatePkgStream() [all …]
|
D | pkg_stream.cpp | 34 PkgStreamPtr PkgStreamImpl::ConvertPkgStream(PkgManager::StreamPtr stream) in ConvertPkgStream() 36 return (PkgStreamPtr)stream; in ConvertPkgStream()
|
D | pkg_stream.h | 26 using PkgStreamPtr = PkgStreamImpl *; variable 69 static PkgStreamPtr ConvertPkgStream(PkgManager::StreamPtr stream);
|
/base/update/updater/test/unittest/package/ |
D | pkg_package_unittest.cpp | 44 explicit TestFile(PkgManager::PkgManagerPtr pkgManager, PkgStreamPtr stream) in TestFile() 49 virtual int32_t AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr inStream) in AddEntry()
|