Home
last modified time | relevance | path

Searched refs:UPGRADE_RESERVE_LEN (Results 1 – 3 of 3) sorted by relevance

/base/update/updater/services/package/pkg_package/
Dpkg_upgradefile.cpp52 constexpr int32_t UPGRADE_RESERVE_LEN = 16; variable
106 dataOffset += UPGRADE_RESERVE_LEN + GetUpgradeSignatureLen(); in GetEntryOffset()
171 …zeof(UpgradePkgTime) + pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeCompInfo) + UPGRADE_RESERVE_LEN; in CheckPackageHeader()
196 signOffset = offset + UPGRADE_RESERVE_LEN; in WriteBuffer()
201 pkgInfo_.descriptPackageId, {buffer.data(), UPGRADE_RESERVE_LEN}, nameLen); in WriteBuffer()
206 ret = pkgStream_->Write(buffer, GetUpgradeSignatureLen() + UPGRADE_RESERVE_LEN, offset); in WriteBuffer()
221 size_t buffSize = GetUpgradeSignatureLen() + UPGRADE_RESERVE_LEN; in SavePackage()
386 PkgBuffer buffer(GetUpgradeSignatureLen() + UPGRADE_RESERVE_LEN); in ReadPackageInfo()
395 …gFileImpl::ConvertBufferToString(pkgInfo_.descriptPackageId, {buffer.buffer, UPGRADE_RESERVE_LEN}); in ReadPackageInfo()
399 buffer.buffer + UPGRADE_RESERVE_LEN + SIGN_SHA256_LEN, SIGN_SHA384_LEN); in ReadPackageInfo()
[all …]
/base/update/packaging_tools/
Dcreate_update_package.py34 UPGRADE_RESERVE_LEN = 16 variable
110 UPGRADE_RESERVE_LEN + TLV_SIZE + TLV_SIZE + TLV_SIZE + \
329 UPGRADE_RESERVE_LEN + SIGN_SHA256_LEN + SIGN_SHA384_LEN
346 … (self.head_list.describe_package_id.decode().ljust(UPGRADE_RESERVE_LEN, "\0")).encode())
352 self.hash_info_offset = self.compinfo_offset + UPGRADE_RESERVE_LEN
Dunpack_updater_package.py27 from create_update_package import UPGRADE_RESERVE_LEN
103 UPGRADE_RESERVE_LEN + UPGRADE_SIGNATURE_LEN