Method: EFIValidate::EFIValidator#validate!
- Defined in:
- lib/efivalidate/efi_validator.rb
#validate! ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/efivalidate/efi_validator.rb', line 16 def validate! @errors = [] @parser.rows.reject(&:privacy_row?).each do |row| section_data = get_region(row.ealf_offset, row.ealf_length) calculated_hash = @parser.header.create_hash.hexdigest section_data @errors << EFIValidationError.new(row, section_data, calculated_hash) unless calculated_hash == row.hash end end |