Lines Matching refs:shaInfo
536 bool UScriptInstructionShaCheck::IsTargetShaDiff(const std::string &devPath, const ShaInfo &shaInfo)
538 std::string tgtResultSha = CalculateBlockSha(devPath, shaInfo.targetPairs);
543 LOG(INFO) << "tgtResultSha: " << tgtResultSha << ", shaInfo.targetSha: " << shaInfo.targetSha;
544 return (tgtResultSha != shaInfo.targetSha);
548 const ShaInfo &shaInfo, const std::string &partitionName)
551 std::string resultSha = CalculateBlockSha(devPath, shaInfo.blockPairs);
552 if (resultSha != shaInfo.contrastSha && IsTargetShaDiff(devPath, shaInfo)) {
555 LOG(ERROR) << "blockPairs:" << shaInfo.blockPairs;
556 LOG(ERROR) << "resultSha: " << resultSha << ", shaInfo.contrastSha: " << shaInfo.contrastSha;
557 PrintAbnormalBlockHash(devPath, shaInfo.blockPairs);
647 int32_t UScriptInstructionShaCheck::SetShaInfo(Uscript::UScriptContext &context, ShaInfo &shaInfo)
649 int32_t ret = context.GetParam(1, shaInfo.blockPairs);
656 ret = context.GetParam(SHA_CHECK_SECOND, shaInfo.contrastSha);
664 ret = context.GetParam(SHA_CHECK_TARGETPAIRS_INDEX, shaInfo.targetPairs);
669 ret = context.GetParam(SHA_CHECK_TARGETSHA_INDEX, shaInfo.targetSha);
697 ShaInfo shaInfo {};
698 ret = SetShaInfo(context, shaInfo);
711 ret = ExecReadShaInfo(env, devPath, shaInfo, partitionName);