Home
last modified time | relevance | path

Searched refs:DigestAlgorithm (Results 1 – 20 of 20) sorted by relevance

/base/update/updater/services/package/pkg_package/
Dpkg_upgradefile.h159 DigestAlgorithm::DigestAlgorithmPtr algorithm, std::vector<std::string> &fileNames);
161 DigestAlgorithm::DigestAlgorithmPtr algorithm, std::vector<std::string> &fileNames);
165 DigestAlgorithm::DigestAlgorithmPtr &algorithm);
167 int32_t Verify(size_t start, DigestAlgorithm::DigestAlgorithmPtr algorithm,
173 size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm);
174 int32_t ReadReserveData(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr &algorithm);
176DigestAlgorithm::DigestAlgorithmPtr algorithm, uint32_t needType);
177 int32_t ReadImgHashData(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm);
179 size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm);
180 int32_t VerifyHeader(DigestAlgorithm::DigestAlgorithmPtr algorithm, VerifyFunction verifier,
[all …]
Dpkg_upgradefile.cpp88 return DigestAlgorithm::GetDigestLen(pkgInfo_.pkgInfo.digestMethod); in GetDigestLen()
265 size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm) in ReadSignData()
308DigestAlgorithm::DigestAlgorithmPtr algorithm, uint32_t needType) in ReadImgHashTLV()
343 int32_t UpgradePkgFile::ReadImgHashData(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algo… in ReadImgHashData()
394 DigestAlgorithm::DigestAlgorithmPtr algorithm) in ReadPackageInfo()
463 DigestAlgorithm::DigestAlgorithmPtr algorithm = nullptr; in LoadPackage()
485 int32_t UpgradePkgFile::VerifyFile(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm, in VerifyFile()
495 int32_t UpgradePkgFile::VerifyFileV1(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorit… in VerifyFileV1()
509 int32_t UpgradePkgFile::VerifyFileV2(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorit… in VerifyFileV2()
535 int32_t UpgradePkgFile::Verify(size_t start, DigestAlgorithm::DigestAlgorithmPtr algorithm, in Verify()
[all …]
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_digest.h29 class DigestAlgorithm {
31 using DigestAlgorithmPtr = std::shared_ptr<DigestAlgorithm>;
33 DigestAlgorithm() {} in DigestAlgorithm() function
35 virtual ~DigestAlgorithm() {} in ~DigestAlgorithm()
66 class Crc32Algorithm : public DigestAlgorithm {
84 class Sha256Algorithm : public DigestAlgorithm {
102 class Sha384Algorithm : public DigestAlgorithm {
Dpkg_algo_digest.cpp22 size_t DigestAlgorithm::GetDigestLen(int8_t digestMethod) in GetDigestLen()
31 size_t DigestAlgorithm::GetSignatureLen(int8_t digestMethod) in GetSignatureLen()
40 uint8_t DigestAlgorithm::GetDigestMethod(const std::string version) in GetDigestMethod()
175 DigestAlgorithm::DigestAlgorithmPtr PkgAlgorithmFactory::GetDigestAlgorithm(uint8_t type) in GetDigestAlgorithm()
184 return std::make_shared<DigestAlgorithm>(); in GetDigestAlgorithm()
Dpkg_algo_deflate.h45 const PkgStreamPtr outStream, const DigestAlgorithm::DigestAlgorithmPtr algorithm);
54 const PkgStreamPtr outStream, DigestAlgorithm::DigestAlgorithmPtr algorithm);
Dpkg_algorithm.cpp42 int32_t PkgAlgorithm::FinalDigest(DigestAlgorithm::DigestAlgorithmPtr algorithm, in FinalDigest()
62DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Pack()
109DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Unpack()
155DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in UnpackWithVerify()
Dpkg_algorithm.h85 int32_t FinalDigest(DigestAlgorithm::DigestAlgorithmPtr algorithm,
95 static DigestAlgorithm::DigestAlgorithmPtr GetDigestAlgorithm(uint8_t type);
Dpkg_algo_deflate.cpp59 const PkgStreamPtr outStream, const DigestAlgorithm::DigestAlgorithmPtr algorithm) in PackCalculate()
116DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Pack()
155 const PkgStreamPtr outStream, DigestAlgorithm::DigestAlgorithmPtr algorithm) in UnpackCalculate()
203DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Unpack()
/base/update/updater/test/unittest/package/
Dpkg_algo_unittest.cpp106 int ret = DigestAlgorithm::GetDigestLen(invalidType); in TestInvalidParam()
108 ret = DigestAlgorithm::GetSignatureLen(invalidType); in TestInvalidParam()
111DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(invalidTyp… in TestInvalidParam()
Dpkg_test.h38 using Hpackage::DigestAlgorithm;
88 DigestAlgorithm::DigestAlgorithmPtr algorithm = in BuildFileDigest()
/base/update/updater/services/package/pkg_manager/
Dpkg_managerImpl.cpp772 …PkgBuffer &buff, std::pair<DigestAlgorithm::DigestAlgorithmPtr, DigestAlgorithm::DigestAlgorithmPt… in DoCreatePkgStream()
827 size_t digestLen = DigestAlgorithm::GetDigestLen(digestMethod); in DoCreatePkgStream()
828 size_t signatureLen = DigestAlgorithm::GetSignatureLen(digestMethod); in DoCreatePkgStream()
830DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(digestMeth… in DoCreatePkgStream()
837DigestAlgorithm::DigestAlgorithmPtr algorithmInner = PkgAlgorithmFactory::GetDigestAlgorithm(diges… in DoCreatePkgStream()
844 …std::pair<DigestAlgorithm::DigestAlgorithmPtr, DigestAlgorithm::DigestAlgorithmPtr> digestAlgorith… in DoCreatePkgStream()
894 size_t digestLen = DigestAlgorithm::GetDigestLen(info->digestMethod); in DoCreatePkgStream()
908 size_t signLen = DigestAlgorithm::GetSignatureLen(info->digestMethod); in DoCreatePkgStream()
1143 int8_t digestMethod = static_cast<int8_t>(DigestAlgorithm::GetDigestMethod(version)); in DoCreatePkgStream()
1144 size_t digestLen = DigestAlgorithm::GetDigestLen(digestMethod); in DoCreatePkgStream()
[all …]
Dpkg_manager_impl.h128 … std::pair<DigestAlgorithm::DigestAlgorithmPtr, DigestAlgorithm::DigestAlgorithmPtr> &algorithm);
/base/update/updater/test/fuzztest/package_fuzzer/
Dpkg_fuzz_test.h37 using Hpackage::DigestAlgorithm;
111 DigestAlgorithm::DigestAlgorithmPtr alg = in BuildFileDigest()
/base/update/updater/test/fuzztest/fuzz_src_data/
DTestDecompressGzip.new.gz
/base/update/updater/test/unittest/test_data/applypatch/
DTestDecompressGzip.new.gz
/base/update/updater/services/stream_update/
Dbin_chunk_update.h72 Hpackage::DigestAlgorithm::DigestAlgorithmPtr algorithm;
Dbin_chunk_update.cpp445 PkgBuffer digest(DigestAlgorithm::GetDigestLen(PKG_DIGEST_TYPE_SHA256)); in VerifySignature()
/base/update/updater/test/fuzztest/UpdaterStartUpdaterProc_fuzzer/
DUpdaterStartUpdaterProc_fuzzer.cpp71DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(PKG_DIGEST… in BuildFileDigest()
/base/update/updater/test/unittest/updater_binary/
Dupdater_binary_unittest.cpp93DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(PKG_DIGEST… in BuildFileDigest()
/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/
Dextractandexecutescript_fuzzer.cpp210DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(PKG_DIGEST… in BuildFileDigest()