class EFIValidate::EALFRow
A class that represents a region of an EFI firmware with a valid hash for the region
A EALF file is a collection of regions an
Attributes
header[RW]
Public Instance Methods
core_sec?()
click to toggle source
# File lib/efivalidate/ealf_row.rb, line 30 def core_sec? uuid == SEC_CORE end
format_uuid()
click to toggle source
# File lib/efivalidate/ealf_row.rb, line 38 def format_uuid format '%36.36s', (EFIValidate::ROW_GUIDS[uuid.to_s] || uuid) end
hash()
click to toggle source
# File lib/efivalidate/ealf_row.rb, line 18 def hash ealf_hash.each_byte.map { |b| '%02x' % b }.join end
privacy_row?()
click to toggle source
# File lib/efivalidate/ealf_row.rb, line 26 def privacy_row? ealf_hash.each_byte.all?(&:zero?) end
to_s()
click to toggle source
# File lib/efivalidate/ealf_row.rb, line 34 def to_s format '<%02x:%02x:%04x:%08x:%08x:%s:%s>', ealf_component, ealf_region, ealf_master, ealf_offset, ealf_length, format_uuid, hash end
uuid()
click to toggle source
# File lib/efivalidate/ealf_row.rb, line 22 def uuid UUIDTools::UUID.parse_raw(ealf_uuid) end