Home | History | Annotate | Download | only in utils

Lines Matching full:blob

162                 blob = self.fum.get_section(self.image, subsection_name)
163 if blob:
166 f.write(blob)
169 blob = self.fum.get_section(self.image, section.get_body_name())
170 if blob:
172 s.update(blob)
261 into the section blob, either body or signature.
279 blob = self.fum.get_section(self.image, subsection_name)
281 # Modify the byte in it within 2% of the section blob.
282 modified_index = len(blob) / 50
284 blob_list = [('%c' % ((ord(x) + delta) % 0x100)) for x in blob]
286 blob_list = list(blob)
288 ((ord(blob[modified_index]) + delta) % 0x100))
396 blob = self.fum.get_section(self.image, subsection_name)
397 open(filename, 'w').write(blob)
461 blob = self.fum.get_section(self.image, subsection_name)
462 return blob
467 blob = self.fum.get_section(self.image, subsection_name)
468 return blob
470 def set_section_body(self, section, blob, write_through=False):
471 """Put the supplied blob to the body of the firmware section"""
473 self.image = self.fum.put_section(self.image, subsection_name, blob)
480 def set_section_sig(self, section, blob, write_through=False):
481 """Put the supplied blob to the vblock of the firmware section"""
483 self.image = self.fum.put_section(self.image, subsection_name, blob)