Home
last modified time | relevance | path

Searched refs:srcHash (Results 1 - 5 of 5) sorted by relevance

/base/update/updater/services/updater_binary/
H A Dupdate_image_patch.h31 std::string srcHash {};
56 std::string srcHash {};
H A Dupdate_image_patch.cpp64 ret |= static_cast<uint32_t>(context.GetParam(index++, para.srcHash)); in GetParam()
162 if (access(srcFile.c_str(), F_OK) == 0 && GetFileHash(srcFile) != para.srcHash) { in GetSourceFile()
245 ret |= static_cast<uint32_t>(context.GetParam(index++, para.srcHash)); in GetParam()
277 if (resultSha != para.srcHash) { in CheckHash()
278 LOG(ERROR) << "resultSha:" << resultSha << " srcHash:" << para.srcHash; in CheckHash()
/base/update/updater/services/applypatch/
H A Dblock_set.cpp297 const size_t size, const std::string srcHash, size_t &pos) in BlockVerify()
304 size_t pos, std::string &srcHash) in LoadTargetBuffer()
312 std::string storePath = storeBase + "/" + srcHash; in LoadTargetBuffer()
315 int32_t verifyRes = VerifySha256(buffer, blockSize, srcHash); in LoadTargetBuffer()
317 return BlockVerify(cmd, buffer, blockSize, srcHash, pos); in LoadTargetBuffer()
321 cmd.GetTransferParams()->freeStash = srcHash; in LoadTargetBuffer()
322 ret = Store::WriteDataToStore(storeBase, srcHash, buffer, blockSize * H_BLOCK_SIZE); in LoadTargetBuffer()
330 if (Store::LoadDataFromStore(storeBase, srcHash, buffer) == 0) { in LoadTargetBuffer()
296 BlockVerify(const Command &cmd, std::vector<uint8_t> &buffer, const size_t size, const std::string srcHash, size_t &pos) BlockVerify() argument
303 LoadTargetBuffer(const Command &cmd, std::vector<uint8_t> &buffer, size_t &blockSize, size_t pos, std::string &srcHash) LoadTargetBuffer() argument
H A Dcommand_process.cpp108 std::string srcHash = params.GetArgumentByPos(pos++); in LoadTarget() local
109 std::string tgtHash = srcHash; in LoadTarget()
134 if (targetBlock.LoadTargetBuffer(params, buffer, srcBlockSize, pos, srcHash) != 0) { in LoadTarget()
/base/update/updater/services/include/applypatch/
H A Dblock_set.h89 std::string &srcHash);
119 const size_t size, const std::string srcHash, size_t &pos);

Completed in 3 milliseconds