Lines Matching refs:pkgInfo
78 return DigestAlgorithm::GetDigestLen(pkgInfo_.pkgInfo.digestMethod); in GetDigestLen()
86 PKG_CHECK(pkgEntryMapId_.size() < pkgInfo_.pkgInfo.entryCount, return PKG_INVALID_PARAM, in AddEntry()
100 …size_t dataOffset = UPGRADE_FILE_HEADER_LEN + pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeCompInfo… in AddEntry()
133 …sizeof(UpgradePkgTime) + pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeCompInfo) + UPGRADE_RESERVE_L… in SavePackage()
154 …WriteLE16(buffer.data() + offset + sizeof(uint16_t), pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeC… in SavePackage()
161 offset += pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeCompInfo); in SavePackage()
206 if (pkgInfo_.pkgInfo.digestMethod == PKG_DIGEST_TYPE_SHA384) { in LoadPackage()
249 ret = verifier(&pkgInfo_.pkgInfo, digest.data, signData); in Verify()
304 pkgInfo_.pkgInfo.entryCount++; in ReadComponents()
320 pkgInfo_.pkgInfo.pkgType = PkgFile::PKG_TYPE_UPGRADE; in ReadUpgradePkgHeader()
321 pkgInfo_.pkgInfo.signMethod = PKG_SIGN_METHOD_RSA; in ReadUpgradePkgHeader()
322 pkgInfo_.pkgInfo.digestMethod = PKG_DIGEST_TYPE_SHA256; in ReadUpgradePkgHeader()
328 pkgInfo_.pkgInfo.digestMethod = PKG_DIGEST_TYPE_SHA384; in ReadUpgradePkgHeader()
340 algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(pkgInfo_.pkgInfo.digestMethod); in ReadUpgradePkgHeader()
525 if (pkgInfo_.pkgInfo.digestMethod < PKG_DIGEST_TYPE_MAX) { in GetPackageTlvType()
526 return packageTlvType[pkgInfo_.pkgInfo.digestMethod]; in GetPackageTlvType()