| /base/update/updater/services/package/pkg_package/ |
| D | pkg_upgradefile.h | 159 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); 176 … DigestAlgorithm::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 …]
|
| D | pkg_upgradefile.cpp | 88 return DigestAlgorithm::GetDigestLen(pkgInfo_.pkgInfo.digestMethod); in GetDigestLen() 265 size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm) in ReadSignData() 308 … DigestAlgorithm::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/ |
| D | pkg_algo_digest.h | 29 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 {
|
| D | pkg_algo_digest.cpp | 22 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()
|
| D | pkg_algo_deflate.h | 45 const PkgStreamPtr outStream, const DigestAlgorithm::DigestAlgorithmPtr algorithm); 54 const PkgStreamPtr outStream, DigestAlgorithm::DigestAlgorithmPtr algorithm);
|
| D | pkg_algorithm.cpp | 42 int32_t PkgAlgorithm::FinalDigest(DigestAlgorithm::DigestAlgorithmPtr algorithm, in FinalDigest() 62 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Pack() 109 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Unpack() 155 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in UnpackWithVerify()
|
| D | pkg_algorithm.h | 85 int32_t FinalDigest(DigestAlgorithm::DigestAlgorithmPtr algorithm, 95 static DigestAlgorithm::DigestAlgorithmPtr GetDigestAlgorithm(uint8_t type);
|
| D | pkg_algo_deflate.cpp | 59 const PkgStreamPtr outStream, const DigestAlgorithm::DigestAlgorithmPtr algorithm) in PackCalculate() 116 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Pack() 155 const PkgStreamPtr outStream, DigestAlgorithm::DigestAlgorithmPtr algorithm) in UnpackCalculate() 203 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Unpack()
|
| /base/update/updater/test/unittest/package/ |
| D | pkg_algo_unittest.cpp | 106 int ret = DigestAlgorithm::GetDigestLen(invalidType); in TestInvalidParam() 108 ret = DigestAlgorithm::GetSignatureLen(invalidType); in TestInvalidParam() 111 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(invalidTyp… in TestInvalidParam()
|
| D | pkg_test.h | 38 using Hpackage::DigestAlgorithm; 88 DigestAlgorithm::DigestAlgorithmPtr algorithm = in BuildFileDigest()
|
| /base/update/updater/services/package/pkg_manager/ |
| D | pkg_managerImpl.cpp | 772 …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() 830 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(digestMeth… in DoCreatePkgStream() 837 …DigestAlgorithm::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 …]
|
| D | pkg_manager_impl.h | 128 … std::pair<DigestAlgorithm::DigestAlgorithmPtr, DigestAlgorithm::DigestAlgorithmPtr> &algorithm);
|
| /base/update/updater/test/fuzztest/package_fuzzer/ |
| D | pkg_fuzz_test.h | 37 using Hpackage::DigestAlgorithm; 111 DigestAlgorithm::DigestAlgorithmPtr alg = in BuildFileDigest()
|
| /base/update/updater/test/fuzztest/fuzz_src_data/ |
| D | TestDecompressGzip.new.gz | |
| /base/update/updater/test/unittest/test_data/applypatch/ |
| D | TestDecompressGzip.new.gz | |
| /base/update/updater/services/stream_update/ |
| D | bin_chunk_update.h | 72 Hpackage::DigestAlgorithm::DigestAlgorithmPtr algorithm;
|
| D | bin_chunk_update.cpp | 445 PkgBuffer digest(DigestAlgorithm::GetDigestLen(PKG_DIGEST_TYPE_SHA256)); in VerifySignature()
|
| /base/update/updater/test/fuzztest/UpdaterStartUpdaterProc_fuzzer/ |
| D | UpdaterStartUpdaterProc_fuzzer.cpp | 71 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(PKG_DIGEST… in BuildFileDigest()
|
| /base/update/updater/test/unittest/updater_binary/ |
| D | updater_binary_unittest.cpp | 93 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(PKG_DIGEST… in BuildFileDigest()
|
| /base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/ |
| D | extractandexecutescript_fuzzer.cpp | 210 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(PKG_DIGEST… in BuildFileDigest()
|