Lines Matching refs:section
31 def wrapper(self, section): argument
36 if type(section) in (tuple, list):
37 for sec in section:
40 image_operator(self, section)
364 def _bios_get_preamble_flags(self, section): argument
370 return self._bios_handler.get_section_flags(section)
372 def _bios_set_preamble_flags(self, section, flags): argument
378 version = self._bios_get_version(section)
379 self._bios_handler.set_section_version(section, version, flags,
382 def _bios_get_body_sha(self, section): argument
388 return self._bios_handler.get_section_sha(section)
390 def _bios_get_sig_sha(self, section): argument
392 return self._bios_handler.get_section_sig_sha(section)
395 def _bios_corrupt_sig(self, section): argument
400 self._bios_handler.corrupt_firmware(section)
403 def _bios_restore_sig(self, section): argument
408 self._bios_handler.restore_firmware(section)
411 def _bios_corrupt_body(self, section): argument
416 self._bios_handler.corrupt_firmware_body(section)
419 def _bios_restore_body(self, section): argument
424 self._bios_handler.restore_firmware_body(section)
426 def __bios_modify_version(self, section, delta): argument
432 original_version = self._bios_get_version(section)
434 flags = self._bios_handler.get_section_flags(section)
437 section, original_version, new_version))
438 self._bios_handler.set_section_version(section, new_version, flags,
442 def _bios_move_version_backward(self, section): argument
444 self.__bios_modify_version(section, -1)
447 def _bios_move_version_forward(self, section): argument
449 self.__bios_modify_version(section, 1)
451 def _bios_get_version(self, section): argument
453 return self._bios_handler.get_section_version(section)
455 def _bios_get_datakey_version(self, section): argument
457 return self._bios_handler.get_section_datakey_version(section)
459 def _bios_get_kernel_subkey_version(self, section): argument
461 return self._bios_handler.get_section_kernel_subkey_version(section)
491 def _ec_corrupt_sig(self, section): argument
496 self._ec_handler.corrupt_firmware(section, corrupt_all=True)
499 def _ec_restore_sig(self, section): argument
504 self._ec_handler.restore_firmware(section, restore_all=True)
507 def _ec_corrupt_body(self, section): argument
512 self._ec_handler.corrupt_firmware_body(section, corrupt_all=True)
515 def _ec_restore_body(self, section): argument
520 self._ec_handler.restore_firmware_body(section, restore_all=True)
540 def _kernel_corrupt_sig(self, section): argument
545 self._kernel_handler.corrupt_kernel(section)
548 def _kernel_restore_sig(self, section): argument
553 self._kernel_handler.restore_kernel(section)
555 def __kernel_modify_version(self, section, delta): argument
561 original_version = self._kernel_handler.get_version(section)
565 section, original_version, new_version))
566 self._kernel_handler.set_version(section, new_version)
569 def _kernel_move_version_backward(self, section): argument
571 self.__kernel_modify_version(section, -1)
574 def _kernel_move_version_forward(self, section): argument
576 self.__kernel_modify_version(section, 1)
578 def _kernel_get_version(self, section): argument
580 return self._kernel_handler.get_version(section)
582 def _kernel_get_datakey_version(self, section): argument
584 return self._kernel_handler.get_datakey_version(section)
604 def _kernel_resign_with_keys(self, section, key_path=None): argument
606 self._kernel_handler.resign_kernel(section, key_path)
608 def _kernel_dump(self, section, kernel_path): argument
614 self._kernel_handler.dump_kernel(section, kernel_path)
616 def _kernel_write(self, section, kernel_path): argument
622 self._kernel_handler.write_kernel(section, kernel_path)
624 def _kernel_get_sha(self, section): argument
626 return self._kernel_handler.get_sha(section)
717 def _rootfs_verify_rootfs(self, section): argument
722 return self._rootfs_handler.verify_rootfs(section)