Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrUnableToUnwrapHPSignedFile ¶
type ErrUnableToUnwrapHPSignedFile struct{}
ErrUnableToUnwrapHPSignedFile means it was unable to find the beginning of the real image within the HP signed image container.
func (ErrUnableToUnwrapHPSignedFile) Error ¶
func (err ErrUnableToUnwrapHPSignedFile) Error() string
type ErrZeroImage ¶
type ErrZeroImage struct{}
ErrZeroImage means the image has no other data than zeros.
func (ErrZeroImage) Error ¶
func (err ErrZeroImage) Error() string
type UEFI ¶
type UEFI struct { // Node contains the root node of the parsed UEFI structure of the image ffs.Node }
UEFI is a PCR0-measurements-aware extension over "github.com/linuxboot/fiano/pkg/uefi".
func ParseUEFIFirmwareBytes ¶
ParseUEFIFirmwareBytes parses the UEFI firmware image from bytes
func ParseUEFIFirmwareFile ¶
ParseUEFIFirmwareFile parses the UEFI firmware image by path `imagePath`
func (*UEFI) ImageBytes ¶
ImageBytes just returns the image as `[]byte`.
func (*UEFI) OffsetToPhysAddr ¶
OffsetToPhysAddr returns the `physAddr` of offset relatively to the beginning of the firmware.
func (*UEFI) PhysAddrToOffset ¶
PhysAddrToOffset returns the offset of `physAddr` relatively to the beginning of the firmware.