Home | History | Annotate | Download | only in utils

Lines Matching defs:DELTA

94     DELTA = 1  # value to add to a byte to corrupt a section contents
265 def _modify_section(self, section, delta, body_or_sig=False,
269 If corrupt_all is set, the passed in delta is added to all bytes in the
270 section. Otherwise, the delta is added to the value located at 2% offset
274 delta value would restore the section contents.
294 blob_list = [('%c' % ((ord(x) + delta) % 0x100)) for x in blob]
298 ((ord(blob[modified_index]) + delta) % 0x100))
307 return self._modify_section(section, self.DELTA, body_or_sig=False,
313 return self._modify_section(section, self.DELTA, body_or_sig=True,
319 return self._modify_section(section, -self.DELTA, body_or_sig=False,
325 return self._modify_section(section, -self.DELTA, body_or_sig=True,