Searched refs:package_file (Results 1 – 6 of 6) sorted by relevance
105 def write_pkginfo(self, package_file): argument132 package_file.write(pkginfo)156 package_file.write(component_info)166 package_file.write(component_size)170 package_file.write(component.digest)192 def calculate_hash(self, package_file): argument196 package_file.seek(0)208 package_file.seek(0)272 package_file.seek(self.sign_offset)273 package_file.write(signature)[all …]
91 def parse_package_file(self, package_file): argument93 package_file.seek(COMPINFO_LEN_OFFSET)103 package_file.seek(self.component_offset)116 package_file.seek(self.component_offset)128 def parse_component(self, package_file): argument130 package_file.seek(self.addr_offset)134 package_file.seek(self.type_offset)138 package_file.seek(self.size_offset)148 def create_image_file(self, package_file): argument150 self.parse_component(package_file)[all …]
64 with open(package_path, 'rb') as package_file:66 hash_sha256.update(package_file.read(BLOCK_SIZE))69 hash_sha256.update(package_file.read(remain_len))
230 with open(package_path, 'rb') as package_file:232 hash_sha256.update(package_file.read(BLCOK_SIZE))235 hash_sha256.update(package_file.read(remain_len))
502 with open(update_package, 'rb') as package_file:504 buf = package_file.read(maxbuf)
141 "${distributeddb_path}/storage/src/package_file.cpp",